Arma Reforger Explorer
1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Toggle main menu visibility
Loading...
Searching...
No Matches
SCR_ToolMenuButtonComponent.c
Go to the documentation of this file.
1
class
SCR_ToolMenuButtonComponent
:
SCR_ButtonImageComponent
2
{
3
protected
TextWidget
m_wTextLimit
;
4
protected
Widget
m_wToolBackground
;
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
}
Color
Definition
Color.c:13
SCR_ButtonImageComponent
Definition
SCR_ButtonImageComponent.c:3
SCR_ToolMenuButtonComponent
Definition
SCR_ToolMenuButtonComponent.c:2
SCR_ToolMenuButtonComponent::m_wToolBackground
Widget m_wToolBackground
Definition
SCR_ToolMenuButtonComponent.c:4
SCR_ToolMenuButtonComponent::SetBackgroundColor
void SetBackgroundColor(notnull Color color)
Definition
SCR_ToolMenuButtonComponent.c:34
SCR_ToolMenuButtonComponent::SetText
void SetText(string text)
Definition
SCR_ToolMenuButtonComponent.c:19
SCR_ToolMenuButtonComponent::SetTextVisible
void SetTextVisible(bool state)
Definition
SCR_ToolMenuButtonComponent.c:26
SCR_ToolMenuButtonComponent::m_sTextLimitWidget
const string m_sTextLimitWidget
Definition
SCR_ToolMenuButtonComponent.c:6
SCR_ToolMenuButtonComponent::m_sBackgroundWidget
const string m_sBackgroundWidget
Definition
SCR_ToolMenuButtonComponent.c:7
SCR_ToolMenuButtonComponent::m_wTextLimit
TextWidget m_wTextLimit
Definition
SCR_ToolMenuButtonComponent.c:3
SCR_ToolMenuButtonComponent::HandlerAttached
override void HandlerAttached(Widget w)
Definition
SCR_ToolMenuButtonComponent.c:10
TextWidget
Definition
TextWidget.c:16
Widget
Definition
Widget.c:13
scripts
Game
Map
Components
SCR_ToolMenuButtonComponent.c
Generated by
1.17.0