2 CLASS(NexuizCvarsDialog) EXTENDS(NexuizDialog)
3 METHOD(NexuizCvarsDialog, toString, string(entity))
4 METHOD(NexuizCvarsDialog, fill, void(entity))
5 METHOD(NexuizCvarsDialog, showNotify, void(entity))
6 ATTRIB(NexuizCvarsDialog, title, string, "Advanced settings")
7 ATTRIB(NexuizCvarsDialog, color, vector, SKINCOLOR_DIALOG_CVARS)
8 ATTRIB(NexuizCvarsDialog, intendedWidth, float, 0.8)
9 ATTRIB(NexuizCvarsDialog, rows, float, 25)
10 ATTRIB(NexuizCvarsDialog, columns, float, 6)
11 ENDCLASS(NexuizCvarsDialog)
15 void showNotifyNexuizCvarsDialog(entity me)
19 string toStringNexuizCvarsDialog(entity me)
23 void fillNexuizCvarsDialog(entity me)
25 entity e, cvarlist, btn;
26 cvarlist = makeNexuizCvarList();
28 me.TD(me, 1, 1, e = makeNexuizTextLabel(0, "Cvar filter:"));
29 me.TD(me, 1, 0.5, btn = makeNexuizButton("Clear", '0 0 0'));
30 me.TD(me, 1, me.columns - 1.5, e = makeNexuizInputBox(0, string_null));
31 e.onChange = CvarList_Filter_Change;
32 e.onChangeEntity = cvarlist;
33 btn.onClick = InputBox_Clear_Click;
34 btn.onClickEntity = e;
35 cvarlist.controlledTextbox = e; // this COULD also be the Value box, but this leads to accidentally editing stuff
37 me.TD(me, me.rows - me.currentRow - 7, me.columns, cvarlist);
38 me.gotoRC(me, me.rows - 7, 0);
39 me.TD(me, 1, 1, e = makeNexuizTextLabel(0, "Setting:"));
40 me.TD(me, 1, me.columns - 1, e = makeNexuizTextLabel(0, string_null));
41 cvarlist.cvarNameBox = e;
43 me.TD(me, 1, 1, e = makeNexuizTextLabel(0, "Type:"));
44 me.TD(me, 1, me.columns - 1, e = makeNexuizTextLabel(0, string_null));
45 cvarlist.cvarTypeBox = e;
47 me.TD(me, 1, 1, e = makeNexuizTextLabel(0, "Value:"));
48 me.TD(me, 1, me.columns - 2, e = makeNexuizInputBox(0, string_null));
49 cvarlist.cvarValueBox = e;
50 e.onChange = CvarList_Value_Change;
51 e.onChangeEntity = cvarlist;
52 me.TD(me, 1, 1, e = makeNexuizButton(string_null, SKINCOLOR_CVARLIST_REVERTBUTTON));
53 cvarlist.cvarDefaultBox = e;
54 e.onClick = CvarList_Revert_Click;
55 e.onClickEntity = cvarlist;
57 e.marginLeft = e.marginRight = 0.5;
59 me.TD(me, 1, 1, e = makeNexuizTextLabel(0, "Description:"));
60 me.TD(me, 1, me.columns - 1, e = makeNexuizTextLabel(0, string_null));
61 cvarlist.cvarDescriptionBox = e;
63 me.gotoRC(me, me.rows - 1, 0);
64 me.TD(me, 1, me.columns, e = makeNexuizButton("OK", '0 0 0'));
65 e.onClick = Dialog_Close;