Xonotic
dialog_settings_user.qc
Go to the documentation of this file.
2 
3 #include "commandbutton.qh"
4 #include "textlabel.qh"
5 #include "languagelist.qh"
6 #include "skinlist.qh"
7 #include "checkbox.qh"
8 
10 {
11  entity me;
13  me.configureDialog(me);
14  return me;
15 }
16 
18 {
19  entity e, sk;
20 
21  me.TR(me);
22  me.TDempty(me, 0.25);
23  me.TD(me, 1, 2.5, e = makeXonoticHeaderLabel(_("Menu Skins")));
24  me.TR(me);
25  me.TDempty(me, 0.25);
26  me.TD(me, me.rows - 3.5, 2.5, sk = makeXonoticSkinList());
27  me.gotoRC(me, me.rows - 2.5, 0.25);
28  me.TD(me, 1, 2.5, e = makeXonoticButton(_("Set skin"), '0 0 0'));
29  e.onClick = SetSkin_Click;
30  e.onClickEntity = sk;
31 
32  /* AFTER 0.6 RELEASE TODO: Add a listbox which has fonts too, this way user can select the font they want.
33  me.gotoRC(me, 0, 2.2); me.setFirstColumn(me, me.currentColumn);
34  me.TD(me, 1, 1, e = makeXonoticTextLabel(0, _("Text language:")));
35  me.TR(me);
36  me.TD(me, 6, 1, sk = makeXonoticLanguageList());
37  me.TR(me);
38  me.TR(me);
39  me.TR(me);
40  me.TR(me);
41  me.TR(me);
42  me.TR(me);
43  me.TD(me, 1, 1, e = makeXonoticButton(_("Set language"), '0 0 0'));
44  e.onClick = SetLanguage_Click;
45  e.onClickEntity = sk;
46 
47  me.gotoRC(me, 0, 3.3); me.setFirstColumn(me, me.currentColumn);
48  me.TD(me, 1, 1.5, e = makeXonoticTextLabel(0, _("Font:")));
49  me.TR(me);
50  me.TD(me, 2, 1.5, sk = makeXonoticLanguageList());
51  me.TR(me);
52  me.TR(me);
53  me.TR(me);
54  me.TR(me);
55  me.TR(me);
56  me.TR(me);
57  me.TD(me, 1, 1.5, e = makeXonoticButton(_("Set font"), '0 0 0'));
58  e.onClick = SetLanguage_Click;
59  e.onClickEntity = sk;*/
60 
61  me.gotoRC(me, 0, 3.75); me.setFirstColumn(me, me.currentColumn);
62  me.TD(me, 1, 1.5, e = makeXonoticHeaderLabel(_("Text Language")));
63  me.TR(me);
64  me.TD(me, 8, 1.5, sk = makeXonoticLanguageList());
65 
66  me.gotoRC(me, 9, 3.75); me.setFirstColumn(me, me.currentColumn);
67  me.TD(me, 1, 1.5, e = makeXonoticButton(_("Set language"), '0 0 0'));
68  e.onClick = SetLanguage_Click;
69  e.onClickEntity = sk;
70 
71  me.gotoRC(me, 11.5, 3.25); me.setFirstColumn(me, me.currentColumn);
72  me.TD(me, 1, 2.5, e = makeXonoticCheckBox_T(0, "cl_gentle", _("Disable gore effects and harsh language"),
73  _("Replace blood and gibs with content that does not have any gore effects")));
74  e.sendCvars = true;
75 }
#define NEW(cname,...)
Definition: oo.qh:105
entity makeXonoticHeaderLabel(string theText)
Definition: textlabel.qc:10
entity() spawn
void SetLanguage_Click(entity btn, entity me)
void SetSkin_Click(entity btn, entity me)
Definition: skinlist.qc:157
entity makeXonoticLanguageList()
Definition: languagelist.qc:12
entity makeXonoticCheckBox_T(float isInverted, string theCvar, string theText, string theTooltip)
Definition: checkbox.qc:3
void XonoticUserSettingsTab_fill(entity me)
entity makeXonoticSkinList()
Definition: skinlist.qc:9
entity makeXonoticUserSettingsTab()