Xonotic
dialog_hudpanel_pressedkeys.qc
Go to the documentation of this file.
1
#include "
dialog_hudpanel_pressedkeys.qh
"
2
3
#include "
textslider.qh
"
4
#include "
slider.qh
"
5
#include "
textlabel.qh
"
6
7
void
XonoticHUDPressedKeysDialog_fill
(
entity
me)
8
{
9
entity
e;
10
string
panelname =
"pressedkeys"
;
11
12
me.TR(me);
13
me.TD(me, 1, 4, e =
makeXonoticTextSlider
(
"hud_panel_pressedkeys"
));
14
e.addValue(e, (_(
"Disable"
)),
"0"
);
15
e.addValue(e, (_(
"Enable spectating"
)),
"1"
);
16
e.addValue(e, (_(
"Always enable"
)),
"2"
);
17
e.configureXonoticTextSliderValues(e);
18
19
dialog_hudpanel_main_settings
(me, panelname);
20
21
me.TR(me);
22
me.TDempty(me, 0.2);
23
me.TD(me, 1, 1.2, e =
makeXonoticTextLabel
(0, _(
"Forced aspect:"
)));
24
me.TD(me, 1, 2.6, e =
makeXonoticSlider
(0.2, 4, 0.1,
"hud_panel_pressedkeys_aspect"
));
25
}
entity
entity() spawn
dialog_hudpanel_main_settings
void dialog_hudpanel_main_settings(entity me, string panelname)
Definition:
util.qc:773
makeXonoticTextLabel
entity makeXonoticTextLabel(float theAlign, string theText)
Definition:
textlabel.qc:3
makeXonoticSlider
entity makeXonoticSlider(float theValueMin, float theValueMax, float theValueStep, string theCvar)
Definition:
slider.qc:10
slider.qh
textlabel.qh
textslider.qh
makeXonoticTextSlider
entity makeXonoticTextSlider(string theCvar)
Definition:
textslider.qc:10
dialog_hudpanel_pressedkeys.qh
XonoticHUDPressedKeysDialog_fill
void XonoticHUDPressedKeysDialog_fill(entity me)
Definition:
dialog_hudpanel_pressedkeys.qc:7
menu
xonotic
dialog_hudpanel_pressedkeys.qc
Generated on Thu Mar 17 2022 17:26:29 for Xonotic by
1.8.13