forked from mirrors/kolyah35-minecraft-pe-0.6.1
FEAT: Option button in PauseScreen
This commit is contained in:
parent
6bfae5a14e
commit
e9766ed2a1
3 changed files with 25 additions and 7 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue