Add continue button
This commit is contained in:
@@ -202,10 +202,10 @@ void drawPauseUI(Game *game, f32 dt) {
|
||||
.type = BZ_UI_LAYOUT_FLEX_BOX,
|
||||
.flags = BZ_UI_FLEX_DIR_COLUMN | BZ_UI_FLEX_ALIGN_CENTER
|
||||
});
|
||||
if (uiMainMenuButton("Resume")) {
|
||||
if (uiMainMenuButton("Resume", true)) {
|
||||
setScreen(game, SCREEN_GAME);
|
||||
}
|
||||
if (uiMainMenuButton("Exit")) {
|
||||
if (uiMainMenuButton("Exit", true)) {
|
||||
setScreen(game, SCREEN_MAIN_MENU);
|
||||
unloadMap(game);
|
||||
loadMap(game, "assets/maps/main_menu_01.tmj");
|
||||
@@ -239,16 +239,19 @@ void drawMainMenuUI(Game *game, f32 dt) {
|
||||
.type = BZ_UI_LAYOUT_FLEX_BOX,
|
||||
.flags = BZ_UI_FLEX_DIR_COLUMN | BZ_UI_FLEX_ALIGN_CENTER
|
||||
});
|
||||
if (uiMainMenuButton("Play")) {
|
||||
if (uiMainMenuButton("Continue", false)) {
|
||||
|
||||
}
|
||||
if (uiMainMenuButton("Play", true)) {
|
||||
setScreen(game, SCREEN_GAME);
|
||||
unloadMap(game);
|
||||
loadMap(game, "assets/maps/tree_test.tmj");
|
||||
//loadMap(game, "assets/maps/map_01.tmj");
|
||||
}
|
||||
if (uiMainMenuButton("Settings")) {
|
||||
if (uiMainMenuButton("Settings", true)) {
|
||||
setScreen(game, SCREEN_SETTINGS);
|
||||
}
|
||||
if (uiMainMenuButton("Exit")) {
|
||||
if (uiMainMenuButton("Exit", true)) {
|
||||
bzGameExit();
|
||||
}
|
||||
bzUIPopParent(UI);
|
||||
|
||||
Reference in New Issue
Block a user