Working HTML5 version
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user