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_ButtonEffectVisibility.c
Go to the documentation of this file.
1
2
[
BaseContainerProps
(configRoot :
true
), SCR_ButtonEffectTitleAttribute(
"Visibility"
,
"m_sWidgetName"
)]
3
class
SCR_ButtonEffectVisibility
: SCR_ButtonEffectWidgetBase
4
{
5
[
Attribute
()]
6
bool
m_bDefault;
7
8
[
Attribute
()]
9
bool
m_bHovered;
10
11
[
Attribute
()]
12
bool
m_bActivated;
13
14
[
Attribute
()]
15
bool
m_bActivatedHovered;
16
17
[
Attribute
()]
18
bool
m_bDisabled;
19
20
[
Attribute
()]
21
bool
m_bDisabledActivated;
22
23
[
Attribute
()]
24
bool
m_bClicked;
25
26
[
Attribute
()]
27
bool
m_bFocusGained;
28
29
[
Attribute
()]
30
bool
m_bFocusLost;
31
32
[
Attribute
()]
33
bool
m_bToggledOn;
34
35
[
Attribute
()]
36
bool
m_bToggledOff;
37
38
//------------------------------------------------------------------------------------------------
39
override
void
OnStateDefault(
bool
instant)
40
{
41
Apply
(m_bDefault, instant);
42
}
43
44
//------------------------------------------------------------------------------------------------
45
override
void
OnStateHovered(
bool
instant)
46
{
47
Apply
(m_bHovered, instant);
48
}
49
50
//------------------------------------------------------------------------------------------------
51
override
void
OnStateActivated(
bool
instant)
52
{
53
Apply
(m_bActivated, instant);
54
}
55
56
//------------------------------------------------------------------------------------------------
57
override
void
OnStateActivatedHovered(
bool
instant)
58
{
59
Apply
(m_bActivatedHovered, instant);
60
}
61
62
//------------------------------------------------------------------------------------------------
63
override
void
OnClicked(
bool
instant)
64
{
65
Apply
(m_bClicked, instant);
66
}
67
68
//------------------------------------------------------------------------------------------------
69
override
void
OnStateDisabled(
bool
instant)
70
{
71
Apply
(m_bDisabled, instant);
72
}
73
74
//------------------------------------------------------------------------------------------------
75
override
void
OnStateDisabledActivated(
bool
instant)
76
{
77
Apply
(m_bDisabledActivated, instant);
78
}
79
80
//------------------------------------------------------------------------------------------------
81
override
void
OnFocusGained(
bool
instant)
82
{
83
Apply
(m_bFocusGained, instant);
84
}
85
86
//------------------------------------------------------------------------------------------------
87
override
void
OnFocusLost(
bool
instant)
88
{
89
Apply
(m_bFocusLost, instant);
90
}
91
92
//------------------------------------------------------------------------------------------------
93
override
void
OnToggledOn(
bool
instant)
94
{
95
Apply
(m_bToggledOn, instant);
96
}
97
98
//------------------------------------------------------------------------------------------------
99
override
void
OnToggledOff(
bool
instant)
100
{
101
Apply
(m_bToggledOff, instant);
102
}
103
104
//------------------------------------------------------------------------------------------------
105
// Called when effect is disabled. Here you should stop all running effects.
106
override
void
OnDisabled
()
107
{
108
AnimateWidget
.
StopAnimation
(m_wTarget,
WidgetAnimationOpacity
);
109
}
110
111
//------------------------------------------------------------------------------------------------
112
protected
void
Apply
(
bool
visible,
bool
instant)
113
{
114
m_wTarget.SetVisible(visible);
115
}
116
}
BaseContainerProps
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Definition
SCR_AIAnimationWaypoint.c:14
OnDisabled
void OnDisabled()
Definition
SCR_CampaignMilitaryBaseComponent.c:899
AnimateWidget
Definition
AnimateWidget.c:3
AnimateWidget::StopAnimation
static bool StopAnimation(Widget w, typename typeName)
Definition
AnimateWidget.c:26
SCR_ButtonEffectVisibility
Effect which sets a widget visible (SetVisible).
Definition
SCR_ButtonEffectVisibility.c:4
SCR_ButtonEffectVisibility::Apply
void Apply(bool visible, bool instant)
Definition
SCR_ButtonEffectVisibility.c:112
WidgetAnimationOpacity
Definition
WidgetAnimations.c:36
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
scripts
Game
UI
Components
ButtonComponents
ModularButton
Effects
SCR_ButtonEffectVisibility.c
Generated by
1.17.0