Added locked item sound effect. Fixed label member being protected accessible, now private requiring all children to access through SetLabel. Fix reversed logic check for locked craftable items. Added controller compatibility for consumable item crafting selection window. Release Build 7291.

This commit is contained in:
2024-02-17 00:32:38 -06:00
parent fd994c580d
commit e5ace36a60
19 changed files with 129 additions and 37 deletions
@@ -43,6 +43,7 @@ All rights reserved.
#include "RowInventoryScrollableWindowComponent.h"
#include "EnhancementStatsLabel.h"
#include "RequiredMaterialsList.h"
#include "SoundEffect.h"
INCLUDE_game
INCLUDE_ITEM_CATEGORIES
@@ -83,6 +84,7 @@ void Menu::InitializeBlacksmithCraftingWindow(){
}else{
data.menu.SetSelection(std::weak_ptr<MenuComponent>(Component<MenuComponent>(data.menu.GetType(),"Leave Button")));
}
SoundEffect::PlaySFX("Button Click",SoundEffect::CENTERED);
return true;
})END;
weaponTab->selected=true;
@@ -98,6 +100,7 @@ void Menu::InitializeBlacksmithCraftingWindow(){
}else{
data.menu.SetSelection(std::weak_ptr<MenuComponent>(Component<MenuComponent>(data.menu.GetType(),"Leave Button")));
}
SoundEffect::PlaySFX("Button Click",SoundEffect::CENTERED);
return true;
})END;
armorTab->selectionType=SelectionType::HIGHLIGHT;
@@ -237,8 +240,8 @@ void Menu::InitializeBlacksmithCraftingWindow(){
{game->KEY_BACK,{"Leave",[](MenuType type){
Menu::CloseMenu();
}}},
{{game->KEY_SCROLL,Pressed},{"Navigate",[](MenuType type){}}},
{game->KEY_CONFIRM,{"Select",[](MenuType type){}}},
{{game->KEY_SHOULDER,Pressed},{"Scroll Up/Down",[](MenuType type){}}},
{{game->KEY_FASTSCROLLDOWN,PressedDAS},{"",[&](MenuType type){
if(!Menu::menus[type]->GetSelection().expired()&&
!Menu::menus[type]->GetSelection().lock()->parentComponent.expired()){
@@ -264,7 +267,7 @@ void Menu::InitializeBlacksmithCraftingWindow(){
Component<MenuComponent>(type,"Weapon Tab")->Click();
}
}}},
{{game->KEY_SCROLL,Pressed},{"Navigate",[](MenuType type){}}},
{{game->KEY_SHOULDER,Pressed},{"Scroll Up/Down",[](MenuType type){}}},
}
,{ //Button Navigation Rules
{"Weapon Tab",{