Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_ToolMenuButtonComponent.c
Go to the documentation of this file.
2{
5
6 protected const string m_sTextLimitWidget = "TextLimit";
7 protected const string m_sBackgroundWidget = "BackgroundNew";
8
9 //------------------------------------------------------------------------------------------------
10 override void HandlerAttached(Widget w)
11 {
12 super.HandlerAttached(w);
13 m_wTextLimit = TextWidget.Cast(w.FindAnyWidget(m_sTextLimitWidget));
14 m_wToolBackground = w.FindAnyWidget(m_sBackgroundWidget);
15 }
16
17 //------------------------------------------------------------------------------------------------
19 void SetText(string text)
20 {
21 m_wTextLimit.SetText(text);
22 }
23
24 //------------------------------------------------------------------------------------------------
26 void SetTextVisible(bool state)
27 {
28 m_wTextLimit.SetVisible(state);
29 }
30
31 //------------------------------------------------------------------------------------------------
34 void SetBackgroundColor(notnull Color color)
35 {
36 m_wToolBackground.SetColor(color);
37 }
38}
Definition Color.c:13
void SetBackgroundColor(notnull Color color)