mirror of
https://github.com/spice2x/spice2x.github.io.git
synced 2026-08-02 06:40:42 -07:00
overlay: make overlay toggle behavior more consistent (#743)
Clean up how various overlay toggle shortcuts work with the main menu visible.
This commit is contained in:
@@ -31,6 +31,12 @@ void overlay::Window::update() {
|
||||
|
||||
// if the overlay is hidden just reactivate it
|
||||
if (!this->overlay->get_active()) {
|
||||
|
||||
// but don't let the main menu occlude it if it was previously visible
|
||||
if (this->overlay->window_main_menu) {
|
||||
this->overlay->window_main_menu->set_active(false);
|
||||
}
|
||||
|
||||
this->active = true;
|
||||
this->overlay->set_active(true);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user