Dayz Explorer
1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
uiscriptedwindow.c
Go to the documentation of this file.
1
class
UIScriptedWindow
2
{
3
Widget
m_WgtRoot;
4
int
m_Id;
5
6
//---MOVE TO UIMANAGER WHEN FIXED
7
static
ref
map<int, UIScriptedWindow>
m_ActiveWindows;
8
9
static
void
AddToActiveWindows(
int
id
,
UIScriptedWindow
window )
10
{
11
if
( m_ActiveWindows == NULL )
12
{
13
m_ActiveWindows =
new
map<int, UIScriptedWindow>
;
14
}
15
16
m_ActiveWindows.Insert(
id
, window );
17
}
18
19
static
void
RemoveFromActiveWindows(
int
id
)
20
{
21
if
( m_ActiveWindows )
22
{
23
m_ActiveWindows.Remove(
id
);
24
}
25
}
26
27
static
UIScriptedWindow
GetWindow(
int
id
)
28
{
29
if
( m_ActiveWindows )
30
{
31
return
m_ActiveWindows.Get(
id
);
32
}
33
34
return
NULL;
35
}
36
37
static
map<int, UIScriptedWindow>
GetActiveWindows()
38
{
39
return
m_ActiveWindows;
40
}
41
//---
42
43
44
void
UIScriptedWindow
(
int
id
)
45
{
46
m_Id
= id;
47
}
48
49
void
~
UIScriptedWindow
()
50
{
51
GetWidgetRoot().Show(
false
);
52
delete
GetWidgetRoot();
53
}
54
55
Widget
GetWidgetRoot()
56
{
57
return
m_WgtRoot
;
58
}
59
60
Widget
Init()
61
{
62
}
63
64
void
ShowWindow()
65
{
66
GetWidgetRoot().Show(
true
);
67
}
68
69
void
HideWindow()
70
{
71
GetWidgetRoot().Show(
false
);
72
}
73
74
void
CloseWindow()
75
{
76
GetGame
().GetUIManager().CloseWindow(
m_Id
);
77
}
78
79
//--- EVENTS
80
bool
OnClick(
Widget
w,
int
x
,
int
y
,
int
button)
81
{
82
return
false
;
83
}
84
85
bool
OnModalResult(
Widget
w,
int
x
,
int
y
,
int
code,
int
result)
86
{
87
return
false
;
88
}
89
90
bool
OnDoubleClick(
Widget
w,
int
x
,
int
y
,
int
button)
91
{
92
return
false
;
93
}
94
95
bool
OnSelect(
Widget
w,
int
x
,
int
y
)
96
{
97
return
false
;
98
}
99
100
bool
OnItemSelected(
Widget
w,
int
x
,
int
y
,
int
row,
int
column,
int
oldRow,
int
oldColumn)
101
{
102
return
false
;
103
}
104
105
bool
OnFocus(
Widget
w,
int
x
,
int
y
)
106
{
107
return
false
;
108
}
109
110
bool
OnFocusLost(
Widget
w,
int
x
,
int
y
)
111
{
112
return
false
;
113
}
114
115
bool
OnMouseEnter(
Widget
w,
int
x
,
int
y
)
116
{
117
return
false
;
118
}
119
120
bool
OnMouseLeave(
Widget
w,
Widget
enterW,
int
x
,
int
y
)
121
{
122
return
false
;
123
}
124
125
bool
OnMouseButtonDown(
Widget
w,
int
x
,
int
y
,
int
button)
126
{
127
return
false
;
128
}
129
130
bool
OnMouseButtonUp(
Widget
w,
int
x
,
int
y
,
int
button)
131
{
132
return
false
;
133
}
134
135
bool
OnMouseWheel(
Widget
w,
int
x
,
int
y
,
int
wheel)
136
{
137
return
false
;
138
}
139
140
bool
OnController(
Widget
w,
int
control,
int
value)
141
{
142
return
false
;
143
}
144
145
bool
OnKeyDown(
Widget
w,
int
x
,
int
y
,
int
key)
146
{
147
return
false
;
148
}
149
150
bool
OnKeyUp(
Widget
w,
int
x
,
int
y
,
int
key)
151
{
152
return
false
;
153
}
154
155
bool
OnKeyPress(
Widget
w,
int
x
,
int
y
,
int
key)
156
{
157
return
false
;
158
}
159
160
bool
OnChange(
Widget
w,
int
x
,
int
y
,
bool
finished)
161
{
162
return
false
;
163
}
164
165
bool
OnDrag(
Widget
w,
int
x
,
int
y
)
166
{
167
return
false
;
168
}
169
170
bool
OnDragging(
Widget
w,
int
x
,
int
y
,
Widget
reciever)
171
{
172
return
false
;
173
}
174
175
bool
OnDraggingOver(
Widget
w,
int
x
,
int
y
,
Widget
reciever)
176
{
177
return
false
;
178
}
179
180
bool
OnDrop(
Widget
w,
int
x
,
int
y
,
Widget
reciever)
181
{
182
return
false
;
183
}
184
185
bool
OnDropReceived(
Widget
w,
int
x
,
int
y
,
Widget
reciever)
186
{
187
return
false
;
188
}
189
190
bool
OnEvent(
EventType
eventType,
Widget
target,
int
parameter0,
int
parameter1)
191
{
192
return
false
;
193
}
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
}
GetGame
proto native CGame GetGame()
m_WgtRoot
Widget m_WgtRoot
Definition:
huddebug.c:92
y
Icon y
EventType
TypeID EventType
Definition:
enwidgets.c:55
map
map
Definition:
controlsxboxnew.c:3
UIScriptedWindow
Definition:
uiscriptedwindow.c:1
m_Id
class GetServerModListResult m_Id
GetServersResultRow the output structure of the GetServers operation that represents one game server.
x
Icon x
Widget
Definition:
enwidgets.c:189
DAYZ
scripts_v1.24.157551
scripts
game
tools
uiscriptedwindow.c
Generated by
1.8.17