Xonotic
dialog_settings_game_model.qc
Go to the documentation of this file.
2 
3 #include "textlabel.qh"
4 #include "checkbox.qh"
5 #include "textslider.qh"
6 #include "slider.qh"
7 
9 {
10  loadAllCvars(me);
11 }
13 {
14  entity me;
16  me.configureDialog(me);
17  return me;
18 }
19 
21 {
22  entity e;
23  //float i;
24 
25  // Note that this is pretty terrible currently due to the lack of options for this tab...
26  // There is really not many other decent places for these options, additionally
27  // later I would like quite a few more options in this tab.
28 
29  me.gotoRC(me, 0, 1); me.setFirstColumn(me, me.currentColumn);
30  me.TD(me, 1, 3, e = makeXonoticHeaderLabel(_("Items")));
31  me.TR(me);
32  me.TD(me, 1, 3, e = makeXonoticCheckBox(0, "cl_simple_items", _("Use simple 2D images instead of item models")));
33  me.TR(me);
34  me.TD(me, 1, 1, e = makeXonoticTextLabel(0, _("Unavailable alpha:")));
35  me.TD(me, 1, 2, e = makeXonoticSlider(0, 1, 0.1, "cl_ghost_items"));
36  me.TR(me);
37  me.TD(me, 1, 1, e = makeXonoticTextLabel(0, _("Unavailable color:")));
38  me.TD(me, 1, 2, e = makeXonoticTextSlider("cl_ghost_items_color"));
39  e.addValue(e, ZCTX(_("GHOITEMS^Black")), "-1 -1 -1");
40  e.addValue(e, ZCTX(_("GHOITEMS^Dark")), "0.1 0.1 0.1");
41  e.addValue(e, ZCTX(_("GHOITEMS^Tinted")), "0.6 0.6 0.6");
42  e.addValue(e, ZCTX(_("GHOITEMS^Normal")), "1 1 1");
43  e.addValue(e, ZCTX(_("GHOITEMS^Blue")), "-1 -1 3");
44  e.configureXonoticTextSliderValues(e);
45  setDependent(e, "cl_ghost_items", 0.001, 1);
46 
47  me.TR(me);
48  me.TR(me);
49  me.TD(me, 1, 3, e = makeXonoticHeaderLabel(_("Players")));
50  me.TR(me);
51  me.TD(me, 1, 3, e = makeXonoticCheckBox(0, "cl_forceplayermodels", _("Force player models to mine")));
52  me.TR(me);
53  me.TD(me, 1, 1, e = makeXonoticTextLabel(0, _("Force player colors to mine")));
54  me.TD(me, 1, 2, e = makeXonoticTextSlider_T("cl_forceplayercolors",
55  _("Warning: if enabled in team games your team's color may be the same as the enemy team")));
56  e.addValue(e, _("Never"), "0");
57  e.addValue(e, _("Except in team games"), "1");
58  e.addValue(e, _("Only in Duel"), "3");
59  e.addValue(e, _("Only in team games"), "4");
60  e.addValue(e, _("In team games and Duel"), "5");
61  e.addValue(e, _("Always"), "2");
62  e.configureXonoticTextSliderValues(e);
63  me.TR(me);
64  me.TD(me, 1, 1, e = makeXonoticTextLabel(0, _("Body fading:")));
65  me.TD(me, 1, 2, e = makeXonoticSlider(0, 2, 0.2, "cl_deathglow"));
66  me.TR(me);
67  me.TD(me, 1, 1, e = makeXonoticTextLabel(0, _("Gibs:")));
68  me.TD(me, 1, 2, e = makeXonoticTextSlider("cl_nogibs"));
69  e.addValue(e, ZCTX(_("GIBS^None")), "1");
70  e.addValue(e, ZCTX(_("GIBS^Few")), "0.75");
71  e.addValue(e, ZCTX(_("GIBS^Many")), "0.5");
72  e.addValue(e, ZCTX(_("GIBS^Lots")), "0");
73  e.configureXonoticTextSliderValues(e);
74  setDependent(e, "cl_gentle", 0, 0);
75 }
void XonoticGameModelSettingsTab_showNotify(entity me)
#define NEW(cname,...)
Definition: oo.qh:105
entity makeXonoticHeaderLabel(string theText)
Definition: textlabel.qc:10
entity() spawn
entity makeXonoticTextLabel(float theAlign, string theText)
Definition: textlabel.qc:3
entity makeXonoticTextSlider_T(string theCvar, string theTooltip)
Definition: textslider.qc:3
entity makeXonoticSlider(float theValueMin, float theValueMax, float theValueStep, string theCvar)
Definition: slider.qc:10
#define ZCTX(s)
Definition: i18n.qh:68
entity makeXonoticGameModelSettingsTab()
entity makeXonoticTextSlider(string theCvar)
Definition: textslider.qc:10
entity makeXonoticCheckBox(float isInverted, string theCvar, string theText)
Definition: checkbox.qc:28
void XonoticGameModelSettingsTab_fill(entity me)