FEAT: Option button in PauseScreen

This commit is contained in:
2026-03-21 15:44:05 +02:00
parent 6bfae5a14e
commit e9766ed2a1
3 changed files with 25 additions and 7 deletions

View File

@@ -153,7 +153,11 @@ void OptionsScreen::buttonClicked(Button* button) {
if (button == btnClose) {
minecraft->options.save();
minecraft->screenChooser.setScreen(SCREEN_STARTMENU);
if (minecraft->screen != NULL) {
minecraft->setScreen(NULL);
} else {
minecraft->screenChooser.setScreen(SCREEN_STARTMENU);
}
}
else if (button->id > 1 && button->id < 7) {
int categoryButton = button->id - categoryButtons[0]->id;