2 CLASS(XonoticHUDRadarDialog) EXTENDS(XonoticRootDialog)
3 METHOD(XonoticHUDRadarDialog, fill, void(entity))
4 ATTRIB(XonoticHUDRadarDialog, title, string, _("Radar Panel"))
5 ATTRIB(XonoticHUDRadarDialog, color, vector, SKINCOLOR_DIALOG_TEAMSELECT)
6 ATTRIB(XonoticHUDRadarDialog, intendedWidth, float, 0.4)
7 ATTRIB(XonoticHUDRadarDialog, rows, float, 15)
8 ATTRIB(XonoticHUDRadarDialog, columns, float, 4)
9 ATTRIB(XonoticHUDRadarDialog, name, string, "HUDradar")
10 ATTRIB(XonoticHUDRadarDialog, requiresConnection, float, true)
11 ENDCLASS(XonoticHUDRadarDialog)
15 void XonoticHUDRadarDialog_fill(entity me)
18 string panelname = "radar";
21 me.TD(me, 1, 4, e = makeXonoticTextSlider("hud_panel_radar"));
22 e.addValue(e, _("Panel disabled"), "0");
23 e.addValue(e, _("Panel enabled in teamgames"), "1");
24 e.addValue(e, _("Panel always enabled"), "2");
25 e.configureXonoticTextSliderValues(e);
27 DIALOG_HUDPANEL_COMMON_NOTOGGLE();
30 me.TD(me, 1, 4, e = makeXonoticTextLabel(0, _("Radar:")));
33 me.TD(me, 1, 1.2, e = makeXonoticTextLabel(0, _("Alpha:")));
34 me.TD(me, 1, 2.6, e = makeXonoticSlider(0.1, 1, 0.1, "hud_panel_radar_foreground_alpha"));
37 me.TD(me, 1, 1.2, e = makeXonoticTextLabel(0, _("Rotation:")));
38 me.TD(me, 1, 2.6, e = makeXonoticTextSlider("hud_panel_radar_rotation"));
39 e.addValue(e, _("Forward"), "0");
40 e.addValue(e, _("West"), "1");
41 e.addValue(e, _("South"), "2");
42 e.addValue(e, _("East"), "3");
43 e.addValue(e, _("North"), "4");
44 e.configureXonoticTextSliderValues(e);
47 me.TD(me, 1, 1.2, e = makeXonoticTextLabel(0, _("Scale:")));
48 me.TD(me, 1, 2.6, e = makeXonoticSlider(1024, 8192, 512, "hud_panel_radar_scale"));
51 me.TD(me, 1, 1.2, e = makeXonoticTextLabel(0, _("Zoom mode:")));
52 me.TD(me, 1, 2.6, e = makeXonoticTextSlider("hud_panel_radar_zoommode"));
53 e.addValue(e, _("Zoomed in"), "0");
54 e.addValue(e, _("Zoomed out"), "1");
55 e.addValue(e, _("Always zoomed"), "2");
56 e.addValue(e, _("Never zoomed"), "3");
57 e.configureXonoticTextSliderValues(e);