Update widgets to new UI

This commit is contained in:
2023-12-22 12:50:27 +01:00
parent 935cfdbba3
commit da1eeefe70
3 changed files with 62 additions and 60 deletions

View File

@@ -331,14 +331,12 @@ static void renderMainMenu(Game *game, float dt) {
.flags = BZ_UI_FLEX_DIR_COLUMN | BZ_UI_FLEX_ALIGN_CENTER
});
if (uiMainMenuButton("Play")) {
bzLogInfo("Play");
game->screen = SCREEN_GAME;
}
if (uiMainMenuButton("Settings")) {
bzLogInfo("Settings");
game->screen = SCREEN_SETTINGS;
}
if (uiMainMenuButton("Exit")) {
bzLogInfo("Bye");
bzGameExit();
}
bzUIPopParent(UI);
@@ -366,6 +364,8 @@ void render(float dt, void *userData) {
renderMainMenu(game, dt);
break;
case SCREEN_SETTINGS:
renderGame(game, dt);
drawOverScreen(shadow);
renderSettings(game, dt);
break;
}