2 CLASS(XonoticNotificationDialog) EXTENDS(XonoticDialog)
3 METHOD(XonoticNotificationDialog, toString, string(entity))
4 METHOD(XonoticNotificationDialog, fill, void(entity))
5 METHOD(XonoticNotificationDialog, showNotify, void(entity))
6 ATTRIB(XonoticNotificationDialog, title, string, _("Notification settings"))
7 ATTRIB(XonoticNotificationDialog, color, vector, SKINCOLOR_DIALOG_MODEL)
8 ATTRIB(XonoticNotificationDialog, intendedWidth, float, 0.5)
9 ATTRIB(XonoticNotificationDialog, rows, float, 7)
10 ATTRIB(XonoticNotificationDialog, columns, float, 3)
11 ENDCLASS(XonoticNotificationDialog)
15 void XonoticNotificationDialog_showNotify(entity me)
19 string XonoticNotificationDialog_toString(entity me)
21 return "hi"; // TODO: show csqc model settings like forcemyplayer and deglowing/ghosting bodies with text here
23 void XonoticNotificationDialog_fill(entity me)
28 me.TD(me, 1, 1, e = makeXonoticTextLabel(0, _("Body fading:")));
29 me.TD(me, 1, 2, e = makeXonoticSlider(0, 2, 0.2, "cl_deathglow"));
31 me.TD(me, 1, 1, e = makeXonoticTextLabel(0, _("Gibs:")));
32 me.TD(me, 1, 2, e = makeXonoticTextSlider("cl_nogibs"));
33 e.addValue(e, ZCTX(_("GIBS^None")), "1");
34 e.addValue(e, ZCTX(_("GIBS^Few")), "0.75");
35 e.addValue(e, ZCTX(_("GIBS^Many")), "0.5");
36 e.addValue(e, ZCTX(_("GIBS^Lots")), "0");
37 e.configureXonoticTextSliderValues(e);
38 setDependent(e, "cl_gentle", 0, 0);
41 me.TD(me, 1, 3, e = makeXonoticCheckBox(0, "cl_forceplayermodels", _("Force player models to mine")));
43 me.TD(me, 1, 3, e = makeXonoticCheckBox(0, "cl_forceplayercolors", _("Force player colors to mine")));
46 me.gotoRC(me, me.rows - 1, 0);
47 me.TD(me, 1, me.columns, e = makeXonoticButton(_("OK"), '0 0 0'));
48 e.onClick = Dialog_Close;