mirror of
https://github.com/HarbourMasters/Starship
synced 2026-06-03 18:46:00 -04:00
Merge branch 'main' of https://github.com/HarbourMasters/Starship
This commit is contained in:
@@ -538,6 +538,9 @@ int GameEngine::ShowYesNoBox(const char* title, const char* box) {
|
||||
int ret;
|
||||
#ifdef _WIN32
|
||||
ret = MessageBoxA(nullptr, box, title, MB_YESNO | MB_ICONQUESTION);
|
||||
#elif defined(__SWITCH__)
|
||||
SPDLOG_ERROR(box);
|
||||
return IDYES;
|
||||
#else
|
||||
SDL_MessageBoxData boxData = { 0 };
|
||||
SDL_MessageBoxButtonData buttons[2] = { { 0 } };
|
||||
|
||||
@@ -446,11 +446,11 @@ void DrawGameMenu() {
|
||||
if (UIWidgets::MenuItem("Toggle Fullscreen", "F11")) {
|
||||
Ship::Context::GetInstance()->GetWindow()->ToggleFullscreen();
|
||||
}
|
||||
#endif
|
||||
|
||||
if (UIWidgets::MenuItem("Quit")) {
|
||||
Ship::Context::GetInstance()->GetWindow()->Close();
|
||||
}
|
||||
#endif
|
||||
ImGui::EndMenu();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user