2 CLASS(XonoticAdvancedDialog) EXTENDS(XonoticDialog)
3 METHOD(XonoticAdvancedDialog, fill, void(entity))
4 METHOD(XonoticAdvancedDialog, showNotify, void(entity))
5 METHOD(XonoticAdvancedDialog, close, void(entity))
6 ATTRIB(XonoticAdvancedDialog, title, string, "Advanced server settings")
7 ATTRIB(XonoticAdvancedDialog, color, vector, SKINCOLOR_DIALOG_ADVANCED)
8 ATTRIB(XonoticAdvancedDialog, intendedWidth, float, 0.5)
9 ATTRIB(XonoticAdvancedDialog, rows, float, 13)
10 ATTRIB(XonoticAdvancedDialog, columns, float, 3)
11 ATTRIB(XonoticAdvancedDialog, refilterEntity, entity, NULL)
12 ENDCLASS(XonoticAdvancedDialog)
16 void XonoticAdvancedDialog_showNotify(entity me)
21 void XonoticAdvancedDialog_fill(entity me)
25 me.TD(me, 1, 3, makeXonoticTextLabel(0, "Game settings:"));
28 me.TD(me, 1, 2.8, e = makeXonoticCheckBox(0, "sv_spectate", "Allow spectating"));
31 me.TD(me, 1, 1.2, e = makeXonoticTextLabel(0, "Spawn shield:"));
32 me.TD(me, 1, 1.6, e = makeXonoticSlider(0, 15, 0.5, "g_spawnshieldtime"));
36 me.TD(me, 1, 1.2, e = makeXonoticTextLabel(0, "Game speed:"));
37 me.TD(me, 1, 1.6, e = makeXonoticSlider(0.5, 2.0, 0.1, "slowmo"));
40 me.TD(me, 1, 3, makeXonoticTextLabel(0, "Teamplay settings:"));
43 me.TD(me, 1, 1.2, e = makeXonoticTextLabel(0, "Friendly fire scale:"));
44 me.TD(me, 1, 1.6, e = makeXonoticSlider(0, 1.0, 0.05, "g_friendlyfire"));
47 me.TD(me, 1, 1.2, e = makeXonoticTextLabel(0, "Friendly fire penalty:"));
48 me.TD(me, 1, 1.6, e = makeXonoticSlider(0, 1.0, 0.05, "g_mirrordamage"));
51 me.TD(me, 1, 2.6, e = makeXonoticCheckBox(0, "g_mirrordamage_virtual", "Virtual penalty (effect only)"));
54 me.TD(me, 1, 1.2, e = makeXonoticTextLabel(0, "Teams:"));
55 me.TD(me, 1, 1.6, e = makeXonoticTextSlider("g_tdm_teams_override g_domination_teams_override g_keyhunt_teams_override"));
56 e.addValue(e, "Default", "0");
57 e.addValue(e, "2 teams", "2");
58 e.addValue(e, "3 teams", "3");
59 e.addValue(e, "4 teams", "4");
60 e.configureXonoticTextSliderValues(e);
62 me.gotoRC(me, me.rows - 1, 0);
63 me.TD(me, 1, me.columns, e = makeXonoticButton("OK", '0 0 0'));
64 e.onClick = Dialog_Close;
68 void XonoticAdvancedDialog_close(entity me)
71 me.refilterEntity.refilter(me.refilterEntity);
72 SUPER(XonoticAdvancedDialog).close(me);