Scrollbars persist after game over #558
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
OS: Ubuntu 24.04.1 LTS
Commit:
2ec456bIssue: Scrollbars remain on-screen after returning to the main menu from a game over event. This only persists when choosing to Restore a saved game that is not in a scenario.
How to reproduce: Load a party, start a scenario, then kill all PCs (either through damage or by choosing Delete PC). Once the game over dialog appears, select Restore and load a party that is not in a scenario.
Additional notes: This does not seem to happen when returning from a scenario to the main menu by choosing Abort, New Game, or Open Game from the menu. Choosing Restart from the game over dialog seems to eventually (after saving or cancelling the new party) cause a redraw/removal of the scrollbars as well.
Thank you for these detailed bug reports! I think this one happens to be a duplicate of #250 but the additional info you provided might help us solve it.
Thanks. Just tested a local change and it seems to have solved the issue. I haven't tested it on other builds for other operating systems though, so not sure it's worthy of a PR at this point. But if you want to test it out, in
boe.actions.cppand within thehandle_death()function, just callreload_startup()before the while loop (and remove the call from the condition within the loop).The reason for this edit was twofold: first, when the death dialog box appears, the scrollbars are visible on the main menu when they shouldn't be, so it already seemed like a good place to hide those UI elements. But also in the condition where the player selects "load", it is possible that
reload_startup()is not called at all.If you fixed it on your end I'd say that's worth a PR for sure (we'll make sure to review the fix and test it on the other platforms). You can add your name to pkg/credits/Code.txt as well to be credited in the game.
(the generate-credits script will need to be run after modifying the text file. it has a couple dependencies so I can always be the one to do that.)
Submitted PR #560 to hopefully resolve this issue.