1 #ifndef DIALOG_HUDPANEL_RADAR_H
2 #define DIALOG_HUDPANEL_RADAR_H
3 #include "rootdialog.qc"
4 CLASS(XonoticHUDRadarDialog, XonoticRootDialog)
5 METHOD(XonoticHUDRadarDialog, fill, void(entity));
6 ATTRIB(XonoticHUDRadarDialog, title, string, _("Radar Panel"))
7 ATTRIB(XonoticHUDRadarDialog, color, vector, SKINCOLOR_DIALOG_TEAMSELECT)
8 ATTRIB(XonoticHUDRadarDialog, intendedWidth, float, 0.4)
9 ATTRIB(XonoticHUDRadarDialog, rows, float, 15)
10 ATTRIB(XonoticHUDRadarDialog, columns, float, 4)
11 ATTRIB(XonoticHUDRadarDialog, name, string, "HUDradar")
12 ATTRIB(XonoticHUDRadarDialog, requiresConnection, float, true)
13 ENDCLASS(XonoticHUDRadarDialog)
17 void XonoticHUDRadarDialog_fill(entity me)
20 string panelname = "radar";
23 me.TD(me, 1, 4, e = makeXonoticTextSlider("hud_panel_radar"));
24 e.addValue(e, _("Panel disabled"), "0");
25 e.addValue(e, _("Panel enabled in teamgames"), "1");
26 e.addValue(e, _("Panel always enabled"), "2");
27 e.configureXonoticTextSliderValues(e);
29 DIALOG_HUDPANEL_COMMON_NOTOGGLE();
32 me.TD(me, 1, 4, e = makeXonoticTextLabel(0, _("Radar:")));
35 me.TD(me, 1, 1.2, e = makeXonoticTextLabel(0, _("Alpha:")));
36 me.TD(me, 1, 2.6, e = makeXonoticSlider(0.1, 1, 0.1, "hud_panel_radar_foreground_alpha"));
39 me.TD(me, 1, 1.2, e = makeXonoticTextLabel(0, _("Rotation:")));
40 me.TD(me, 1, 2.6, e = makeXonoticTextSlider("hud_panel_radar_rotation"));
41 e.addValue(e, _("Forward"), "0");
42 e.addValue(e, _("West"), "1");
43 e.addValue(e, _("South"), "2");
44 e.addValue(e, _("East"), "3");
45 e.addValue(e, _("North"), "4");
46 e.configureXonoticTextSliderValues(e);
49 me.TD(me, 1, 1.2, e = makeXonoticTextLabel(0, _("Scale:")));
50 me.TD(me, 1, 2.6, e = makeXonoticSlider(1024, 8192, 512, "hud_panel_radar_scale"));
53 me.TD(me, 1, 1.2, e = makeXonoticTextLabel(0, _("Zoom mode:")));
54 me.TD(me, 1, 2.6, e = makeXonoticTextSlider("hud_panel_radar_zoommode"));
55 e.addValue(e, _("Zoomed in"), "0");
56 e.addValue(e, _("Zoomed out"), "1");
57 e.addValue(e, _("Always zoomed"), "2");
58 e.addValue(e, _("Never zoomed"), "3");
59 e.configureXonoticTextSliderValues(e);