Dayz
Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Toggle main menu visibility
Loading...
Searching...
No Matches
controlsxboxnew.c
Go to the documentation of this file.
1
2
//used as UserID in the layout. Values assigned for convenience here
3
enum
EConsoleButtonsControls
4
{
5
INVALID
= 0,
//assumed unassigned value, ignored (dividers, formatting elements etc.)
6
BUTTON_MENU
= 1,
7
BUTTON_VIEW
= 2,
8
BUTTON_A
= 4,
9
BUTTON_B
= 8,
10
BUTTON_X
= 16,
11
BUTTON_Y
= 32,
12
BUTTON_PAD_UP
= 64,
13
BUTTON_PAD_DOWN
= 128,
14
BUTTON_PAD_LEFT
= 256,
15
BUTTON_PAD_RIGHT
= 512,
16
BUTTON_SHOULDER_LEFT
= 1024,
17
BUTTON_SHOULDER_RIGHT
= 2048,
18
BUTTON_THUMB_LEFT
= 4096,
19
BUTTON_THUMB_RIGHT
= 8192,
20
BUTTON_TRIGGER_LEFT
= 16384,
21
BUTTON_TRIGGER_RIGHT
= 32768,
22
BUTTON_GROUP_RIGHT_SIDE_COMMON
= 65536,
23
BUTTON_GROUP_PAD_COMMON
= 131072
24
}
25
26
typedef
map<int,ref array<Widget>
>
TButtonPairingInfo
;
//<button_mask,<associated widgets on the respective side>>
27
28
class
ControlsXboxNew
extends
UIScriptedMenu
29
{
30
protected
string
m_BackButtonTextID
;
31
protected
string
m_NextPresetText
;
32
protected
int
m_CurrentTabIdx
= -1;
33
protected
int
m_CurrentPresetVariant
= -1;
34
35
protected
ButtonWidget
m_Back
;
36
protected
ImageWidget
m_ControlsLayoutImage
;
37
38
//-------------
39
protected
CanvasWidget
m_CanvasWidget
;
40
protected
TabberUI
m_TabScript
;
41
protected
Widget
m_TabberWidget
;
42
protected
Widget
m_ControlsImage
;
43
protected
Widget
m_PlatformHolder
;
//controls container for selected platform
44
protected
Widget
m_VariantWidget
;
45
46
protected
ref
map<int,Widget>
m_ImageMarkerStructure
;
47
protected
ref
map<int,Widget>
m_CategoryStructure
;
48
protected
ref
map<int,ref TButtonPairingInfo>
m_AreasLR
;
//left/right area holders
49
50
protected
const
int
AREA_LEFT
= 1;
51
protected
const
int
AREA_RIGHT
= 2;
52
protected
const
int
PLATFORM_ADJUST_X1
= 1000;
53
protected
const
int
PLATFORM_ADJUST_PS
= 2000;
54
55
//============================================
56
// ControlsXboxNew
57
//============================================
58
void
~ControlsXboxNew
()
59
{
60
PPERequesterBank.GetRequester(PPERequesterBank.REQ_MENUEFFECTS).Stop();
61
}
62
63
protected
void
OnInputPresetChanged
()
64
{
65
#ifdef PLATFORM_CONSOLE
66
UpdateControlsElements
();
67
UpdateControlsElementVisibility
();
68
#endif
69
}
70
71
protected
void
OnInputDeviceChanged
(
EInputDeviceType
pInputDeviceType)
72
{
73
bool
mk =
g_Game
.GetInput().IsEnabledMouseAndKeyboard();
74
bool
mkServer =
g_Game
.GetInput().IsEnabledMouseAndKeyboardEvenOnServer();
75
76
switch
(pInputDeviceType)
77
{
78
case
EInputDeviceType
.CONTROLLER:
79
if
(mk && mkServer)
80
{
81
g_Game
.GetUIManager().ShowUICursor(
false
);
82
}
83
break
;
84
85
default
:
86
if
(
g_Game
.GetInput().IsEnabledMouseAndKeyboard())
87
{
88
g_Game
.GetUIManager().ShowUICursor(
true
);
89
}
90
break
;
91
}
92
93
UpdateControlsElementVisibility
();
94
}
95
96
void
Back
()
97
{
98
g_Game
.GetUIManager().Back();
99
}
100
101
void
UpdateTabContent
(
int
tab_index)
102
{
103
Widget
w;
104
//hide old
105
if
(
m_CurrentTabIdx
!= -1)
106
{
107
m_VariantWidget
.Show(
false
);
108
while
(
m_VariantWidget
.GetParent())
109
{
110
m_VariantWidget
=
m_VariantWidget
.GetParent();
111
m_VariantWidget
.Show(
false
);
112
}
113
}
114
115
//show new
116
w =
FindChildByID
(
m_CategoryStructure
[tab_index],
InputUtils
.
GetConsolePresetID
());
117
w.Show(
true
);
118
m_VariantWidget
= w;
119
120
while
(w.GetParent())
121
{
122
w = w.GetParent();
123
w.Show(
true
);
124
}
125
126
DrawConnectingLines
(tab_index);
127
m_CurrentTabIdx
= tab_index;
128
}
129
130
protected
void
DrawConnectingLines
(
int
index)
131
{
132
//disconnected for now, to be finished
133
return
;
134
135
m_CanvasWidget
.Clear();
136
137
//TODO drawing over nyah
138
m_VariantWidget
;
139
m_AreasLR
=
new
map<int,ref TButtonPairingInfo>
;
140
141
Widget
wid_side;
//left or right area
142
Widget
wid_spacer;
//item in the L/R areas
143
wid_side =
m_VariantWidget
.GetChildren();
144
typename
t = EConsoleButtonsControls;
145
int
side_idx;
146
int
enum_value;
147
array<Widget>
items_raw;
148
array<Widget>
items_filtered;
149
150
while
(wid_side)
151
{
152
TButtonPairingInfo
button_mapping =
new
TButtonPairingInfo
;
153
154
side_idx = wid_side.GetUserID();
155
wid_spacer = wid_side.GetChildren();
//dig into the side first..
156
157
for
(
int
i = 1; i <
EnumTools
.
GetEnumSize
(EConsoleButtonsControls); i++)
158
{
159
items_raw =
new
array<Widget>
;
160
items_filtered =
new
array<Widget>
;
161
t.GetVariableValue(null, i, enum_value);
//TODO
162
163
FindAllChildrenByID
(wid_spacer,enum_value,items_raw);
164
if
(
FilterByVisible
(items_raw,items_filtered) > 0)
//if there are any button-relevant items..
165
{
166
button_mapping.Insert(enum_value,items_filtered);
167
}
168
}
169
m_AreasLR
.Insert(side_idx,button_mapping);
170
171
wid_side = wid_side.GetSibling();
172
}
173
}
174
175
//============================================
176
// Init
177
//============================================
178
override
Widget
Init
()
179
{
180
m_CategoryStructure
=
new
map<int,Widget>
;
181
m_ImageMarkerStructure
=
new
map<int,Widget>
;
182
183
layoutRoot =
g_Game
.GetWorkspace().CreateWidgets(
"gui/layouts/xbox/Controls_Screen.layout"
);
184
#ifdef PLATFORM_XBOX
185
m_ControlsImage
= layoutRoot.FindAnyWidget(
"XboxControlsImage"
);
186
#else
187
#ifdef PLATFORM_MSSTORE
188
m_ControlsImage
= layoutRoot.FindAnyWidget(
"XboxControlsImage"
);
189
#else
190
#ifdef PLATFORM_PS4
191
m_ControlsImage
= layoutRoot.FindAnyWidget(
"PSControlsImage"
);
192
#endif
193
#endif
194
#endif
195
m_ControlsImage
.Show(
true
);
196
m_TabberWidget
= layoutRoot.FindAnyWidget(
"Tabber"
);
197
m_TabberWidget
.GetScript(
m_TabScript
);
198
m_TabScript
.m_OnTabSwitch.Insert(
UpdateTabContent
);
199
m_CanvasWidget
= CanvasWidget.Cast(layoutRoot.FindAnyWidget(
"CanvasUniversal"
));
200
m_Back
= ButtonWidget.Cast(layoutRoot.FindAnyWidget(
"back"
));
201
202
UpdateToolbarText
();
203
UpdateControlsElements
();
204
UpdateControlsElementVisibility
();
205
206
PPERequester_MenuEffects requester;
207
Class
.
CastTo
(requester,PPERequesterBank.GetRequester(PPERequesterBank.REQ_MENUEFFECTS));
208
requester.SetVignetteIntensity(0.6);
209
210
ComposeData
();
211
UpdateTabContent
(0);
212
213
g_Game
.GetMission().GetOnInputPresetChanged().Insert(
OnInputPresetChanged
);
214
g_Game
.GetMission().GetOnInputDeviceChanged().Insert(
OnInputDeviceChanged
);
215
216
return
layoutRoot;
217
}
218
219
override
void
OnShow
()
220
{
221
super.OnShow();
222
223
SetFocus
(null);
224
OnInputDeviceChanged
(
g_Game
.GetInput().GetCurrentInputDevice());
225
}
226
227
override
bool
OnClick
(
Widget
w,
int
x
,
int
y
,
int
button)
228
{
229
if
(button ==
MouseState
.LEFT)
230
{
231
if
(w ==
m_Back
)
232
{
233
Back
();
234
return
true
;
235
}
236
}
237
return
false
;
238
}
239
240
override
bool
OnMouseEnter
(
Widget
w,
int
x
,
int
y
)
241
{
242
if
(
IsFocusable
(w))
243
{
244
ColorHighlight
(w);
245
return
true
;
246
}
247
return
false
;
248
}
249
250
override
bool
OnMouseLeave
(
Widget
w,
Widget
enterW,
int
x
,
int
y
)
251
{
252
if
(
IsFocusable
(w))
253
{
254
ColorNormal
(w);
255
return
true
;
256
}
257
return
false
;
258
}
259
260
override
bool
OnFocus
(
Widget
w,
int
x
,
int
y
)
261
{
262
if
(
IsFocusable
(w))
263
{
264
ColorHighlight
(w);
265
return
true
;
266
}
267
return
false
;
268
}
269
270
override
bool
OnFocusLost
(
Widget
w,
int
x
,
int
y
)
271
{
272
if
(
IsFocusable
(w))
273
{
274
ColorNormal
(w);
275
return
true
;
276
}
277
return
false
;
278
}
279
280
bool
IsFocusable
(
Widget
w)
281
{
282
return
(w && w ==
m_Back
);
283
}
284
285
override
void
Update
(
float
timeslice)
286
{
287
if
(
GetUApi
().GetInputByID(UAUITabLeft).LocalPress())
288
{
289
m_TabScript
.PreviousTab();
290
}
291
292
if
(
GetUApi
().GetInputByID(UAUITabRight).LocalPress())
293
{
294
m_TabScript
.NextTab();
295
}
296
297
if
(
GetUApi
().GetInputByID(UAUIBack).LocalPress())
298
{
299
Back
();
300
}
301
302
if
(
GetUApi
().GetInputByID(UASwitchPreset).LocalPress())
303
{
304
PerformSwitchPreset
();
305
m_TabScript
.RefreshTab();
306
}
307
}
308
310
protected
void
ComposeData
()
311
{
312
if
(
m_CategoryStructure
)
313
{
314
m_CategoryStructure
= null;
315
m_CategoryStructure
=
new
map<int,Widget>
;
316
}
317
318
if
(
m_ImageMarkerStructure
)
319
{
320
m_ImageMarkerStructure
= null;
321
m_ImageMarkerStructure
=
new
map<int,Widget>
;
322
}
323
324
Widget
w =
m_ControlsImage
.GetChildren();
325
m_ImageMarkerStructure
.Set(w.GetUserID(),w);
326
327
while
(w.GetSibling())
328
{
329
w = w.GetSibling();
330
m_ImageMarkerStructure
.Set(w.GetUserID(),w);
//inits button markers with their IDs
331
}
332
333
InputUtils
.
UpdateConsolePresetID
();
334
335
#ifdef PLATFORM_MSSTORE
336
m_PlatformHolder
=
FindChildByID
(layoutRoot,
PLATFORM_ADJUST_X1
);
337
#else
338
#ifdef PLATFORM_XBOX
339
m_PlatformHolder
=
FindChildByID
(layoutRoot,
PLATFORM_ADJUST_X1
);
340
#else
341
m_PlatformHolder
=
FindChildByID
(layoutRoot,
PLATFORM_ADJUST_PS
);
342
#endif
343
#endif
344
345
//categories
346
Widget
category_widget =
m_PlatformHolder
.GetChildren();
347
m_CategoryStructure
.Set(category_widget.GetUserID(),category_widget);
348
349
while
(category_widget.GetSibling())
350
{
351
category_widget = category_widget.GetSibling();
352
m_CategoryStructure
.Set(category_widget.GetUserID(),category_widget);
353
}
354
}
355
356
protected
void
PerformSwitchPreset
()
357
{
358
Print
(
"PerformSwitchPreset - 1"
);
359
int
index;
360
string
preset_text;
361
UAInputAPI
inputAPI =
GetUApi
();
362
363
index = inputAPI.
PresetCurrent
() + 1;
364
if
(index >= inputAPI.
PresetCount
())
365
{
366
index = 0;
367
}
368
369
inputAPI.
SupressNextFrame
(
true
);
370
inputAPI.
PresetSelect
(index);
371
UpdateToolbarText
();
372
373
g_Game
.GetMission().GetOnInputPresetChanged().Invoke();
374
375
#ifdef PLATFORM_WINDOWS
376
GetUApi
().
Export
();
//works on emulated consoles (-xbox,-ps4)
377
#else
378
GetUApi
().
SaveInputPresetMiscData
();
//default console functionality
379
#endif
380
381
InputUtils
.
UpdateConsolePresetID
();
382
UpdateControlsElements
();
383
}
384
385
protected
void
UpdateToolbarText
()
386
{
387
UAInputAPI
inputAPI =
GetUApi
();
388
int
target_idx = inputAPI.
PresetCurrent
() + 1;
389
int
count = inputAPI.
PresetCount
();
390
if
(target_idx >= inputAPI.
PresetCount
())
391
{
392
target_idx = 0;
393
}
394
395
m_NextPresetText
= inputAPI.
PresetName
(target_idx);
396
if
(
m_NextPresetText
==
InputUtils
.
PRESET_OLD
)
397
{
398
m_NextPresetText
=
"#STR_UAPRESET_ChangeTo_0"
;
399
}
400
else
if
(
m_NextPresetText
==
InputUtils
.
PRESET_NEW
)
401
{
402
m_NextPresetText
=
"#STR_UAPRESET_ChangeTo_1"
;
403
}
404
else
405
{
406
m_NextPresetText
=
"Invalid console preset name: "
+
m_NextPresetText
;
407
}
408
}
409
411
protected
Widget
FindChildByID
(
Widget
wid,
int
user_id)
412
{
413
Widget
ret = wid.GetChildren();
414
while
(ret)
415
{
416
if
(ret.GetUserID() == user_id)
417
{
418
return
ret;
419
}
420
ret = ret.GetSibling();
421
}
422
return
ret;
423
}
424
426
protected
bool
FindAllChildrenByID
(
Widget
wid,
int
user_id, out
array<Widget>
results)
427
{
428
Widget
child = wid.GetChildren();
429
while
(child)
430
{
431
if
(child.GetUserID() == user_id)
432
{
433
results.Insert(child);
434
}
435
child = child.GetSibling();
436
}
437
return
(results && results.Count() > 0);
438
}
439
441
protected
int
FilterByVisible
(
array<Widget>
input,
array<Widget>
filtered)
442
{
443
for
(
int
i = 0; i < input.Count(); i++)
444
{
445
if
(input[i].
IsVisible
())
446
{
447
filtered.Insert(input[i]);
448
}
449
}
450
451
return
filtered.Count();
452
}
453
454
void
ColorHighlight
(
Widget
w)
455
{
456
if
(!w)
457
return
;
458
459
int
color_pnl =
ARGB
(255, 0, 0, 0);
460
int
color_lbl =
ARGB
(255, 255, 0, 0);
461
462
#ifdef PLATFORM_CONSOLE
463
color_pnl =
ARGB
(255, 200, 0, 0);
464
color_lbl =
ARGB
(255, 255, 255, 255);
465
#endif
466
467
ButtonSetColor
(w, color_pnl);
468
ButtonSetTextColor
(w, color_lbl);
469
}
470
471
void
ColorNormal
(
Widget
w)
472
{
473
if
(!w)
474
return
;
475
476
int
color_pnl =
ARGB
(0, 0, 0, 0);
477
int
color_lbl =
ARGB
(255, 255, 255, 255);
478
479
ButtonSetColor
(w, color_pnl);
480
ButtonSetTextColor
(w, color_lbl);
481
}
482
483
void
ButtonSetText
(
Widget
w,
string
text)
484
{
485
if
(!w)
486
return
;
487
488
TextWidget
label =
TextWidget
.Cast(w.FindWidget(w.GetName() +
"_label"
));
489
490
if
(label)
491
{
492
label.SetText(text);
493
}
494
495
}
496
497
void
ButtonSetColor
(
Widget
w,
int
color)
498
{
499
if
(!w)
500
return
;
501
502
Widget
panel = w.FindWidget(w.GetName() +
"_panel"
);
503
504
if
(panel)
505
{
506
panel.SetColor(color);
507
}
508
}
509
510
void
ButtonSetTextColor
(
Widget
w,
int
color)
511
{
512
if
(!w)
513
return
;
514
515
TextWidget
label =
TextWidget
.Cast(w.FindAnyWidget(w.GetName() +
"_label"
));
516
TextWidget
text =
TextWidget
.Cast(w.FindAnyWidget(w.GetName() +
"_text"
));
517
TextWidget
text2 =
TextWidget
.Cast(w.FindAnyWidget(w.GetName() +
"_text_1"
));
518
519
if
(label)
520
{
521
label.SetColor(color);
522
}
523
524
if
(text)
525
{
526
text.SetColor(color);
527
}
528
529
if
(text2)
530
{
531
text2.SetColor(color);
532
}
533
}
534
535
protected
void
UpdateControlsElements
()
536
{
537
RichTextWidget
toolbar_switch =
RichTextWidget
.Cast(layoutRoot.FindAnyWidget(
"ChangePresetText"
));
538
toolbar_switch.SetText(
InputUtils
.
GetRichtextButtonIconFromInputAction
(
"UASwitchPreset"
,
m_NextPresetText
, EUAINPUT_DEVICE_CONTROLLER,
InputUtils
.
ICON_SCALE_TOOLBAR
));
539
540
RichTextWidget
toolbar_text =
RichTextWidget
.Cast(layoutRoot.FindAnyWidget(
"ContextToolbarText"
));
541
string
text =
string
.Format(
" %1"
,
InputUtils
.
GetRichtextButtonIconFromInputAction
(
"UAUIBack"
,
"#STR_settings_menu_root_toolbar_bg_ConsoleToolbar_Back_BackText0"
, EUAINPUT_DEVICE_CONTROLLER,
InputUtils
.
ICON_SCALE_TOOLBAR
));
542
toolbar_text.SetText(text);
543
}
544
545
protected
void
UpdateControlsElementVisibility
()
546
{
547
bool
toolbarShow =
false
;
548
#ifdef PLATFORM_CONSOLE
549
toolbarShow = !
g_Game
.GetInput().IsEnabledMouseAndKeyboardEvenOnServer() ||
g_Game
.GetInput().GetCurrentInputDevice() ==
EInputDeviceType
.CONTROLLER;
550
#endif
551
552
layoutRoot.FindAnyWidget(
"toolbar_bg"
).Show(toolbarShow);
553
layoutRoot.FindAnyWidget(
"play_panel_root"
).Show(!toolbarShow);
554
}
555
}
Class
Super root of all classes in Enforce script.
Definition
enscript.c:11
EnumTools
Definition
enconvert.c:603
EnumTools::GetEnumSize
static int GetEnumSize(typename e)
Return amount of values in enum.
Definition
enconvert.c:636
InputUtils
Definition
inpututils.c:2
InputUtils::GetConsolePresetID
static int GetConsolePresetID()
Definition
inpututils.c:224
InputUtils::ICON_SCALE_TOOLBAR
static const float ICON_SCALE_TOOLBAR
Definition
inpututils.c:15
InputUtils::UpdateConsolePresetID
static void UpdateConsolePresetID()
Definition
inpututils.c:209
InputUtils::GetRichtextButtonIconFromInputAction
static string GetRichtextButtonIconFromInputAction(notnull UAInput pInput, string pLocalizedDescription, int pInputDeviceType=EUAINPUT_DEVICE_CONTROLLER, float pScale=ICON_SCALE_NORMAL, bool pVertical=false)
Definition
inpututils.c:167
InputUtils::PRESET_NEW
static const string PRESET_NEW
Definition
inpututils.c:5
InputUtils::PRESET_OLD
static const string PRESET_OLD
Definition
inpututils.c:4
RichTextWidget
Definition
gameplay.c:317
TextWidget
Definition
enwidgets.c:220
UAInputAPI
Definition
uainput.c:166
UAInputAPI::PresetSelect
proto native void PresetSelect(int index)
UAInputAPI::PresetCurrent
proto native int PresetCurrent()
UAInputAPI::PresetName
proto native owned string PresetName(int index)
UAInputAPI::SaveInputPresetMiscData
proto native void SaveInputPresetMiscData()
UAInputAPI::Export
proto native void Export()
UAInputAPI::SupressNextFrame
proto native void SupressNextFrame(bool bForce)
UAInputAPI::PresetCount
proto native int PresetCount()
UIScriptedMenu
Xbox menu.
Definition
dayzgame.c:64
UIScriptedMenu::OnInputPresetChanged
void OnInputPresetChanged()
Definition
controlsxboxnew.c:63
UIScriptedMenu::m_VariantWidget
Widget m_VariantWidget
Definition
controlsxboxnew.c:44
UIScriptedMenu::m_BackButtonTextID
string m_BackButtonTextID
Definition
controlsxboxnew.c:30
UIScriptedMenu::m_ControlsImage
Widget m_ControlsImage
Definition
controlsxboxnew.c:42
UIScriptedMenu::ButtonSetText
void ButtonSetText(Widget w, string text)
Definition
controlsxboxnew.c:483
UIScriptedMenu::m_PlatformHolder
Widget m_PlatformHolder
Definition
controlsxboxnew.c:43
UIScriptedMenu::PLATFORM_ADJUST_PS
const int PLATFORM_ADJUST_PS
Definition
controlsxboxnew.c:53
UIScriptedMenu::FindAllChildrenByID
bool FindAllChildrenByID(Widget wid, int user_id, out array< Widget > results)
Finds all immediate children widgets with corresponding userIDs.
Definition
controlsxboxnew.c:426
UIScriptedMenu::~ControlsXboxNew
void ~ControlsXboxNew()
Definition
controlsxboxnew.c:58
UIScriptedMenu::UpdateControlsElementVisibility
void UpdateControlsElementVisibility()
Definition
controlsxboxnew.c:545
UIScriptedMenu::Update
override void Update(float timeslice)
Definition
controlsxboxnew.c:285
UIScriptedMenu::ComposeData
void ComposeData()
Inits data structure.
Definition
controlsxboxnew.c:310
UIScriptedMenu::FilterByVisible
int FilterByVisible(array< Widget > input, array< Widget > filtered)
returns count
Definition
controlsxboxnew.c:441
UIScriptedMenu::OnShow
override void OnShow()
Definition
controlsxboxnew.c:219
UIScriptedMenu::OnMouseLeave
override bool OnMouseLeave(Widget w, Widget enterW, int x, int y)
Definition
controlsxboxnew.c:250
UIScriptedMenu::m_ControlsLayoutImage
ImageWidget m_ControlsLayoutImage
Definition
controlsxboxnew.c:36
UIScriptedMenu::m_CurrentPresetVariant
int m_CurrentPresetVariant
Definition
controlsxboxnew.c:33
UIScriptedMenu::ButtonSetColor
void ButtonSetColor(Widget w, int color)
Definition
controlsxboxnew.c:497
UIScriptedMenu::DrawConnectingLines
void DrawConnectingLines(int index)
Definition
controlsxboxnew.c:130
UIScriptedMenu::m_CanvasWidget
CanvasWidget m_CanvasWidget
Definition
controlsxboxnew.c:39
UIScriptedMenu::m_TabScript
TabberUI m_TabScript
Definition
controlsxboxnew.c:40
UIScriptedMenu::m_Back
ButtonWidget m_Back
Definition
controlsxboxnew.c:35
UIScriptedMenu::ButtonSetTextColor
void ButtonSetTextColor(Widget w, int color)
Definition
controlsxboxnew.c:510
UIScriptedMenu::UpdateTabContent
void UpdateTabContent(int tab_index)
Definition
controlsxboxnew.c:101
UIScriptedMenu::m_ImageMarkerStructure
ref map< int, Widget > m_ImageMarkerStructure
Definition
controlsxboxnew.c:46
UIScriptedMenu::OnInputDeviceChanged
void OnInputDeviceChanged(EInputDeviceType pInputDeviceType)
Definition
controlsxboxnew.c:71
UIScriptedMenu::m_AreasLR
ref map< int, ref TButtonPairingInfo > m_AreasLR
Definition
controlsxboxnew.c:48
UIScriptedMenu::ColorNormal
void ColorNormal(Widget w)
Definition
controlsxboxnew.c:471
UIScriptedMenu::m_NextPresetText
string m_NextPresetText
Definition
controlsxboxnew.c:31
UIScriptedMenu::FindChildByID
Widget FindChildByID(Widget wid, int user_id)
Finds immediate child widget with a corresponding userID.
Definition
controlsxboxnew.c:411
UIScriptedMenu::AREA_RIGHT
const int AREA_RIGHT
Definition
controlsxboxnew.c:51
UIScriptedMenu::Init
override Widget Init()
Definition
controlsxboxnew.c:178
UIScriptedMenu::UpdateControlsElements
void UpdateControlsElements()
Definition
controlsxboxnew.c:535
UIScriptedMenu::OnFocusLost
override bool OnFocusLost(Widget w, int x, int y)
Definition
controlsxboxnew.c:270
UIScriptedMenu::IsFocusable
bool IsFocusable(Widget w)
Definition
cameratoolsmenu.c:960
UIScriptedMenu::OnMouseEnter
override bool OnMouseEnter(Widget w, int x, int y)
Definition
controlsxboxnew.c:240
UIScriptedMenu::PerformSwitchPreset
void PerformSwitchPreset()
Definition
controlsxboxnew.c:356
UIScriptedMenu::m_TabberWidget
Widget m_TabberWidget
Definition
controlsxboxnew.c:41
UIScriptedMenu::ColorHighlight
void ColorHighlight(Widget w)
Definition
controlsxboxnew.c:454
UIScriptedMenu::m_CurrentTabIdx
int m_CurrentTabIdx
Definition
controlsxboxnew.c:32
UIScriptedMenu::OnFocus
override bool OnFocus(Widget w, int x, int y)
Definition
controlsxboxnew.c:260
UIScriptedMenu::Back
void Back()
Definition
controlsxboxnew.c:96
UIScriptedMenu::UpdateToolbarText
void UpdateToolbarText()
Definition
controlsxboxnew.c:385
UIScriptedMenu::OnClick
override bool OnClick(Widget w, int x, int y, int button)
Definition
controlsxboxnew.c:227
UIScriptedMenu::PLATFORM_ADJUST_X1
const int PLATFORM_ADJUST_X1
Definition
controlsxboxnew.c:52
UIScriptedMenu::AREA_LEFT
const int AREA_LEFT
Definition
controlsxboxnew.c:50
UIScriptedMenu::m_CategoryStructure
ref map< int, Widget > m_CategoryStructure
Definition
controlsxboxnew.c:47
Widget
Definition
enwidgets.c:190
array
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
Definition
isboxcollidinggeometryproxyclasses.c:28
map
Definition
cachedequipmentstorage.c:4
TButtonPairingInfo
enum map TButtonPairingInfo
BUTTON_A
@ BUTTON_A
Definition
controlsxboxnew.c:8
BUTTON_PAD_LEFT
@ BUTTON_PAD_LEFT
Definition
controlsxboxnew.c:14
BUTTON_TRIGGER_RIGHT
@ BUTTON_TRIGGER_RIGHT
Definition
controlsxboxnew.c:21
BUTTON_SHOULDER_RIGHT
@ BUTTON_SHOULDER_RIGHT
Definition
controlsxboxnew.c:17
BUTTON_X
@ BUTTON_X
Definition
controlsxboxnew.c:10
BUTTON_PAD_UP
@ BUTTON_PAD_UP
Definition
controlsxboxnew.c:12
BUTTON_GROUP_PAD_COMMON
@ BUTTON_GROUP_PAD_COMMON
Definition
controlsxboxnew.c:23
BUTTON_TRIGGER_LEFT
@ BUTTON_TRIGGER_LEFT
Definition
controlsxboxnew.c:20
BUTTON_B
@ BUTTON_B
Definition
controlsxboxnew.c:9
BUTTON_PAD_RIGHT
@ BUTTON_PAD_RIGHT
Definition
controlsxboxnew.c:15
BUTTON_PAD_DOWN
@ BUTTON_PAD_DOWN
Definition
controlsxboxnew.c:13
BUTTON_SHOULDER_LEFT
@ BUTTON_SHOULDER_LEFT
Definition
controlsxboxnew.c:16
BUTTON_THUMB_LEFT
@ BUTTON_THUMB_LEFT
Definition
controlsxboxnew.c:18
BUTTON_MENU
@ BUTTON_MENU
Definition
controlsxboxnew.c:6
BUTTON_VIEW
@ BUTTON_VIEW
Definition
controlsxboxnew.c:7
BUTTON_THUMB_RIGHT
@ BUTTON_THUMB_RIGHT
Definition
controlsxboxnew.c:19
BUTTON_GROUP_RIGHT_SIDE_COMMON
@ BUTTON_GROUP_RIGHT_SIDE_COMMON
Definition
controlsxboxnew.c:22
BUTTON_Y
@ BUTTON_Y
Definition
controlsxboxnew.c:11
g_Game
DayZGame g_Game
Definition
dayzgame.c:3942
Print
proto void Print(void var)
Prints content of variable to console/log.
Class::CastTo
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.
INVALID
@ INVALID
Invalid file.
Definition
ensystem.c:510
MouseState
MouseState
Definition
ensystem.c:311
SetFocus
proto native void SetFocus(Widget w)
IsVisible
proto native bool IsVisible()
x
Icon x
y
Icon y
EInputDeviceType
EInputDeviceType
Definition
input.c:3
ARGB
int ARGB(int a, int r, int g, int b)
Definition
proto.c:322
GetUApi
proto native UAInputAPI GetUApi()
Games
Dayz
scripts
5_mission
gui
controlsxboxnew.c
Generated by
1.17.0