Xonotic
dialog_hudpanel_radar.qc File Reference
#include "dialog_hudpanel_radar.qh"
#include "checkbox.qh"
#include "textslider.qh"
#include "slider.qh"
#include "textlabel.qh"
+ Include dependency graph for dialog_hudpanel_radar.qc:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void XonoticHUDRadarDialog_fill (entity me)
 

Function Documentation

◆ XonoticHUDRadarDialog_fill()

void XonoticHUDRadarDialog_fill ( entity  me)

Definition at line 8 of file dialog_hudpanel_radar.qc.

References entity(), and makeXonoticTextSlider().

9 {
10  entity e;
11  string panelname = "radar";
12 
13  me.TR(me);
14  me.TD(me, 1, 4, e = makeXonoticTextSlider("hud_panel_radar"));
15  e.addValue(e, _("Disable"), "0");
16  e.addValue(e, _("Enable in team games"), "1");
17  e.addValue(e, _("Always enable"), "2");
18  e.configureXonoticTextSliderValues(e);
19 
20  dialog_hudpanel_main_settings(me, panelname);
21 
22  me.TR(me);
23  me.TD(me, 1, 4, e = makeXonoticTextLabel(0, _("Radar:")));
24  me.TR(me);
25  me.TDempty(me, 0.2);
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"));
28  me.TR(me);
29  me.TDempty(me, 0.2);
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);
38  me.TR(me);
39  me.TDempty(me, 0.2);
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"));
42  me.TR(me);
43  me.TDempty(me, 0.2);
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);
51 }
entity() spawn
entity makeXonoticTextLabel(float theAlign, string theText)
Definition: textlabel.qc:3
entity makeXonoticSlider(float theValueMin, float theValueMax, float theValueStep, string theCvar)
Definition: slider.qc:10
entity makeXonoticTextSlider(string theCvar)
Definition: textslider.qc:10
+ Here is the call graph for this function: