1 #include "dialog_hudpanel_radar.qh"
4 #include "textslider.qh"
6 #include "textlabel.qh"
8 void XonoticHUDRadarDialog_fill(entity me)
11 string panelname = "radar";
14 me.TD(me, 1, 4, e = makeXonoticTextSlider("hud_panel_radar"));
15 e.addValue(e, _("Panel disabled"), "0");
16 e.addValue(e, _("Panel enabled in teamgames"), "1");
17 e.addValue(e, _("Panel always enabled"), "2");
18 e.configureXonoticTextSliderValues(e);
20 DIALOG_HUDPANEL_COMMON_NOTOGGLE();
23 me.TD(me, 1, 4, e = makeXonoticTextLabel(0, _("Radar:")));
26 me.TD(me, 1, 1.2, e = makeXonoticTextLabel(0, _("Alpha:")));
27 me.TD(me, 1, 2.6, e = makeXonoticSlider(0.1, 1, 0.1, "hud_panel_radar_foreground_alpha"));
30 me.TD(me, 1, 1.2, e = makeXonoticTextLabel(0, _("Rotation:")));
31 me.TD(me, 1, 2.6, e = makeXonoticTextSlider("hud_panel_radar_rotation"));
32 e.addValue(e, _("Forward"), "0");
33 e.addValue(e, _("West"), "1");
34 e.addValue(e, _("South"), "2");
35 e.addValue(e, _("East"), "3");
36 e.addValue(e, _("North"), "4");
37 e.configureXonoticTextSliderValues(e);
40 me.TD(me, 1, 1.2, e = makeXonoticTextLabel(0, _("Scale:")));
41 me.TD(me, 1, 2.6, e = makeXonoticSlider(1024, 8192, 512, "hud_panel_radar_scale"));
44 me.TD(me, 1, 1.2, e = makeXonoticTextLabel(0, _("Zoom mode:")));
45 me.TD(me, 1, 2.6, e = makeXonoticTextSlider("hud_panel_radar_zoommode"));
46 e.addValue(e, _("Zoomed in"), "0");
47 e.addValue(e, _("Zoomed out"), "1");
48 e.addValue(e, _("Always zoomed"), "2");
49 e.addValue(e, _("Never zoomed"), "3");
50 e.configureXonoticTextSliderValues(e);