Add in emscripten-specific branching menus and special load/save routines for online saving.
This commit is contained in:
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user