Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_EditorAttributeHolderUIComponent.c
Go to the documentation of this file.
2{
3 [Attribute("AttributeHolder")]
4 protected string m_sAttributeHolderName;
5
6 [Attribute("TickboxHolder")]
7 protected string m_sTickBoxAttributeName;
8 [Attribute("GamePadLockedSelector")]
10
11 [Attribute("HintWidget")]
12 protected string m_sAttributeHintName;
13 [Attribute("HintText")]
14 protected string m_sAttributeHintTextName;
15
21
23
24 //============================ GETTERS ============================\\
25 Widget GetAttributeHolder()
26 {
27 return m_wAttributeHolder;
28 }
29
30 //============================ SETTERS ============================\\
31 void SetAttributeReference(SCR_BaseEditorAttributeUIComponent attribute)
32 {
33 m_AttributeComponent = attribute;
34 }
35
36 void SetHintText(string hint)
37 {
38 m_wAttributeHintText.SetText(hint);
39 }
40
41 void ShowHintText(bool show)
42 {
43 m_wAttributeHint.SetVisible(show);
44 }
45
46 //============================ FOCUS ============================\\
47 //If Disabled attribute is focused or not with gamepad
48 protected void GamePadLockedSelectorFocusChanged(bool newFocus)
49 {
50 if (!m_AttributeComponent.GetAttribute().GetHasConflictingValues())
51 return;
52
53 if (newFocus)
54 m_AttributeComponent.GetOnAttributeUIFocusChanged().Invoke(m_AttributeComponent);
55 else
56 m_AttributeComponent.GetOnAttributeUIFocusChanged().Invoke(null);
57 }
58
59
60 //============================ HANDLER ATTACHED ============================\\
61 override protected void HandlerAttached(Widget w)
62 {
64
67
69
71 {
73
74 if (focusComponent)
76 }
77
80 return;
81
83 }
84
85
86};
Using a controller will show/hide the Select button hint if the attribute with this script is focused...
SCR_BaseEditorAttributeUIComponent m_AttributeComponent
SCR_FieldOfViewSettings Attribute