Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
dialog_hudpanel_pressedkeys.qc
Go to the documentation of this file.
1
#include "
dialog_hudpanel_pressedkeys.qh
"
2
3
#include "
checkbox.qh
"
4
#include "
mixedslider.qh
"
5
#include "
slider.qh
"
6
#include "
textlabel.qh
"
7
8
void
XonoticHUDPressedKeysDialog_fill
(
entity
me)
9
{
10
entity
e;
11
string
panelname =
"pressedkeys"
;
12
13
me.TR(me);
14
me.TD(me, 1, 4, e =
makeXonoticMixedSlider
(
"hud_panel_pressedkeys"
));
15
e.addText(e, (_(
"Disable"
)), 0);
16
e.addText(e, (_(
"Enable spectating"
)), 1);
17
e.addText(e, (_(
"Always enable"
)), 2);
18
e.configureXonoticMixedSliderValues(e);
19
20
dialog_hudpanel_main_settings
(me, panelname);
21
22
me.TR(me);
23
me.TD(me, 1, 1.4, e =
makeXonoticTextLabel
(0, _(
"Forced aspect:"
)));
24
me.TD(me, 1, 2.6, e =
makeXonoticSlider
(0.2, 4, 0.1,
"hud_panel_pressedkeys_aspect"
));
25
26
me.TR(me);
27
me.TD(me, 1, 4, e =
makeXonoticCheckBox
(0,
"hud_panel_pressedkeys_attack"
, _(
"Show attack keys"
)));
28
}
entity
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
XonoticHUDPressedKeysDialog_fill
void XonoticHUDPressedKeysDialog_fill(entity me)
Definition
dialog_hudpanel_pressedkeys.qc:8
dialog_hudpanel_pressedkeys.qh
dialog_hudpanel_main_settings
void dialog_hudpanel_main_settings(entity me, string panelname)
Definition
util.qc:731
makeXonoticTextLabel
entity makeXonoticTextLabel(float theAlign, string theText)
Definition
textlabel.qc:3
textlabel.qh
makeXonoticCheckBox
entity makeXonoticCheckBox(float isInverted, string theCvar, string theText)
Definition
checkbox.qc:28
checkbox.qh
makeXonoticMixedSlider
entity makeXonoticMixedSlider(string theCvar)
Definition
mixedslider.qc:10
mixedslider.qh
makeXonoticSlider
entity makeXonoticSlider(float theValueMin, float theValueMax, float theValueStep, string theCvar)
Definition
slider.qc:10
slider.qh
menu
xonotic
dialog_hudpanel_pressedkeys.qc
Generated on
for Xonotic QuakeC by
1.14.0