Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_ScriptedWidgetTooltipContentBase.c
Go to the documentation of this file.
1[BaseContainerProps(configRoot : true)]
3{
4 [Attribute("{197FC671D07413E9}UI/layouts/Menus/Tooltips/Tooltip_SimpleMessage.layout", UIWidgets.ResourceNamePicker, ".layout for the content of the Tooltip", params: "layout")]
6
7 [Attribute("", desc: "Message to display")]
8 protected string m_sMessageText;
9
10 [Attribute(UIColors.GetColorAttribute(UIColors.NEUTRAL_INFORMATION))]
11 protected ref Color m_MessageColor;
12
15
16 protected string m_sDefaultMessage;
17
18 // Const
19 protected const string WIDGET_MESSAGE = "Message";
20
21 //------------------------------------------------------------------------------------------------
22 bool Init(WorkspaceWidget workspace, Widget wrapper)
23 {
24 Clear();
25
26 m_wContentRoot = workspace.CreateWidgets(m_sContentLayout, wrapper);
27 if (!m_wContentRoot)
28 return false;
29
31
35
36 return true;
37 }
38
39 //------------------------------------------------------------------------------------------------
40 void Clear()
41 {
43 m_wContentRoot.RemoveFromHierarchy();
44 }
45
46 //------------------------------------------------------------------------------------------------
47 bool SetMessage(string message)
48 {
49 if (!m_wMessage)
50 return false;
51
52 m_wMessage.SetText(message);
53 return true;
54 }
55
56 //------------------------------------------------------------------------------------------------
58 {
60 }
61
62 //------------------------------------------------------------------------------------------------
64 {
65 if (!m_wMessage || !color)
66 return false;
67
68 m_wMessage.SetColor(color);
69 return true;
70 }
71
72 //------------------------------------------------------------------------------------------------
74 {
76 }
77
78 //------------------------------------------------------------------------------------------------
80 {
81 return m_wContentRoot;
82 }
83
84 //------------------------------------------------------------------------------------------------
85 string GetMessage()
86 {
87 if (!m_wMessage)
88 return string.Empty;
89
90 return m_wMessage.GetText();
91 }
92
93 //------------------------------------------------------------------------------------------------
95 {
96 return m_sDefaultMessage;
97 }
98}
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Definition Color.c:13
bool Init(WorkspaceWidget workspace, Widget wrapper)
SCR_FieldOfViewSettings Attribute