Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_RadialMenuNumberHintComponent.c
Go to the documentation of this file.
1
5
7{
8 // Widgets
9 [Attribute("Background")]
10 protected string m_sBackround;
11
13
14 // Colors
15 [Attribute("255 255 255 255")]
16 protected ref Color m_cTextDefault;
17
18 [Attribute("255 255 255 255")]
20
21 [Attribute("255 255 255 255")]
22 protected ref Color m_cTextHighlight;
23
24 [Attribute("255 255 255 255")]
26
27 //------------------------------------------------------------------------------------------------------------------------
28 override void HandlerAttached(Widget w)
29 {
30 super.HandlerAttached(w);
31
32 m_wBackround = w.FindAnyWidget(m_sBackround);
33
34 Highlight(false);
35 }
36
37 //------------------------------------------------------------------------------------------------------------------------
38 void Highlight(bool highlight)
39 {
40 // Highligh
41 if (highlight)
42 {
43 if (m_wBackround)
45
46 if (m_wLabel)
47 m_wLabel.SetColor(m_cTextHighlight);
48
49 if (m_wMessage)
51
52 return;
53 }
54
55 // Default
56 if (m_wBackround)
58
59 if (m_wLabel)
60 m_wLabel.SetColor(m_cTextDefault);
61
62 if (m_wMessage)
63 m_wMessage.SetColor(m_cTextDefault);
64 }
65}
Definition Color.c:13
TextWidget m_wMessage
TextWidget m_wLabel
SCR_FieldOfViewSettings Attribute