1 #ifndef DIALOG_SETTINGS_USER_H
2 #define DIALOG_SETTINGS_USER_H
4 CLASS(XonoticUserSettingsTab, XonoticTab)
5 METHOD(XonoticUserSettingsTab, fill, void(entity));
6 ATTRIB(XonoticUserSettingsTab, intendedWidth, float, 0.9)
7 ATTRIB(XonoticUserSettingsTab, rows, float, 15.5)
8 ATTRIB(XonoticUserSettingsTab, columns, float, 6)
9 ENDCLASS(XonoticUserSettingsTab)
10 entity makeXonoticUserSettingsTab();
14 entity makeXonoticUserSettingsTab()
17 me = NEW(XonoticUserSettingsTab);
18 me.configureDialog(me);
22 void XonoticUserSettingsTab_fill(entity me)
29 me.TD(me, 1, 2.5, e = makeXonoticHeaderLabel(_("Menu Skins")));
32 me.TD(me, me.rows - 2.5, 2.5, sk = makeXonoticSkinList());
33 me.gotoRC(me, me.rows - 1.5, 0.25);
34 me.TD(me, 1, 2.5, e = makeXonoticButton(_("Set skin"), '0 0 0'));
35 e.onClick = SetSkin_Click;
38 /* AFTER 0.6 RELEASE TODO: Add a listbox which has fonts too, this way user can select the font they want.
39 me.gotoRC(me, 0, 2.2); me.setFirstColumn(me, me.currentColumn);
40 me.TD(me, 1, 1, e = makeXonoticTextLabel(0, _("Text language:")));
42 me.TD(me, 6, 1, sk = makeXonoticLanguageList());
49 me.TD(me, 1, 1, e = makeXonoticButton(_("Set language"), '0 0 0'));
50 e.onClick = SetLanguage_Click;
53 me.gotoRC(me, 0, 3.3); me.setFirstColumn(me, me.currentColumn);
54 me.TD(me, 1, 1.5, e = makeXonoticTextLabel(0, _("Font:")));
56 me.TD(me, 2, 1.5, sk = makeXonoticLanguageList());
63 me.TD(me, 1, 1.5, e = makeXonoticButton(_("Set font"), '0 0 0'));
64 e.onClick = SetLanguage_Click;
65 e.onClickEntity = sk;*/
67 me.gotoRC(me, 0, 3.75); me.setFirstColumn(me, me.currentColumn);
68 me.TD(me, 1, 1.5, e = makeXonoticHeaderLabel(_("Text Language")));
70 me.TD(me, 8, 1.5, sk = makeXonoticLanguageList());
72 me.gotoRC(me, 9, 3.75); me.setFirstColumn(me, me.currentColumn);
73 me.TD(me, 1, 1.5, e = makeXonoticButton(_("Set language"), '0 0 0'));
74 e.onClick = SetLanguage_Click;
77 me.gotoRC(me, 11.5, 3.25); me.setFirstColumn(me, me.currentColumn);
78 me.TD(me, 1, 2.5, e = makeXonoticCheckBox_T(0, "cl_gentle", _("Disable gore effects and harsh language"),
79 _("Replace blood and gibs with content that does not have any gore effects (default: disabled)")));
82 // me.TD(me, 1, 1, e = makeXonoticTextLabel(0, _("Menu tooltips:")));
83 // me.TD(me, 1, 2, e = makeXonoticTextSlider("menu_tooltips"));
84 // e.addValue(e, ZCTX(_("TLTIP^Disabled")), "0");
85 // e.addValue(e, ZCTX(_("TLTIP^Standard")), "1");
86 // e.addValue(e, ZCTX(_("TLTIP^Advanced")), "2");
87 // e.configureXonoticTextSliderValues(e);
89 // me.TD(me, 1, 2.8, e = makeXonoticCheckBox(0, "cl_allow_uidtracking", _("Allow player statistics to track your client"))); // TODO: move to profile tab
91 // me.TD(me, 1, 2.8, e = makeXonoticCheckBox(0, "cl_allow_uid2name", _("Allow player statistics to use your nickname")));
92 // setDependent(e, "cl_allow_uidtracking", 1, 1);
94 //me.gotoRC(me, me.rows - 1, 2.6);
95 // me.TD(me, 1, 2, makeXonoticCommandButton(_("Apply immediately"), '0 0 0', "sendcvar cl_gentle; sendcvar cl_allow_uidtracking; sendcvar cl_allow_uid2name;", COMMANDBUTTON_APPLY));