Fixed issues with one input bleeding into multiple inputs. Removed old redundant system where we can specify a menu to navigate to. Implemented controller compatibility for UserID menu. Release Build 7326.
This commit is contained in:
@@ -135,11 +135,12 @@ void Menu::InitializeClassSelectionWindow(){
|
||||
|
||||
|
||||
auto classLabel=classSelectionWindow->ADD(className+" Background",MenuLabel)(geom2d::rect<float>{backgroundOffsetPos,backgroundSize},"",1,ComponentAttr::OUTLINE|ComponentAttr::BACKGROUND)END;
|
||||
auto classButton=classSelectionWindow->ADD(className+" Button",MenuComponent)(geom2d::rect<float>{offsetPos,buttonSize},"Info",CLASS_INFO,
|
||||
auto classButton=classSelectionWindow->ADD(className+" Button",MenuComponent)(geom2d::rect<float>{offsetPos,buttonSize},"Info",
|
||||
[](MenuFuncData data){
|
||||
data.menu.S(A::CLASS_SELECTION)=data.component.lock()->S(A::CLASS_SELECTION);
|
||||
delete Menu::menus[CLASS_INFO];
|
||||
Menu::InitializeClassInfoWindow();
|
||||
Menu::OpenMenu(CLASS_INFO);
|
||||
return true;
|
||||
})END;
|
||||
classButton->S(A::CLASS_SELECTION)=className;
|
||||
@@ -189,7 +190,13 @@ void Menu::InitializeClassSelectionWindow(){
|
||||
{game->KEY_BACK,{"Back",[](MenuType type){
|
||||
Component<MenuComponent>(type,"Back")->Click();
|
||||
}}},
|
||||
{game->KEY_START,{"Confirm",[](MenuType type){
|
||||
{game->KEY_START,{[](MenuFuncData data){
|
||||
if(Component<MenuComponent>(data.menu.GetType(),"Confirm")->IsEnabled()){
|
||||
return "Confirm";
|
||||
}else{
|
||||
return "";
|
||||
}
|
||||
},[](MenuType type){
|
||||
Component<MenuComponent>(type,"Confirm")->Click();
|
||||
}}},
|
||||
{game->KEY_FACEUP,{"Change Player Name",[](MenuType type){
|
||||
|
||||
Reference in New Issue
Block a user