Xonotic
dialog_hudpanel_pressedkeys.qc File Reference
#include "dialog_hudpanel_pressedkeys.qh"
#include "textslider.qh"
#include "slider.qh"
#include "textlabel.qh"
+ Include dependency graph for dialog_hudpanel_pressedkeys.qc:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void XonoticHUDPressedKeysDialog_fill (entity me)
 

Function Documentation

◆ XonoticHUDPressedKeysDialog_fill()

void XonoticHUDPressedKeysDialog_fill ( entity  me)

Definition at line 7 of file dialog_hudpanel_pressedkeys.qc.

References entity(), and makeXonoticTextSlider().

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
+ Here is the call graph for this function: