Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
dialog_hudpanel_modicons.qc
Go to the documentation of this file.
2
3#include "checkbox.qh"
4#include "textlabel.qh"
5#include <common/mapinfo.qh>
9
11{
12 entity e;
13 string panelname = "modicons";
14
15 dialog_hudpanel_main_checkbox(me, panelname);
16
17 dialog_hudpanel_main_settings(me, panelname);
18
19 string gt_str = CTX(_("GAMETYPE^%s:"));
20 string text = _("Show icons");
21 me.TR(me);
22 me.TD(me, 1, 1.4, e = makeXonoticTextLabel(0, strzone(sprintf(gt_str, MapInfo_Type_ToText(MAPINFO_TYPE_CA)))));
23 me.TD(me, 1, 2.6, e = makeXonoticCheckBox(0, "hud_panel_modicons_ca_layout", text));
24 me.TR(me);
25 me.TD(me, 1, 1.4, e = makeXonoticTextLabel(0, strzone(sprintf(gt_str, MapInfo_Type_ToText(MAPINFO_TYPE_DOMINATION)))));
26 me.TD(me, 1, 2.6, e = makeXonoticCheckBox(0, "hud_panel_modicons_dom_layout", text));
27 me.TR(me);
28 me.TD(me, 1, 1.4, e = makeXonoticTextLabel(0, strzone(sprintf(gt_str, MapInfo_Type_ToText(MAPINFO_TYPE_FREEZETAG)))));
29 me.TD(me, 1, 2.6, e = makeXonoticCheckBox(0, "hud_panel_modicons_freezetag_layout", text));
30}
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
void XonoticHUDModIconsDialog_fill(entity me)
ERASEABLE string CTX(string s)
Definition i18n.qh:46
string MapInfo_Type_ToText(Gametype t)
Definition mapinfo.qc:660
void dialog_hudpanel_main_checkbox(entity me, string panelname)
Definition util.qc:730
void dialog_hudpanel_main_settings(entity me, string panelname)
Definition util.qc:739
string strzone(string s)
entity makeXonoticTextLabel(float theAlign, string theText)
Definition textlabel.qc:3
entity makeXonoticCheckBox(float isInverted, string theCvar, string theText)
Definition checkbox.qc:28