Add in emscripten-specific branching menus and special load/save routines for online saving.

This commit is contained in:
2024-01-02 05:54:43 -06:00
parent 2a900fa06e
commit 497db80b9b
15 changed files with 161 additions and 60 deletions
+5 -1
View File
@@ -49,7 +49,11 @@ void Menu::InitializeMainMenuWindow(){
mainMenuWindow->ADD("New Game Button",MenuComponent)({{12,4},{72,24}},"New Game",[](MenuFuncData data){
game->TextEntryEnable(true);
Menu::OpenMenu(SAVE_FILE_NAME);
#ifdef __EMSCRIPTEN__
Menu::OpenMenu(USER_ID);
#else
Menu::OpenMenu(SAVE_FILE_NAME);
#endif
return true;
})END;
mainMenuWindow->ADD("Load Game Button",MenuComponent)({{12,36},{72,24}},"Load Game",[](MenuFuncData data){