tweak(menu): Show mouse and menu immediately when shellmap is disabled#2356
Conversation
|
| Filename | Overview |
|---|---|
| GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/MainMenu.cpp | Refactored menu initialization logic to show mouse/menu immediately when shellmap is disabled, removed redundant notShown checks |
| Generals/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/MainMenu.cpp | Identical refactoring as GeneralsMD version - improved menu initialization logic and code clarity |
Last reviewed commit: e81b768
GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/MainMenu.cpp
Outdated
Show resolved
Hide resolved
|
Tested with all combinations of -win and -quickstart. Works as intended. With -win only, if the mouse is inside the window on startup it appears briefly (~100ms) then disappears, doesn't seem to be a regression from this PR though. |
Nice.
Yes, I'm seeing the same thing. It also happens without this PR. |
I couldn't get the change in #1480 to work, nor do I understand how it ever could've worked. This PR aims to fix that. AFAICT this is only relevant for windowed mode with the mouse cursor outside the game window (x and y coordinates equal 0).
In commits 2 and 3, respectively, I took the liberty of removing the
nowShownchecks because that's already checked at the start of the function, as well as a few layout changes.TODO: