Working HTML5 version

This commit is contained in:
2024-01-29 00:10:31 +01:00
parent 410c3d217e
commit 409d9027ef
11 changed files with 108 additions and 30 deletions

View File

@@ -5,6 +5,7 @@
#include "../map_init.h"
#include "../ui_widgets.h"
#include "../buildings.h"
#include "../utils.h"
void drawGameUI(Game *game, f32 dt) {
// UI
@@ -303,6 +304,7 @@ void drawSettingsUI(Game *game, f32 dt) {
opts = game->options;
}
if (uiSettingsButton("Apply")) {
serializeOptions(SETTINGS_PATH, &opts);
game->options = opts;
setScreen(game, SCREEN_MAIN_MENU);
}