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_ButtonEffectSound.c
Go to the documentation of this file.
1
2
[
BaseContainerProps
(configRoot :
true
), SCR_ButtonEffectTitleAttribute(
"Sound"
,
""
)]
3
class
SCR_ButtonEffectSound
: SCR_ButtonEffectBase
4
{
5
[
Attribute
(
SCR_SoundEvent
.CLICK,
UIWidgets
.EditBox,
""
)]
6
protected
string
m_sSound
;
7
8
//------------------------------------------------------------------------------------------------
9
override
void
OnStateDefault
(
bool
instant)
10
{
11
Apply
(instant);
12
}
13
14
//------------------------------------------------------------------------------------------------
15
override
void
OnStateHovered
(
bool
instant)
16
{
17
Apply
(instant);
18
}
19
20
//------------------------------------------------------------------------------------------------
21
override
void
OnStateActivated
(
bool
instant)
22
{
23
Apply
(instant);
24
}
25
26
//------------------------------------------------------------------------------------------------
27
override
void
OnStateActivatedHovered
(
bool
instant)
28
{
29
Apply
(instant);
30
}
31
32
//------------------------------------------------------------------------------------------------
33
override
void
OnStateDisabled
(
bool
instant)
34
{
35
Apply
(instant);
36
}
37
38
//------------------------------------------------------------------------------------------------
39
override
void
OnStateDisabledActivated
(
bool
instant)
40
{
41
Apply
(instant);
42
}
43
44
//------------------------------------------------------------------------------------------------
45
override
void
OnClicked
(
bool
instant)
46
{
47
Apply
(instant);
48
}
49
50
//------------------------------------------------------------------------------------------------
51
override
void
OnFocusGained
(
bool
instant)
52
{
53
Apply
(instant);
54
}
55
56
//------------------------------------------------------------------------------------------------
57
override
void
OnFocusLost
(
bool
instant)
58
{
59
Apply
(instant);
60
}
61
62
//------------------------------------------------------------------------------------------------
63
override
void
OnToggledOn
(
bool
instant)
64
{
65
Apply
(instant);
66
}
67
68
//------------------------------------------------------------------------------------------------
69
override
void
OnToggledOff
(
bool
instant)
70
{
71
Apply
(instant);
72
}
73
74
//------------------------------------------------------------------------------------------------
75
override
void
OnMouseEnter
(
bool
instant)
76
{
77
Apply
(instant);
78
}
79
80
//------------------------------------------------------------------------------------------------
81
override
void
OnMouseLeave
(
bool
instant)
82
{
83
Apply
(instant);
84
}
85
86
//------------------------------------------------------------------------------------------------
87
protected
void
Apply
(
bool
instant)
88
{
89
if
(!instant && !
m_sSound
.IsEmpty())
90
SCR_UISoundEntity
.SoundEvent(
m_sSound
);
91
}
92
}
BaseContainerProps
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Definition
SCR_AIAnimationWaypoint.c:14
SCR_ButtonEffectSound
Plays a sound.
Definition
SCR_ButtonEffectSound.c:4
SCR_ButtonEffectSound::OnFocusGained
override void OnFocusGained(bool instant)
Definition
SCR_ButtonEffectSound.c:51
SCR_ButtonEffectSound::OnStateDisabled
override void OnStateDisabled(bool instant)
Definition
SCR_ButtonEffectSound.c:33
SCR_ButtonEffectSound::m_sSound
string m_sSound
Definition
SCR_ButtonEffectSound.c:6
SCR_ButtonEffectSound::OnStateDefault
override void OnStateDefault(bool instant)
Definition
SCR_ButtonEffectSound.c:9
SCR_ButtonEffectSound::OnMouseEnter
override void OnMouseEnter(bool instant)
Definition
SCR_ButtonEffectSound.c:75
SCR_ButtonEffectSound::OnToggledOff
override void OnToggledOff(bool instant)
Definition
SCR_ButtonEffectSound.c:69
SCR_ButtonEffectSound::OnStateHovered
override void OnStateHovered(bool instant)
Definition
SCR_ButtonEffectSound.c:15
SCR_ButtonEffectSound::Apply
void Apply(bool instant)
Definition
SCR_ButtonEffectSound.c:87
SCR_ButtonEffectSound::OnClicked
override void OnClicked(bool instant)
Definition
SCR_ButtonEffectSound.c:45
SCR_ButtonEffectSound::OnFocusLost
override void OnFocusLost(bool instant)
Definition
SCR_ButtonEffectSound.c:57
SCR_ButtonEffectSound::OnStateDisabledActivated
override void OnStateDisabledActivated(bool instant)
Definition
SCR_ButtonEffectSound.c:39
SCR_ButtonEffectSound::OnStateActivatedHovered
override void OnStateActivatedHovered(bool instant)
Definition
SCR_ButtonEffectSound.c:27
SCR_ButtonEffectSound::OnMouseLeave
override void OnMouseLeave(bool instant)
Definition
SCR_ButtonEffectSound.c:81
SCR_ButtonEffectSound::OnToggledOn
override void OnToggledOn(bool instant)
Definition
SCR_ButtonEffectSound.c:63
SCR_ButtonEffectSound::OnStateActivated
override void OnStateActivated(bool instant)
Definition
SCR_ButtonEffectSound.c:21
SCR_SoundEvent
Definition
SCR_SoundEvent.c:2
SCR_UISoundEntity
Definition
SCR_UISoundEntity.c:8
UIWidgets
Definition
attributes.c:40
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
scripts
Game
UI
Components
ButtonComponents
ModularButton
Effects
SCR_ButtonEffectSound.c
Generated by
1.17.0