Fix up new stages, configure stage plates, add bonus boss stage, add levels to configuration files. Change Class selection window to include an online character checkbox to toggle between online and offline saving. Fix online/offline file IDs that were incorrectly loading due to no callbacks for async file retrieval.
This commit is contained in:
@@ -57,18 +57,7 @@ void Menu::InitializeMainMenuWindow(){
|
||||
return true;
|
||||
})END;
|
||||
auto loadGameButton=mainMenuWindow->ADD("Load Game Button",MenuComponent)(geom2d::rect<float>{{12,36},{72,24}},"Load Game",[](MenuFuncData data){
|
||||
#ifdef __EMSCRIPTEN__
|
||||
data.menu.S(A::NEXT_MENU)="Load Game";
|
||||
if(SaveFile::GetUserID().length()==0){
|
||||
game->TextEntryEnable(true);
|
||||
Menu::OpenMenu(USER_ID);
|
||||
}else{
|
||||
SaveFile::UpdateSaveGameData();
|
||||
}
|
||||
#else
|
||||
SaveFile::UpdateSaveGameData();
|
||||
Menu::OpenMenu(LOAD_GAME);
|
||||
#endif
|
||||
SaveFile::UpdateSaveGameData([](){Menu::OpenMenu(LOAD_GAME);}); //This function also opens the menu in emscripten.
|
||||
return true;
|
||||
})END;
|
||||
mainMenuWindow->ADD("Quit Game Button",MenuComponent)(geom2d::rect<float>{{12,68},{72,24}},"Quit Game",[](MenuFuncData data){
|
||||
|
||||
Reference in New Issue
Block a user