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)
Merge pull request #5147 from RosettaCommons/joshmiller/chatlog
[Foldit] Remove chat logging and fix link messages
Release notes:
- Foldit's log file no longer shows chat history
- Fixed a bug allowing players on Discord to send arbitrary links
Merge pull request #5144 from RosettaCommons/joshmiller/gui-fix
[Foldit] Fix GUI refresh crash from non-GUI thread
Release Notes:
- Fixed a bug causing the game to freeze/hang when using Lua recipes related to getting/loading solutions
Merge pull request #5109 from RosettaCommons/joshmiller/bandfix
[Foldit] Fix band strength modifier bug
Release notes:
- Fixed a bug where moving an existing band when "Default band setting to last used" is checked would change the strength of the existing band
Merge pull request #5118 from RosettaCommons/interactive/solberg/asynchronous_filters
[foldit] improve/change/fix undo graph and restore best for metrics
Merge pull request #5123 from RosettaCommons/roccomoretti/interactive_tab_panel_aa_duplicates
[Foldit] Fixes for the tab key residue info window.
Formula350 mentioned two issues with the Tab launched residue info window in Discord. 1) If you tab onto a different residue when the window is open, it resizes oddly and 2) in some instances, the list of possible residues gets doubles. This PR addresses both issues.
For 1) it has to do with the layout of the window, and that we were resizing based on the old content and then displaying the new content. This is "fixed" by clearing out the old content before doing the resize.
For 2) this is related to a bug in underlying Rosetta which is fixed by PR #5122. This PR cherry-picks those changes. (Assuming the tests on that PR come back clean, the changes here should be fine.)
Merge pull request #5100 from RosettaCommons/joshmiller/text-selection
[Foldit] Fix QoL text selection bugs
Release Notes:
- Fixed a bug preventing puzzle names from being clickable
- Fixed a bug where pressing undo (Ctrl+Z) on a recipe would delete all text
- Re-added the ability to cut/copy everything using cut/copy shortcuts when no text is selected
- Fixed a bug where news posts and puzzle descriptions were not selectable
- Fixed a bug where typing forward delete (Fn+Delete) on Mac inserted an erroneous '('
- Fixed a bug which caused little square boxes ("LSBs") to appear in recipes when pasting in text with Windows or Mac line endings
- Fixed a bug which caused text copied from Foldit to have improper line endings for Windows and Mac
- Fixed a bug causing some text to remain when deleting or cutting a text selection
Merge pull request #5098 from RosettaCommons/joshmiller/camera_zoom
[Foldit] Add Page Up/Down camera zoom hotkeys
Release Notes:
- Page Up and Page Down keys can now be used to zoom the camera in and out