4 protected string m_sAttributeHolderName;
7 protected string m_sTickBoxAttributeName;
9 protected string m_sGamePadLockedSelectorName;
12 protected string m_sAttributeHintName;
14 protected string m_sAttributeHintTextName;
16 protected Widget m_wAttributeHolder;
18 protected Widget m_GamePadLockedSelector;
19 protected Widget m_wAttributeHint;
20 protected RichTextWidget m_wAttributeHintText;
27 return m_wAttributeHolder;
33 m_AttributeComponent = attribute;
36 void SetHintText(
string hint)
38 m_wAttributeHintText.SetText(hint);
41 void ShowHintText(
bool show)
43 m_wAttributeHint.SetVisible(show);
48 protected void GamePadLockedSelectorFocusChanged(
bool newFocus)
50 if (!m_AttributeComponent.GetAttribute().GetHasConflictingValues())
54 m_AttributeComponent.GetOnAttributeUIFocusChanged().Invoke(m_AttributeComponent);
56 m_AttributeComponent.GetOnAttributeUIFocusChanged().Invoke(
null);
63 m_wAttributeHolder = w.FindAnyWidget(m_sAttributeHolderName);
65 Widget tickbox = w.FindAnyWidget(m_sTickBoxAttributeName);
68 m_GamePadLockedSelector = w.FindAnyWidget(m_sGamePadLockedSelectorName);
70 if (m_GamePadLockedSelector)
75 focusComponent.GetOnFocusChanged().Insert(GamePadLockedSelectorFocusChanged);
78 m_wAttributeHint = w.FindAnyWidget(m_sAttributeHintName);
79 if (!m_wAttributeHint)
82 m_wAttributeHintText = RichTextWidget.Cast(m_wAttributeHint.FindAnyWidget(m_sAttributeHintTextName));