Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_TutorialFastTravelSpinBox.c
Go to the documentation of this file.
2{
4
5 //------------------------------------------------------------------------------------------------
7 {
8 if (!m_OnFocus)
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}
ScriptInvokerBase< ScriptInvokerBoolMethod > ScriptInvokerBool
override bool SetCurrentItem(int i, bool playSound=false, bool animate=false)
override bool OnFocus(Widget w, int x, int y)
override bool OnFocusLost(Widget w, int x, int y)