Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_RadialMenuNumberHintComponent.c
Go to the documentation of this file.
1 
7 {
8  // Widgets
9  [Attribute("Background")]
10  protected string m_sBackround;
11 
12  protected Widget m_wBackround;
13 
14  // Colors
15  [Attribute("255 255 255 255")]
16  protected ref Color m_cTextDefault;
17 
18  [Attribute("255 255 255 255")]
19  protected ref Color m_cBackgroundDefault;
20 
21  [Attribute("255 255 255 255")]
22  protected ref Color m_cTextHighlight;
23 
24  [Attribute("255 255 255 255")]
25  protected ref Color m_cBackgroundHighlight;
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)
44  m_wBackround.SetColor(m_cBackgroundHighlight);
45 
46  if (m_wLabel)
47  m_wLabel.SetColor(m_cTextHighlight);
48 
49  if (m_wMessage)
50  m_wMessage.SetColor(m_cTextHighlight);
51 
52  return;
53  }
54 
55  // Default
56  if (m_wBackround)
57  m_wBackround.SetColor(m_cBackgroundDefault);
58 
59  if (m_wLabel)
60  m_wLabel.SetColor(m_cTextDefault);
61 
62  if (m_wMessage)
63  m_wMessage.SetColor(m_cTextDefault);
64  }
65 }
SCR_RadialMenuNumberHintComponent
Definition: SCR_RadialMenuNumberHintComponent.c:6
m_wMessage
protected RichTextWidget m_wMessage
Definition: SCR_BrowserHoverTooltipComponent.c:24
SCR_SimpleEntryComponent
Definition: SCR_SimpleEntryComponent.c:6
Attribute
typedef Attribute
Post-process effect of scripted camera.