Add continue button

This commit is contained in:
2024-01-28 20:18:31 +01:00
parent dfc20b6a96
commit 73082f9d1d
3 changed files with 19 additions and 16 deletions

View File

@@ -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);