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

Go to the source code of this file.

Functions

void XonoticHUDPowerupsDialog_fill (entity me)
 

Function Documentation

◆ XonoticHUDPowerupsDialog_fill()

void XonoticHUDPowerupsDialog_fill ( entity  me)

Definition at line 7 of file dialog_hudpanel_powerups.qc.

References dialog_hudpanel_main_checkbox(), dialog_hudpanel_main_settings(), entity(), and makeXonoticCheckBox().

8 {
9  entity e;
10  string panelname = "powerups";
11 
12  dialog_hudpanel_main_checkbox(me, panelname);
13 
14  dialog_hudpanel_main_settings(me, panelname);
15 
16  me.TR(me);
17  me.TD(me, 1, 4, e = makeXonoticCheckBox(0, "hud_panel_powerups_progressbar", _("Enable status bar")));
18  me.TR(me);
19  me.TD(me, 1, 4, e = makeXonoticTextLabel(0, _("Status bar alignment:")));
20  setDependent(e, "hud_panel_powerups_progressbar", 1, 1);
21  me.TR(me);
22  me.TDempty(me, 0.2);
23  me.TD(me, 1, 0.95, e = makeXonoticRadioButton(2, "hud_panel_powerups_baralign", "0", _("Left")));
24  setDependent(e, "hud_panel_powerups_progressbar", 1, 1);
25  me.TD(me, 1, 0.95, e = makeXonoticRadioButton(2, "hud_panel_powerups_baralign", "1", _("Right")));
26  setDependent(e, "hud_panel_powerups_progressbar", 1, 1);
27  me.TD(me, 1, 0.95, e = makeXonoticRadioButton(2, "hud_panel_powerups_baralign", "2", _("Inward")));
28  setDependent(e, "hud_panel_powerups_progressbar", 1, 1);
29  me.TD(me, 1, 0.95, e = makeXonoticRadioButton(2, "hud_panel_powerups_baralign", "3", _("Outward")));
30  setDependent(e, "hud_panel_powerups_progressbar", 1, 1);
31  me.TR(me);
32  me.TD(me, 1, 4, e = makeXonoticTextLabel(0, _("Icon alignment:")));
33  me.TR(me);
34  me.TDempty(me, 0.2);
35  me.TD(me, 1, 0.95, e = makeXonoticRadioButton(3, "hud_panel_powerups_iconalign", "0", _("Left")));
36  me.TD(me, 1, 0.95, e = makeXonoticRadioButton(3, "hud_panel_powerups_iconalign", "1", _("Right")));
37  me.TD(me, 1, 0.95, e = makeXonoticRadioButton(3, "hud_panel_powerups_iconalign", "2", _("Inward")));
38  me.TD(me, 1, 0.95, e = makeXonoticRadioButton(3, "hud_panel_powerups_iconalign", "3", _("Outward")));
39 }
entity makeXonoticRadioButton(float theGroup, string theCvar, string theValue, string theText)
Definition: radiobutton.qc:10
entity() spawn
entity makeXonoticTextLabel(float theAlign, string theText)
Definition: textlabel.qc:3
entity makeXonoticCheckBox(float isInverted, string theCvar, string theText)
Definition: checkbox.qc:28
+ Here is the call graph for this function: