Added wrapping up and down functionality for load game window. Fix bug allowing the player to enter no name for a save file name, resulting in file load parsing failing completely. Remove back button in class selection window.
This commit is contained in:
@@ -295,9 +295,11 @@ void Menu::Draw(AiL*game){
|
||||
|
||||
void Menu::OpenMenu(MenuType menu,bool cover){
|
||||
menus[menu]->cover=cover;
|
||||
Data returnData;
|
||||
menus[menu]->onOpenFunc(menu,returnData);
|
||||
menus[menu]->SetSelection(returnData);
|
||||
if(menus[menu]->onOpenFunc){
|
||||
Data returnData;
|
||||
menus[menu]->onOpenFunc(menu,returnData);
|
||||
menus[menu]->SetSelection(returnData);
|
||||
}
|
||||
stack.push_back(menus[menu]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user