Dayz
Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Toggle main menu visibility
Loading...
Searching...
No Matches
keybindingsmenu.c
Go to the documentation of this file.
1
class
KeybindingsMenu
extends
UIScriptedMenu
2
{
3
protected
TabberUI
m_Tabber
;
4
protected
ref DropdownPrefab
m_KBDropdown
;
//DEPRECATED
5
protected
ref OptionSelectorMultistate
m_PresetSelector
;
6
protected
ref KeybindingsContainer
m_GroupsContainer
;
7
protected
ref
array<ref KeybindingsGroup>
m_Tabs
;
//DEPRECATED
8
9
protected
TextWidget
m_Version
;
10
protected
ButtonWidget
m_Apply
;
11
protected
ButtonWidget
m_Back
;
12
protected
ButtonWidget
m_Undo
;
13
protected
ButtonWidget
m_Defaults
;
14
protected
ButtonWidget
m_HardReset
;
15
16
protected
int
m_CurrentSettingKeyIndex
= -1;
17
protected
int
m_CurrentSettingAlternateKeyIndex
= -1;
18
protected
int
m_OriginalPresetIndex
;
19
protected
int
m_TargetPresetIndex
;
20
protected
ref
array<int>
m_SetKeybinds
;
21
22
const
int
MODAL_ID_BACK
= 1337;
23
const
int
MODAL_ID_DEFAULT
= 100;
24
const
int
MODAL_ID_DEFAULT_ALL
= 101;
25
const
int
MODAL_ID_PRESET_CHANGE
= 200;
26
const
int
MODAL_RESULT_DEFAULT_CURRENT
= 0;
27
const
int
MODAL_RESULT_DEFAULT_ALL
= 1;
28
29
override
Widget
Init
()
30
{
31
Input
input =
g_Game
.GetInput();
32
#ifdef PLATFORM_MSSTORE
33
layoutRoot =
g_Game
.GetWorkspace().CreateWidgets(
"gui/layouts/new_ui/options/msstore/keybinding_menu.layout"
, null);
34
#else
35
layoutRoot =
g_Game
.GetWorkspace().CreateWidgets(
"gui/layouts/new_ui/options/pc/keybinding_menu.layout"
, null);
36
#endif
37
38
m_Version
=
TextWidget
.Cast(layoutRoot.FindAnyWidget(
"version"
));
39
m_Apply
= ButtonWidget.Cast(layoutRoot.FindAnyWidget(
"apply"
));
40
m_Back
= ButtonWidget.Cast(layoutRoot.FindAnyWidget(
"back"
));
41
m_Undo
= ButtonWidget.Cast(layoutRoot.FindAnyWidget(
"undo"
));
42
m_Defaults
= ButtonWidget.Cast(layoutRoot.FindAnyWidget(
"reset"
));
43
m_HardReset
= ButtonWidget.Cast(layoutRoot.FindAnyWidget(
"reset_all"
));
44
45
layoutRoot.FindAnyWidget(
"Tabber"
).GetScript(
m_Tabber
);
46
47
string
version;
48
g_Game
.GetVersion(version);
49
#ifdef PLATFORM_CONSOLE
50
version =
"#main_menu_version"
+
" "
+ version +
" ("
+
g_Game
.GetDatabaseID() +
")"
;
51
#else
52
version =
"#main_menu_version"
+
" "
+ version;
53
#endif
54
m_Version
.SetText(version);
55
56
#ifdef PLATFORM_PS4
57
string
back =
"circle"
;
58
if
(
g_Game
.GetInput().GetEnterButton() !=
GamepadButton
.A)
59
back =
"cross"
;
60
61
ImageWidget toolbar_b = ImageWidget.Cast(layoutRoot.FindAnyWidget(
"BackIcon"
));
62
toolbar_b.LoadImageFile(0,
"set:playstation_buttons image:"
+ back);
63
#endif
64
65
InitInputSortingMap
();
66
CreateTabs
();
67
CreateGroupContainer
();
68
69
InitPresets
(-1, layoutRoot.FindAnyWidget(
"group_header"
), input);
70
m_Tabber
.m_OnTabSwitch.Insert(
UpdateTabContent
);
71
m_Tabber
.SelectTabControl(0);
72
m_Tabber
.SelectTabPanel(0);
73
g_Game
.SetKeyboardHandle(
this
);
74
m_Tabber
.RefreshTab(
true
);
75
76
ColorDisabled
(
m_Apply
);
77
m_Apply
.SetFlags(
WidgetFlags
.IGNOREPOINTER);
78
ColorDisabled
(
m_Undo
);
79
m_Undo
.SetFlags(
WidgetFlags
.IGNOREPOINTER);
80
ColorWhite
(
m_Defaults
, null);
81
m_Defaults
.ClearFlags(
WidgetFlags
.IGNOREPOINTER);
82
83
return
layoutRoot;
84
}
85
86
void
CreateTabs
()
87
{
88
int
sort_count =
InputUtils
.
GetInputActionSortingMap
().Count();
89
for
(
int
i = 0; i < sort_count; i++)
90
{
91
if
(
InputUtils
.
GetInputActionSortingMap
().GetElement(i) &&
InputUtils
.
GetInputActionSortingMap
().GetElement(i).Count() > 0)
92
{
93
string
group_name =
GetUApi
().
SortingLocalization
(
InputUtils
.
GetInputActionSortingMap
().GetKey(i));
94
group_name =
Widget
.TranslateString(
"#"
+ group_name);
//oof
95
m_Tabber
.AddTab(group_name);
96
}
97
}
98
99
if
(
InputUtils
.
GetUnsortedInputActions
() &&
InputUtils
.
GetUnsortedInputActions
().Count() > 0)
100
{
101
m_Tabber
.AddTab(
Widget
.TranslateString(
"#layout_pc_keybinding_unsorted"
));
102
}
103
m_Tabber
.DisableTabs(
true
);
104
}
105
106
void
CreateGroupContainer
()
107
{
108
m_GroupsContainer
=
new
KeybindingsContainer(-1,
g_Game
.GetInput(),layoutRoot.FindAnyWidget(
"TabContentsHolder"
),
this
);
109
}
110
111
void
UpdateTabContent
(
int
tab_index)
112
{
113
m_GroupsContainer
.SwitchSubgroup(tab_index);
114
}
115
116
void
ClearKeybind
(
int
key_index)
117
{
118
ColorWhite
(
m_Apply
, null);
119
m_Apply
.ClearFlags(
WidgetFlags
.IGNOREPOINTER);
120
ColorWhite
(
m_Undo
, null);
121
m_Undo
.ClearFlags(
WidgetFlags
.IGNOREPOINTER);
122
}
123
124
void
ClearAlternativeKeybind
(
int
key_index)
125
{
126
ColorWhite
(
m_Apply
, null);
127
m_Apply
.ClearFlags(
WidgetFlags
.IGNOREPOINTER);
128
ColorWhite
(
m_Undo
, null);
129
m_Undo
.ClearFlags(
WidgetFlags
.IGNOREPOINTER);
130
}
131
132
void
StartEnteringKeybind
(
int
key_index)
133
{
134
m_CurrentSettingAlternateKeyIndex
= -1;
135
m_CurrentSettingKeyIndex
= key_index;
136
}
137
138
void
CancelEnteringKeybind
()
139
{
140
m_GroupsContainer
.CancelEnteringKeybind();
141
m_CurrentSettingKeyIndex
= -1;
142
}
143
144
void
StartEnteringAlternateKeybind
(
int
key_index)
145
{
146
m_CurrentSettingKeyIndex
= -1;
147
m_CurrentSettingAlternateKeyIndex
= key_index;
148
}
149
150
void
CancelEnteringAlternateKeybind
()
151
{
152
m_GroupsContainer
.CancelEnteringAlternateKeybind();
153
m_CurrentSettingAlternateKeyIndex
= -1;
154
}
155
156
void
ConfirmKeybindEntry
(
TIntArray
new_keys)
157
{
158
m_CurrentSettingKeyIndex
= -1;
159
ColorWhite
(
m_Apply
, null);
160
m_Apply
.ClearFlags(
WidgetFlags
.IGNOREPOINTER);
161
ColorWhite
(
m_Undo
, null);
162
m_Undo
.ClearFlags(
WidgetFlags
.IGNOREPOINTER);
163
}
164
165
void
ConfirmAlternateKeybindEntry
(
TIntArray
new_keys)
166
{
167
m_CurrentSettingAlternateKeyIndex
= -1;
168
ColorWhite
(
m_Apply
, null);
169
m_Apply
.ClearFlags(
WidgetFlags
.IGNOREPOINTER);
170
ColorWhite
(
m_Undo
, null);
171
m_Undo
.ClearFlags(
WidgetFlags
.IGNOREPOINTER);
172
}
173
174
override
void
Update
(
float
timeslice)
175
{
176
if
(
GetUApi
().GetInputByID(UAUITabLeft).LocalPress())
177
{
178
m_Tabber
.PreviousTab();
179
}
180
181
if
(
GetUApi
().GetInputByID(UAUITabRight).LocalPress())
182
{
183
m_Tabber
.NextTab();
184
}
185
186
if
(
GetUApi
().GetInputByID(UAUIBack).LocalPress())
187
{
188
Back
();
189
}
190
191
if
(
m_GroupsContainer
)
192
{
193
m_GroupsContainer
.Update(timeslice);
194
}
195
}
196
197
override
bool
OnClick
(
Widget
w,
int
x
,
int
y
,
int
button)
198
{
199
#ifndef PLATFORM_MSSTORE
200
if
(button ==
MouseState
.LEFT)
201
#endif
202
{
203
if
(w ==
m_Apply
)
204
{
205
Apply
();
206
return
true
;
207
}
208
else
if
(w ==
m_Back
)
209
{
210
Back
();
211
return
true
;
212
}
213
else
if
(w ==
m_Undo
)
214
{
215
Reset
();
216
return
true
;
217
}
218
else
if
(w ==
m_Defaults
)
219
{
220
SetToDefaults
();
221
return
true
;
222
}
223
else
if
(w ==
m_HardReset
)
224
{
225
HardReset
();
226
return
true
;
227
}
228
}
229
return
false
;
230
}
231
232
void
Apply
()
233
{
234
ColorDisabled
(
m_Apply
);
235
m_Apply
.SetFlags(
WidgetFlags
.IGNOREPOINTER);
236
ColorDisabled
(
m_Undo
);
237
m_Undo
.SetFlags(
WidgetFlags
.IGNOREPOINTER);
238
ColorWhite
(
m_Defaults
, null);
239
m_Defaults
.ClearFlags(
WidgetFlags
.IGNOREPOINTER);
240
241
m_GroupsContainer
.Apply();
242
243
// save input configuration
244
GetUApi
().
Export
();
245
}
246
247
void
Back
()
248
{
249
if
(
m_CurrentSettingKeyIndex
!= -1)
250
{
251
CancelEnteringKeybind
();
252
return
;
253
}
254
255
if
(
m_CurrentSettingAlternateKeyIndex
!= -1)
256
{
257
CancelEnteringAlternateKeybind
();
258
return
;
259
}
260
261
bool
changed =
m_GroupsContainer
.IsChanged();
262
263
if
(changed)
264
{
265
g_Game
.GetUIManager().ShowDialog(
"#main_menu_configure"
,
"#main_menu_configure_desc"
,
MODAL_ID_BACK
, DBT_YESNO, DBB_YES, DMT_QUESTION,
this
);
266
}
267
else
268
{
269
g_Game
.GetUIManager().Back();
270
}
271
}
272
274
void
Reset
()
275
{
276
ColorDisabled
(
m_Apply
);
277
m_Apply
.SetFlags(
WidgetFlags
.IGNOREPOINTER);
278
ColorDisabled
(
m_Undo
);
279
m_Undo
.SetFlags(
WidgetFlags
.IGNOREPOINTER);
280
281
m_GroupsContainer
.Reset();
282
}
283
284
void
SetToDefaults
()
285
{
286
g_Game
.GetUIManager().ShowDialog(
"#menu_default_cap"
,
"#menu_default_desc"
,
MODAL_ID_DEFAULT
, DBT_YESNO, DBB_YES, DMT_QUESTION,
this
);
287
}
288
289
void
HardReset
()
290
{
291
g_Game
.GetUIManager().ShowDialog(
"#menu_default_cap"
,
"#menu_default_all_desc"
,
MODAL_ID_DEFAULT_ALL
, DBT_YESNO, DBB_YES, DMT_QUESTION,
this
);
292
}
293
294
void
PerformSetToDefaultsExt
(
int
mode)
295
{
296
switch
(mode)
297
{
298
case
MODAL_RESULT_DEFAULT_CURRENT
:
299
GetUApi
().
PresetReset
();
300
break
;
301
302
case
MODAL_RESULT_DEFAULT_ALL
:
303
GetUApi
().
Revert
();
304
break
;
305
}
306
307
ColorDisabled
(
m_Apply
);
308
m_Apply
.SetFlags(
WidgetFlags
.IGNOREPOINTER);
309
ColorDisabled
(
m_Undo
);
310
m_Undo
.SetFlags(
WidgetFlags
.IGNOREPOINTER);
311
g_Game
.GetCallQueue(
CALL_CATEGORY_GUI
).Call(
g_Game
.GetMission().RefreshExcludes);
312
m_GroupsContainer
.Reset(
true
);
313
}
314
315
override
bool
OnModalResult
(
Widget
w,
int
x
,
int
y
,
int
code,
int
result)
316
{
317
if
(code ==
MODAL_ID_BACK
)
318
{
319
if
(result == DBB_YES)
320
{
321
Reset
();
322
g_Game
.GetUIManager().Back();
323
}
324
return
true
;
325
}
326
else
if
(code ==
MODAL_ID_DEFAULT
)
327
{
328
if
(result == DBB_YES)
329
{
330
PerformSetToDefaultsExt
(
MODAL_RESULT_DEFAULT_CURRENT
);
331
}
332
return
true
;
333
}
334
else
if
(code ==
MODAL_ID_DEFAULT_ALL
)
335
{
336
if
(result == DBB_YES)
337
{
338
PerformSetToDefaultsExt
(
MODAL_RESULT_DEFAULT_ALL
);
339
}
340
}
341
else
if
(code ==
MODAL_ID_PRESET_CHANGE
)
342
{
343
if
(result == DBB_YES)
344
{
345
Reset
();
346
m_PresetSelector
.PerformSetOption(
m_TargetPresetIndex
);
347
}
348
return
true
;
349
}
350
351
return
false
;
352
}
353
354
override
void
Refresh
()
355
{
356
string
version;
357
g_Game
.GetVersion(version);
358
#ifdef PLATFORM_CONSOLE
359
version =
"#main_menu_version"
+
" "
+ version +
" ("
+
g_Game
.GetDatabaseID() +
")"
;
360
#else
361
version =
"#main_menu_version"
+
" "
+ version;
362
#endif
363
m_Version
.SetText(version);
364
}
365
366
override
bool
OnMouseEnter
(
Widget
w,
int
x
,
int
y
)
367
{
368
if
(w &&
IsFocusable
(w))
369
{
370
ColorRed
(w);
371
return
true
;
372
}
373
return
false
;
374
}
375
376
override
bool
OnMouseLeave
(
Widget
w,
Widget
enterW,
int
x
,
int
y
)
377
{
378
if
(w &&
IsFocusable
(w))
379
{
380
if
((w.GetFlags() &
WidgetFlags
.DISABLED) || (w.GetFlags() &
WidgetFlags
.IGNOREPOINTER))
381
{
382
ColorDisabled
(w);
383
}
384
else
385
{
386
ColorWhite
(w, enterW);
387
}
388
return
true
;
389
}
390
return
false
;
391
}
392
393
override
bool
OnMouseWheel
(
Widget
w,
int
x
,
int
y
,
int
wheel)
394
{
395
return
super.OnMouseWheel(w,
x
,
y
, wheel);
396
}
397
398
override
bool
OnFocus
(
Widget
w,
int
x
,
int
y
)
399
{
400
if
(w &&
IsFocusable
(w))
401
{
402
ColorRed
(w);
403
return
true
;
404
}
405
return
false
;
406
}
407
408
override
bool
OnFocusLost
(
Widget
w,
int
x
,
int
y
)
409
{
410
if
(w &&
IsFocusable
(w))
411
{
412
if
((w.GetFlags() &
WidgetFlags
.DISABLED) || (w.GetFlags() &
WidgetFlags
.IGNOREPOINTER))
413
{
414
ColorDisabled
(w);
415
}
416
else
417
{
418
ColorWhite
(w, null);
419
}
420
return
true
;
421
}
422
return
false
;
423
}
424
425
bool
IsFocusable
(
Widget
w)
426
{
427
if
(w)
428
{
429
return
(w ==
m_Apply
|| w ==
m_Back
|| w ==
m_Undo
|| w ==
m_Defaults
|| w ==
m_HardReset
);
430
}
431
return
false
;
432
}
433
434
//Coloring functions (Until WidgetStyles are useful)
435
void
ColorRed
(
Widget
w)
436
{
437
SetFocus
(w);
438
439
ButtonWidget button = ButtonWidget.Cast(w);
440
if
(button && button !=
m_Apply
)
441
{
442
button.SetTextColor(
ARGB
(255, 200, 0, 0));
443
}
444
}
445
446
void
ColorWhite
(
Widget
w,
Widget
enterW)
447
{
448
#ifdef PLATFORM_WINDOWS
449
SetFocus
(null);
450
#endif
451
452
ButtonWidget button = ButtonWidget.Cast(w);
453
if
(button)
454
{
455
if
(button.GetFlags() &
WidgetFlags
.DISABLED)
456
{
457
button.SetTextColor(
ColorManager
.
COLOR_DISABLED_TEXT
);
458
}
459
else
460
{
461
button.SetTextColor(
ColorManager
.
COLOR_NORMAL_TEXT
);
462
}
463
}
464
}
465
466
void
ColorDisabled
(
Widget
w)
467
{
468
#ifdef PLATFORM_WINDOWS
469
SetFocus
(null);
470
#endif
471
472
ButtonWidget button = ButtonWidget.Cast(w);
473
if
(button)
474
{
475
button.SetTextColor(
ColorManager
.
COLOR_DISABLED_TEXT
);
476
}
477
}
478
479
protected
void
InitInputSortingMap
()
480
{
481
InputUtils
.
InitInputMetadata
();
482
}
483
484
void
InitPresets
(
int
index,
Widget
parent,
Input
input)
485
{
486
Widget
kb_root = parent.FindAnyWidget(
"keyboard_dropown"
);
487
if
(kb_root)
488
{
489
kb_root.Show(
false
);
490
}
491
492
array<string>
opt1 =
new
array<string>
;
493
string
profile_text;
494
495
for
(
int
i = 0; i < input.
GetProfilesCount
(); i++)
496
{
497
input.
GetProfileName
(i, profile_text);
498
opt1.Insert(profile_text);
499
}
500
501
int
current_idx = input.
GetCurrentProfile
();
502
m_OriginalPresetIndex
= current_idx;
503
m_PresetSelector
=
new
OptionSelectorMultistate(layoutRoot.FindAnyWidget(
"profile_setting_option"
), current_idx, null,
false
, opt1);
504
m_PresetSelector
.m_AttemptOptionChange.Insert(
OnAttemptSelectPreset
);
505
m_PresetSelector
.m_OptionChanged.Insert(
OnSelectKBPreset
);
506
}
507
508
void
OnAttemptSelectPreset
(
int
index)
509
{
510
bool
changed =
m_GroupsContainer
.IsChanged() &&
m_OriginalPresetIndex
!= index;
511
m_TargetPresetIndex
= index;
512
513
if
(changed)
514
{
515
g_Game
.GetUIManager().ShowDialog(
"#main_menu_configure"
,
"#main_menu_configure_desc"
,
MODAL_ID_PRESET_CHANGE
, DBT_YESNO, DBB_YES, DMT_QUESTION,
this
);
516
}
517
518
m_PresetSelector
.SetCanSwitch(!changed);
519
}
520
521
void
OnSelectKBPreset
(
int
index)
522
{
523
m_OriginalPresetIndex
= index;
524
m_GroupsContainer
.OnSelectKBPreset(index);
525
string
profile_text;
526
g_Game
.GetInput().GetProfileName(index, profile_text);
527
528
g_Game
.GetMission().GetOnInputPresetChanged().Invoke();
529
}
530
532
// OBSOLETE METHODS //
534
KeybindingsContainer
GetCurrentTab
()
535
{
536
return
m_GroupsContainer
;
537
}
538
539
void
AddGroup
(
int
index,
Input
input)
540
{
541
}
542
544
void
PerformSetToDefaults
()
545
{
546
PerformSetToDefaultsExt
(
MODAL_RESULT_DEFAULT_ALL
);
547
}
548
549
void
DeferredDefaultsInit
()
550
{
551
}
552
}
ColorManager
Definition
colormanager.c:2
ColorManager::COLOR_DISABLED_TEXT
static int COLOR_DISABLED_TEXT
Definition
colormanager.c:11
ColorManager::COLOR_NORMAL_TEXT
static int COLOR_NORMAL_TEXT
Definition
colormanager.c:5
Input
Definition
input.c:11
Input::GetCurrentProfile
proto native int GetCurrentProfile()
gets currently selected profile
Input::GetProfileName
proto int GetProfileName(int profile_index, out string name)
gets profile by index
Input::GetProfilesCount
proto native int GetProfilesCount()
gets profile by name
InputUtils
Definition
inpututils.c:2
InputUtils::InitInputMetadata
static bool InitInputMetadata()
Definition
inpututils.c:239
InputUtils::GetUnsortedInputActions
static array< int > GetUnsortedInputActions()
Definition
inpututils.c:234
InputUtils::GetInputActionSortingMap
static map< int, ref array< int > > GetInputActionSortingMap()
Definition
inpututils.c:229
TextWidget
Definition
enwidgets.c:220
UAInputAPI::SortingLocalization
proto native owned string SortingLocalization(int index)
UAInputAPI::Export
proto native void Export()
UAInputAPI::PresetReset
proto native void PresetReset()
Resets current 'main' preset without reverting anything else ('softer' Revert).
UAInputAPI::Revert
proto native void Revert()
UIScriptedMenu
Xbox menu.
Definition
dayzgame.c:64
UIScriptedMenu::StartEnteringAlternateKeybind
void StartEnteringAlternateKeybind(int key_index)
Definition
keybindingsmenu.c:144
UIScriptedMenu::ColorRed
void ColorRed(Widget w)
Definition
cameratoolsmenu.c:1010
UIScriptedMenu::SetToDefaults
void SetToDefaults()
Definition
keybindingsmenu.c:284
UIScriptedMenu::ColorDisabled
void ColorDisabled(Widget w)
Definition
keybindingsmenu.c:466
UIScriptedMenu::MODAL_ID_PRESET_CHANGE
const int MODAL_ID_PRESET_CHANGE
Definition
keybindingsmenu.c:25
UIScriptedMenu::Update
override void Update(float timeslice)
Definition
keybindingsmenu.c:174
UIScriptedMenu::MODAL_RESULT_DEFAULT_CURRENT
const int MODAL_RESULT_DEFAULT_CURRENT
Definition
keybindingsmenu.c:26
UIScriptedMenu::CancelEnteringKeybind
void CancelEnteringKeybind()
Definition
keybindingsmenu.c:138
UIScriptedMenu::ClearAlternativeKeybind
void ClearAlternativeKeybind(int key_index)
Definition
keybindingsmenu.c:124
UIScriptedMenu::MODAL_ID_DEFAULT_ALL
const int MODAL_ID_DEFAULT_ALL
Definition
keybindingsmenu.c:24
UIScriptedMenu::m_KBDropdown
ref DropdownPrefab m_KBDropdown
Definition
keybindingsmenu.c:4
UIScriptedMenu::Refresh
override void Refresh()
Definition
keybindingsmenu.c:354
UIScriptedMenu::Reset
void Reset()
Undoes the unsaved changes and reverts to previous state. Does not reset to defaults!
Definition
keybindingsmenu.c:274
UIScriptedMenu::m_CurrentSettingAlternateKeyIndex
int m_CurrentSettingAlternateKeyIndex
Definition
keybindingsmenu.c:17
UIScriptedMenu::OnMouseLeave
override bool OnMouseLeave(Widget w, Widget enterW, int x, int y)
Definition
keybindingsmenu.c:376
UIScriptedMenu::CancelEnteringAlternateKeybind
void CancelEnteringAlternateKeybind()
Definition
keybindingsmenu.c:150
UIScriptedMenu::m_PresetSelector
ref OptionSelectorMultistate m_PresetSelector
Definition
keybindingsmenu.c:5
UIScriptedMenu::GetCurrentTab
KeybindingsContainer GetCurrentTab()
Definition
keybindingsmenu.c:534
UIScriptedMenu::m_OriginalPresetIndex
int m_OriginalPresetIndex
Definition
keybindingsmenu.c:18
UIScriptedMenu::m_Undo
ButtonWidget m_Undo
Definition
keybindingsmenu.c:12
UIScriptedMenu::ConfirmKeybindEntry
void ConfirmKeybindEntry(TIntArray new_keys)
Definition
keybindingsmenu.c:156
UIScriptedMenu::MODAL_ID_DEFAULT
const int MODAL_ID_DEFAULT
Definition
keybindingsmenu.c:23
UIScriptedMenu::m_TargetPresetIndex
int m_TargetPresetIndex
Definition
keybindingsmenu.c:19
UIScriptedMenu::MODAL_ID_BACK
const int MODAL_ID_BACK
Definition
keybindingsmenu.c:22
UIScriptedMenu::CreateTabs
void CreateTabs()
Definition
keybindingsmenu.c:86
UIScriptedMenu::MODAL_RESULT_DEFAULT_ALL
const int MODAL_RESULT_DEFAULT_ALL
Definition
keybindingsmenu.c:27
UIScriptedMenu::m_SetKeybinds
ref array< int > m_SetKeybinds
Definition
keybindingsmenu.c:20
UIScriptedMenu::PerformSetToDefaults
void PerformSetToDefaults()
deprecated, resets all (as before ~1.20)
Definition
keybindingsmenu.c:544
UIScriptedMenu::m_Version
TextWidget m_Version
Definition
ingamemenuxbox.c:36
UIScriptedMenu::Apply
void Apply()
renames character
Definition
charactercreationmenu.c:191
UIScriptedMenu::m_Back
ButtonWidget m_Back
Definition
controlsxboxnew.c:35
UIScriptedMenu::CreateGroupContainer
void CreateGroupContainer()
Definition
keybindingsmenu.c:106
UIScriptedMenu::UpdateTabContent
void UpdateTabContent(int tab_index)
Definition
controlsxboxnew.c:101
UIScriptedMenu::PerformSetToDefaultsExt
void PerformSetToDefaultsExt(int mode)
Definition
keybindingsmenu.c:294
UIScriptedMenu::m_Tabber
TabberUI m_Tabber
Definition
keybindingsmenu.c:3
UIScriptedMenu::m_Tabs
ref array< ref KeybindingsGroup > m_Tabs
Definition
keybindingsmenu.c:7
UIScriptedMenu::AddGroup
void AddGroup(int index, Input input)
Definition
keybindingsmenu.c:539
UIScriptedMenu::m_HardReset
ButtonWidget m_HardReset
Definition
keybindingsmenu.c:14
UIScriptedMenu::ColorWhite
void ColorWhite(Widget w, Widget enterW)
Definition
cameratoolsmenu.c:1021
UIScriptedMenu::m_Defaults
ButtonWidget m_Defaults
Definition
keybindingsmenu.c:13
UIScriptedMenu::StartEnteringKeybind
void StartEnteringKeybind(int key_index)
Definition
keybindingsmenu.c:132
UIScriptedMenu::OnSelectKBPreset
void OnSelectKBPreset(int index)
Definition
keybindingsmenu.c:521
UIScriptedMenu::ConfirmAlternateKeybindEntry
void ConfirmAlternateKeybindEntry(TIntArray new_keys)
Definition
keybindingsmenu.c:165
UIScriptedMenu::Init
override Widget Init()
Definition
keybindingsmenu.c:29
UIScriptedMenu::OnModalResult
override bool OnModalResult(Widget w, int x, int y, int code, int result)
Definition
keybindingsmenu.c:315
UIScriptedMenu::HardReset
void HardReset()
Definition
keybindingsmenu.c:289
UIScriptedMenu::DeferredDefaultsInit
void DeferredDefaultsInit()
deprecated
Definition
keybindingsmenu.c:549
UIScriptedMenu::OnFocusLost
override bool OnFocusLost(Widget w, int x, int y)
Definition
keybindingsmenu.c:408
UIScriptedMenu::IsFocusable
bool IsFocusable(Widget w)
Definition
cameratoolsmenu.c:960
UIScriptedMenu::m_CurrentSettingKeyIndex
int m_CurrentSettingKeyIndex
Definition
keybindingsmenu.c:16
UIScriptedMenu::InitPresets
void InitPresets(int index, Widget parent, Input input)
Definition
keybindingsmenu.c:484
UIScriptedMenu::OnMouseEnter
override bool OnMouseEnter(Widget w, int x, int y)
Definition
keybindingsmenu.c:366
UIScriptedMenu::OnMouseWheel
override bool OnMouseWheel(Widget w, int x, int y, int wheel)
Definition
keybindingsmenu.c:393
UIScriptedMenu::OnFocus
override bool OnFocus(Widget w, int x, int y)
Definition
keybindingsmenu.c:398
UIScriptedMenu::InitInputSortingMap
void InitInputSortingMap()
Definition
keybindingsmenu.c:479
UIScriptedMenu::Back
void Back()
Definition
controlsxboxnew.c:96
UIScriptedMenu::OnClick
override bool OnClick(Widget w, int x, int y, int button)
Definition
keybindingsmenu.c:197
UIScriptedMenu::m_Apply
Widget m_Apply
Definition
charactercreationmenu.c:14
UIScriptedMenu::OnAttemptSelectPreset
void OnAttemptSelectPreset(int index)
Definition
keybindingsmenu.c:508
UIScriptedMenu::m_GroupsContainer
ref KeybindingsContainer m_GroupsContainer
Definition
keybindingsmenu.c:6
UIScriptedMenu::ClearKeybind
void ClearKeybind(int key_index)
Definition
keybindingsmenu.c:116
Widget
Definition
enwidgets.c:190
array
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
Definition
isboxcollidinggeometryproxyclasses.c:28
g_Game
DayZGame g_Game
Definition
dayzgame.c:3942
TIntArray
array< int > TIntArray
Definition
enscript.c:714
GamepadButton
GamepadButton
Definition
ensystem.c:341
MouseState
MouseState
Definition
ensystem.c:311
CALL_CATEGORY_GUI
const int CALL_CATEGORY_GUI
Definition
tools.c:9
WidgetFlags
WidgetFlags
Definition
enwidgets.c:58
SetFocus
proto native void SetFocus(Widget w)
x
Icon x
y
Icon y
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
newui
keybindings
keybindingsmenu.c
Generated by
1.17.0