2 CLASS(XonoticWaypointDialog) EXTENDS(XonoticDialog)
3 METHOD(XonoticWaypointDialog, fill, void(entity))
4 METHOD(XonoticWaypointDialog, showNotify, void(entity))
5 ATTRIB(XonoticWaypointDialog, title, string, _("Waypoints"))
6 ATTRIB(XonoticWaypointDialog, color, vector, SKINCOLOR_DIALOG_RADAR)
7 ATTRIB(XonoticWaypointDialog, intendedWidth, float, 0.7)
8 ATTRIB(XonoticWaypointDialog, rows, float, 6)
9 ATTRIB(XonoticWaypointDialog, columns, float, 4)
10 ENDCLASS(XonoticWaypointDialog)
14 void XonoticWaypointDialog_showNotify(entity me)
18 void XonoticWaypointDialog_fill(entity me)
23 me.TD(me, 1, 4, makeXonoticTextLabel(0, _("Waypoint settings:")));
26 me.TD(me, 1, 3.8, e = makeXonoticCheckBox(1, "cl_hidewaypoints", _("Show base waypoints")));
29 me.TD(me, 1, 0.8, e = makeXonoticTextLabel(0, _("Waypoint scale:")));
30 me.TD(me, 1, 3, e = makeXonoticSlider(0.5, 1.5, 0.01, "g_waypointsprite_scale"));
31 setDependent(e, "cl_hidewaypoints", 0, 0);
34 me.TD(me, 1, 0.8, e = makeXonoticTextLabel(0, _("Waypoint alpha:")));
35 me.TD(me, 1, 3, e = makeXonoticSlider(0.1, 1, 0.01, "g_waypointsprite_alpha"));
36 setDependent(e, "cl_hidewaypoints", 0, 0);
39 me.TD(me, 1, 0.8, e = makeXonoticTextLabel(0, _("Show names:")));
40 me.TD(me, 1, 3, e = makeXonoticTextSlider("cl_shownames"));
41 e.addValue(e, _("Never"), "0");
42 e.addValue(e, _("Teammates"), "1");
43 e.addValue(e, _("All players"), "2");
44 e.configureXonoticTextSliderValues(e);
45 me.gotoRC(me, me.rows - 1, 0);
46 me.TD(me, 1, me.columns, e = makeXonoticButton(_("OK"), '0 0 0'));
47 e.onClick = Dialog_Close;