Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
dialog_hudpanel_itemstime.qc File Reference
#include "dialog_hudpanel_itemstime.qh"
#include "textlabel.qh"
#include "mixedslider.qh"
#include "radiobutton.qh"
#include "checkbox.qh"
#include "slider.qh"
Include dependency graph for dialog_hudpanel_itemstime.qc:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void XonoticHUDItemsTimeDialog_fill (entity me)

Function Documentation

◆ XonoticHUDItemsTimeDialog_fill()

void XonoticHUDItemsTimeDialog_fill ( entity me)

Definition at line 9 of file dialog_hudpanel_itemstime.qc.

10{
11 entity e;
12 string panelname = "itemstime";
13
14 me.TR(me);
15 me.TD(me, 1, 4, e = makeXonoticMixedSlider("hud_panel_itemstime"));
16 e.setValueSpace(e, e.valueSpace * 1.5);
17 e.addText(e, _("Disable"), 0);
18 e.addText(e, _("Enable spectating"), 1);
19 e.addText(e, _("Enable even playing in warmup"), 2);
20 e.configureXonoticMixedSliderValues(e);
21
22 dialog_hudpanel_main_settings(me, panelname);
23
24 me.TR(me);
25 me.TD(me, 1, 1.4, e = makeXonoticTextLabel(0, _("Text/icon ratio:")));
26 me.TD(me, 1, 2.6, e = makeXonoticSlider(2, 8, 0.5, "hud_panel_itemstime_ratio"));
27 me.TR(me);
28 me.TD(me, 1, 1.4, e = makeXonoticTextLabel(0, _("Icon alignment:")));
29 me.TD(me, 1, 2.6/2, e = makeXonoticRadioButton(2, "hud_panel_itemstime_iconalign", "0", _("Left")));
30 me.TD(me, 1, 2.6/2, e = makeXonoticRadioButton(2, "hud_panel_itemstime_iconalign", "1", _("Right")));
31
32 me.TR(me);
33 me.TD(me, 1, 2, e = makeXonoticCheckBox(0, "hud_panel_itemstime_progressbar", _("Enable status bar")));
34 me.TD(me, 1, 2, e = makeXonoticCheckBox(0, "hud_panel_itemstime_progressbar_reduced", _("Reduced")));
35 setDependent(e, "hud_panel_itemstime_progressbar", 1, 1);
36
37 me.TR(me);
38 me.TD(me, 1, 4, e = makeXonoticCheckBox(0, "hud_panel_itemstime_hidespawned", _("Hide spawned items")));
39 me.TR(me);
40 me.TD(me, 1, 4, e = makeXonoticCheckBox(0, "hud_panel_itemstime_hidebig", _("Hide big armor and health")));
41 me.TR(me);
42 me.TD(me, 1, 4, e = makeXonoticCheckBox(0, "hud_panel_itemstime_dynamicsize", _("Dynamic size")));
43}
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
void dialog_hudpanel_main_settings(entity me, string panelname)
Definition util.qc:731
void setDependent(entity e, string theCvarName, float theCvarMin, float theCvarMax)
Definition util.qc:180
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 makeXonoticRadioButton(float theGroup, string theCvar, string theValue, string theText)
entity makeXonoticSlider(float theValueMin, float theValueMax, float theValueStep, string theCvar)
Definition slider.qc:10

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