3 protected bool m_ForceHideCollapseButtons;
4 protected Widget m_ItemHeader;
8 m_DefaultFontSize = 24;
9 m_ItemHeader = m_MainWidget.FindAnyWidget(
"hands_item_header" );
11 m_MainWidget = GetMainWidget().FindAnyWidget(
"height_wrapper" );
12 m_DefaultColor = GetMainWidget().GetColor();
13 #ifdef PLATFORM_CONSOLE
14 ShowCollapseButtons(
false,
true );
18 override void SetLayoutName()
23 override void UpdateInterval()
29 EntityAI item = p.GetHumanInventory().GetEntityInHands();
42 m_ItemHeader.Show( item !=
null );
45 void ShowCollapseButtons(
bool show,
bool force =
false )
47 m_ForceHideCollapseButtons = force;
48 #ifdef PLATFORM_CONSOLE
49 m_CollapseButton.Show(
false );
51 m_CollapseButton.Show( show );