Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
dialog_hudpanel_pressedkeys.qc File Reference
#include "dialog_hudpanel_pressedkeys.qh"
#include "checkbox.qh"
#include "mixedslider.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 8 of file dialog_hudpanel_pressedkeys.qc.

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 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

References dialog_hudpanel_main_settings(), entity(), makeXonoticCheckBox(), makeXonoticMixedSlider(), makeXonoticSlider(), and makeXonoticTextLabel().