Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_ActionHintScriptedWidgetTooltip.c
Go to the documentation of this file.
1[BaseContainerProps(configRoot : true)]
3{
4 [Attribute("", desc: "action to display")]
5 protected string m_sAction;
6
7 [Attribute(UIColors.GetColorAttribute(UIColors.IDLE_ACTIVE))]
9
11
12 protected const string WIDGET_ACTION = "Action";
13
14 //------------------------------------------------------------------------------------------------
15 override bool Init(WorkspaceWidget workspace, Widget wrapper)
16 {
17 if (!super.Init(workspace, wrapper))
18 return false;
19
20 Widget action = m_wContentRoot.FindAnyWidget(WIDGET_ACTION);
21 if (action)
23
24 if (!m_ActionDisplay)
25 return false;
26
29
30 return true;
31 }
32
33 //------------------------------------------------------------------------------------------------
34 bool SetAction(string action)
35 {
36 if (!m_ActionDisplay || action.IsEmpty())
37 return false;
38
39 m_ActionDisplay.SetAction(action);
40 return true;
41 }
42
43 //------------------------------------------------------------------------------------------------
45 {
46 if (!m_ActionDisplay)
47 return false;
48
49 m_ActionDisplay.SetColorActionDisabled(color);
50 return true;
51 }
52
53 //------------------------------------------------------------------------------------------------
55 {
57 }
58
59 //------------------------------------------------------------------------------------------------
64
65 //------------------------------------------------------------------------------------------------
67 {
68 return m_sAction;
69 }
70
71 //------------------------------------------------------------------------------------------------
73 {
74 return Color.FromInt(m_ActionColor.PackToInt());
75 }
76}
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Definition Color.c:13
override bool Init(WorkspaceWidget workspace, Widget wrapper)
static SCR_InputButtonComponent FindComponent(notnull Widget w)
SCR_FieldOfViewSettings Attribute