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.
2
3#include "checkbox.qh"
4#include "mixedslider.qh"
5#include "slider.qh"
6#include "textlabel.qh"
7
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}
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
void XonoticHUDPressedKeysDialog_fill(entity me)
void dialog_hudpanel_main_settings(entity me, string panelname)
Definition util.qc:731
entity makeXonoticTextLabel(float theAlign, string theText)
Definition textlabel.qc:3
entity makeXonoticCheckBox(float isInverted, string theCvar, string theText)
Definition checkbox.qc:28
entity makeXonoticMixedSlider(string theCvar)
entity makeXonoticSlider(float theValueMin, float theValueMax, float theValueStep, string theCvar)
Definition slider.qc:10