@ -63,8 +63,10 @@ void Menu::InitializeItemLoadoutWindow(){
return true ;
} , [ ] ( MenuFuncData data ) {
std : : weak_ptr < MenuItemLoadoutButton > loadoutButton = DYNAMIC_POINTER_CAST < MenuItemLoadoutButton > ( data . component ) ;
if ( ! ISBLANK ( loadoutButton . lock ( ) - > GetItem ( ) ) ) {
Component < MenuLabel > ( ITEM_LOADOUT , " Item Name Label " ) - > SetLabel ( loadoutButton . lock ( ) - > GetItem ( ) . lock ( ) - > DisplayName ( ) ) ;
Component < MenuLabel > ( ITEM_LOADOUT , " Item Description " ) - > SetLabel ( loadoutButton . lock ( ) - > GetItem ( ) . lock ( ) - > Description ( ) ) ;
}
return true ;
} , [ ] ( MenuFuncData data ) {
Component < MenuLabel > ( ITEM_LOADOUT , " Item Name Label " ) - > SetLabel ( " " ) ;
@ -78,8 +80,10 @@ void Menu::InitializeItemLoadoutWindow(){
return true ;
} , [ ] ( MenuFuncData data ) {
std : : weak_ptr < MenuItemLoadoutButton > loadoutButton = DYNAMIC_POINTER_CAST < MenuItemLoadoutButton > ( data . component ) ;
if ( ! ISBLANK ( loadoutButton . lock ( ) - > GetItem ( ) ) ) {
Component < MenuLabel > ( ITEM_LOADOUT , " Item Name Label " ) - > SetLabel ( loadoutButton . lock ( ) - > GetItem ( ) . lock ( ) - > DisplayName ( ) ) ;
Component < MenuLabel > ( ITEM_LOADOUT , " Item Description " ) - > SetLabel ( loadoutButton . lock ( ) - > GetItem ( ) . lock ( ) - > Description ( ) ) ;
}
return true ;
} , [ ] ( MenuFuncData data ) {
Component < MenuLabel > ( ITEM_LOADOUT , " Item Name Label " ) - > SetLabel ( " " ) ;
@ -93,8 +97,10 @@ void Menu::InitializeItemLoadoutWindow(){
return true ;
} , [ ] ( MenuFuncData data ) {
std : : weak_ptr < MenuItemLoadoutButton > loadoutButton = DYNAMIC_POINTER_CAST < MenuItemLoadoutButton > ( data . component ) ;
if ( ! ISBLANK ( loadoutButton . lock ( ) - > GetItem ( ) ) ) {
Component < MenuLabel > ( ITEM_LOADOUT , " Item Name Label " ) - > SetLabel ( loadoutButton . lock ( ) - > GetItem ( ) . lock ( ) - > DisplayName ( ) ) ;
Component < MenuLabel > ( ITEM_LOADOUT , " Item Description " ) - > SetLabel ( loadoutButton . lock ( ) - > GetItem ( ) . lock ( ) - > Description ( ) ) ;
}
return true ;
} , [ ] ( MenuFuncData data ) {
Component < MenuLabel > ( ITEM_LOADOUT , " Item Name Label " ) - > SetLabel ( " " ) ;