Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
dialog_settings_bindings_reset.qc
Go to the documentation of this file.
1
#include "
dialog_settings_bindings_reset.qh
"
2
3
#include "
textlabel.qh
"
4
#include "
button.qh
"
5
#include "
keybinder.qh
"
6
7
void
XonoticBindingsResetDialog_fill
(
entity
me)
8
{
9
entity
e;
10
me.TR(me);
11
me.TD(me, 1, 2,
makeXonoticTextLabel
(0.5, _(
"Are you sure you want to reset all key bindings?"
)));
12
me.TR(me);
13
me.TR(me);
14
me.TD(me, 1, 1, e =
makeXonoticButton
(_(
"Yes"
),
'1 0 0'
));
15
e.onClick =
KeyBinder_Bind_Reset_All
;
16
e.onClickEntity = me;
17
me.TD(me, 1, 1, e =
makeXonoticButton
(_(
"No"
),
'0 1 0'
));
18
e.onClick =
Dialog_Close
;
19
e.onClickEntity = me;
20
}
entity
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
XonoticBindingsResetDialog_fill
void XonoticBindingsResetDialog_fill(entity me)
Definition
dialog_settings_bindings_reset.qc:7
dialog_settings_bindings_reset.qh
KeyBinder_Bind_Reset_All
void KeyBinder_Bind_Reset_All(entity btn, entity me)
Definition
keybinder.qc:413
keybinder.qh
Dialog_Close
void Dialog_Close(entity button, entity me)
Definition
dialog.qc:7
makeXonoticButton
entity makeXonoticButton(string theText, vector theColor)
Definition
button.qc:10
button.qh
makeXonoticTextLabel
entity makeXonoticTextLabel(float theAlign, string theText)
Definition
textlabel.qc:3
textlabel.qh
menu
xonotic
dialog_settings_bindings_reset.qc
Generated on
for Xonotic QuakeC by
1.14.0