Update widgets to new UI
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user