3 #include "../item/modalcontroller.qh" 30 me.configureDialog(me);
46 me.TD(me, 1, 2, e =
makeXonoticSlider(0, 1, 0.05,
"hud_panel_scoreboard_bg_alpha"));
51 me.TD(me, 1, 3, e =
makeXonoticCheckBox(0,
"hud_panel_scoreboard_table_highlight", _(
"Enable rows / columns highlighting")));
53 me.TD(me, 1, 3, e =
makeXonoticCheckBox(0,
"hud_panel_scoreboard_accuracy", _(
"Show accuracy underneath scoreboard")));
56 me.TD(me, 1, 2, e =
makeXonoticTextSlider_T(
"hud_panel_scoreboard_team_size_position", _(
"Team size position: Off=do not show; Left=on the left side of the scoreboard and move team scores to the right; Right=on the right of the scoreboard")));
57 e.addValue(e, _(
"Left"),
"1");
58 e.addValue(e, _(
"Off"),
"0");
59 e.addValue(e, _(
"Right"),
"2");
60 e.configureXonoticTextSliderValues(e);
66 me.TD(me, 1, 3, e =
makeXonoticCheckBox_T(1,
"cl_hidewaypoints", _(
"Display waypoint markers for objectives on the map"),
67 _(
"Show various gametype specific waypoints")));
73 _(
"Control transparency of the waypoints")));
85 me.TD(me, 1, 2, e =
makeXonoticSlider_T(0, 0.3, 0.01,
"g_waypointsprite_edgeoffset_bottom",
"-"));
86 makeMulti(e,
"g_waypointsprite_edgeoffset_top g_waypointsprite_edgeoffset_left g_waypointsprite_edgeoffset_right");
91 me.TD(me, 1, 2.8, e =
makeXonoticCheckBoxEx(0.25, 1,
"g_waypointsprite_crosshairfadealpha", _(
"Fade when near the crosshair")));
95 me.TD(me, 1, 2.8, e =
makeXonoticCheckBox(0,
"g_waypointsprite_text", _(
"Display names instead of icons")));
117 me.gotoRC(me, 0, 3.2); me.setFirstColumn(me, me.currentColumn);
120 me.TD(me, 1, 3, e =
makeXonoticCheckBox(0,
"hud_shownames", _(
"Show names above players")));
138 me.TD(me, 1, 2, e =
makeXonoticSlider(2000, 10000, 500,
"hud_shownames_maxdistance"));
145 e.addValue(e, _(
"Never"),
"0");
146 e.addValue(e, _(
"Teamplay"),
"1");
147 e.addValue(e, _(
"Always"),
"2");
148 e.configureXonoticTextSliderValues(e);
154 me.TD(me, 1, 2.8, e =
makeXonoticCheckBoxEx(25, 0,
"hud_shownames_crosshairdistance", _(
"Only when near crosshair")));
158 me.TD(me, 1, 2.8, e =
makeXonoticCheckBox(0,
"hud_shownames_status", _(
"Display health and armor")));
167 _(
"HUD moves around following player's movement")));
169 me.TD(me, 1, 3, e =
makeXonoticCheckBox(0,
"hud_dynamic_shake", _(
"Shake the HUD when hurt")));
175 e.onClickEntity = me;
entity makeXonoticCheckBoxEx(float theYesValue, float theNoValue, string theCvar, string theText)
entity makeXonoticHeaderLabel(string theText)
void DialogOpenButton_Click(entity button, entity tab)
entity makeXonoticTextLabel(float theAlign, string theText)
void XonoticGameHUDSettingsTab_showNotify(entity me)
entity makeXonoticTextSlider_T(string theCvar, string theTooltip)
void HUDSetup_Check_Gamestatus(entity me, entity btn)
void XonoticGameHUDSettingsTab_fill(entity me)
entity makeXonoticSlider(float theValueMin, float theValueMax, float theValueStep, string theCvar)
entity makeXonoticSlider_T(float theValueMin, float theValueMax, float theValueStep, string theCvar, string theTooltip)
entity makeXonoticCheckBox_T(float isInverted, string theCvar, string theText, string theTooltip)
void HUDSetup_Start(entity me, entity btn)
entity makeXonoticGameHUDSettingsTab()
entity makeXonoticTextSlider(string theCvar)
entity makeXonoticScoreboardFadeTimeSlider()
entity makeXonoticCheckBox(float isInverted, string theCvar, string theText)