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_TutorialFastTravelSpinBox.c
Go to the documentation of this file.
1
class
SCR_TutorialFastTravelSpinBox
:
SCR_SpinBoxComponent
2
{
3
protected
ref
ScriptInvokerBool
m_OnFocus
;
4
5
//------------------------------------------------------------------------------------------------
6
ScriptInvokerBool
GetOnFocus
()
7
{
8
if
(!
m_OnFocus
)
9
m_OnFocus
=
new
ScriptInvokerBool
;
10
11
return
m_OnFocus
;
12
}
13
14
//------------------------------------------------------------------------------------------------
15
override
bool
OnFocus
(
Widget
w,
int
x,
int
y)
16
{
17
super.OnFocus(w, x, y);
18
19
m_OnFocus
.Invoke(
true
);
20
21
return
false
;
22
}
23
24
//------------------------------------------------------------------------------------------------
25
override
bool
OnFocusLost
(
Widget
w,
int
x,
int
y)
26
{
27
super.OnFocusLost(w, x, y);
28
29
m_OnFocus
.Invoke(
false
);
30
31
return
false
;
32
}
33
34
//------------------------------------------------------------------------------------------------
35
override
bool
SetCurrentItem
(
int
i,
bool
playSound =
false
,
bool
animate =
false
)
36
{
37
super.SetCurrentItem(i, playSound, animate);
38
39
return
true
;
40
}
41
42
//------------------------------------------------------------------------------------------------
43
int
GetItemIndex
(Managed item)
44
{
45
if
(!
m_aElementData
)
46
return
-1;
47
48
return
m_aElementData
.Find(item);
49
}
50
}
ScriptInvokerBool
ScriptInvokerBase< ScriptInvokerBoolMethod > ScriptInvokerBool
Definition
SCR_ScriptInvokerHelper.c:41
SCR_SelectionWidgetComponent::m_aElementData
ref array< ref Managed > m_aElementData
Definition
SCR_SelectionWidgetComponent.c:6
SCR_SpinBoxComponent
Definition
SCR_SpinBoxComponent.c:2
SCR_TutorialFastTravelSpinBox
Definition
SCR_TutorialFastTravelSpinBox.c:2
SCR_TutorialFastTravelSpinBox::GetOnFocus
ScriptInvokerBool GetOnFocus()
Definition
SCR_TutorialFastTravelSpinBox.c:6
SCR_TutorialFastTravelSpinBox::SetCurrentItem
override bool SetCurrentItem(int i, bool playSound=false, bool animate=false)
Definition
SCR_TutorialFastTravelSpinBox.c:35
SCR_TutorialFastTravelSpinBox::OnFocus
override bool OnFocus(Widget w, int x, int y)
Definition
SCR_TutorialFastTravelSpinBox.c:15
SCR_TutorialFastTravelSpinBox::GetItemIndex
int GetItemIndex(Managed item)
Definition
SCR_TutorialFastTravelSpinBox.c:43
SCR_TutorialFastTravelSpinBox::OnFocusLost
override bool OnFocusLost(Widget w, int x, int y)
Definition
SCR_TutorialFastTravelSpinBox.c:25
SCR_TutorialFastTravelSpinBox::m_OnFocus
ref ScriptInvokerBool m_OnFocus
Definition
SCR_TutorialFastTravelSpinBox.c:3
Widget
Definition
Widget.c:13
scripts
Game
UI
Tutorial
SCR_TutorialFastTravelSpinBox.c
Generated by
1.17.0