Skip to content

Commit aff69c6

Browse files
committed
display client UI menu on windows min.
1 parent 9c5ba84 commit aff69c6

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

Sources/Client/Client_Input.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,10 @@ namespace spades {
303303
}
304304
}
305305
}
306+
} else if (name == "Pause") {
307+
if (!inGameLimbo && GetWorld()) {
308+
scriptedUI->EnterClientMenu();
309+
}
306310
} else if (world) {
307311
if (IsLimboViewActive()) {
308312
if (down) {

Sources/Gui/SDLRunner.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,9 @@ namespace spades {
170170
m_active = false;
171171
SDL_ShowCursor(1);
172172
}
173+
if (event.window.event == SDL_WINDOWEVENT_MINIMIZED) {
174+
view.KeyEvent("Pause", true);
175+
}
173176
break;
174177
default: break;
175178
}

0 commit comments

Comments
 (0)