Xonotic
dialog_hudpanel_pressedkeys.qc
Go to the documentation of this file.
2 
3 #include "textslider.qh"
4 #include "slider.qh"
5 #include "textlabel.qh"
6 
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() spawn
entity makeXonoticTextLabel(float theAlign, string theText)
Definition: textlabel.qc:3
entity makeXonoticSlider(float theValueMin, float theValueMax, float theValueStep, string theCvar)
Definition: slider.qc:10
entity makeXonoticTextSlider(string theCvar)
Definition: textslider.qc:10
void XonoticHUDPressedKeysDialog_fill(entity me)