Merge pull request #5159 from RosettaCommons/joshmiller/lua-fixes
[Foldit] Fix Lua Selection visuals
Release notes:
- Fixed a bug where bands and segments selected via Lua functions did not display properly
- Modified the color of segments selected with the dialog.SelectSegments function so that selections are more clear against any color scheme
Merge pull request #5153 from RosettaCommons/joshmiller/text-selection
[Foldit] Fix text selection bugs
Release notes:
- Fixed various bugs related to text selection
Merge pull request #5115 from RosettaCommons/joshmiller/mcod
[Foldit] Prevent crash on Pull tool
Release notes:
- Fixed a crash caused by Pulling while Pulling
Merge pull request #5152 from RosettaCommons/joshmiller/luabugs
[Foldit] Add more segment bounds checking
Release notes:
- Fixed some Lua functions which would crash when given out-of-bounds segment indices
Merge pull request #5158 from RosettaCommons/joshmiller/bbi
[Foldit] Fix backbone importance slider
Release notes:
- Fixed a bug causing the sidechain hbond importance slider to control backbone hbond importance instead of the backbone hbond importance slider
Merge pull request #5141 from RosettaCommons/joshmiller/blueprintmixin
[Foldit] Add bridge mixin for Blueprint Idealize SS
Release notes:
- Fixed a bug causing a crash when Idealize SS was used from the Blueprint tool to win a level
Merge pull request #5117 from RosettaCommons/joshmiller/lua-selection
[Foldit] New Lua Functionality
Release notes:
- Added Lua function dialog.SelectBands() to prompt the player to select bands, then returns a list of band indices
- Added Lua function dialog.SelectSegments() to prompt the player to select segments, then returns a list of segment indices
- Added Lua function structure.GetCuts() which returns a list of segment indices which have open cutpoints
- Added Lua function structure.GetHBonds() which returns a table of visible hydrogen bonds (Note that that the results of this function are dependent on the current view options). Each entry contains these fields:
--- res1: segment index 1
--- res2: segment index 2
--- atom1: atom index 1
--- atom2: atom index 2
--- bond_type: 0 for hydrogen, 1 for disulfide
--- width: length of bond, generally ranging from 0.25 (bad) to 0.75 (good)