Implemented controller compatibility for sell item menu. Keyboard/controller menu navigation now auto-repopulates with a default selection if the current selection becomes expired for some reason (such as selling an item). Release Build 7249.
This commit is contained in:
@@ -120,7 +120,7 @@ void Menu::InitializeBuyItemWindow(){
|
||||
},[](MenuType type){
|
||||
Component<MenuComponent>(type,"Purchase Button")->Click();
|
||||
}}},
|
||||
{{game->KEY_SHOULDER},{"Qty Up/Down",[](MenuType type){}}},
|
||||
{{game->KEY_SHOULDER,Pressed},{"Qty Up/Down",[](MenuType type){}}},
|
||||
{{game->KEY_FASTSCROLLDOWN,PressedDAS},{"",[](MenuType type){
|
||||
Component<MenuComponent>(type,"Increase buy amount Button")->Click();
|
||||
if(Component<MenuComponent>(type,"Purchase Button")->IsGreyedOut()){
|
||||
@@ -134,7 +134,9 @@ void Menu::InitializeBuyItemWindow(){
|
||||
Component<MenuComponent>(type,"Increase buy amount Button")->Click();
|
||||
}
|
||||
}}},
|
||||
{game->KEY_BACK,{"Back",[](MenuType type){}}},
|
||||
{game->KEY_BACK,{"Back",[](MenuType type){
|
||||
Menu::CloseMenu();
|
||||
}}},
|
||||
{{game->KEY_CONFIRM,PressedDAS},{"",[](MenuType type){
|
||||
if(Menu::menus[type]->GetSelection().expired())return;
|
||||
incrementButtonDisabled=false;
|
||||
|
||||
Reference in New Issue
Block a user