bind y messagemode2
bind z messagemode2
bind u "+con_chat_maximize"
-bind m "toggle hud_panel_radar_maximized"
+bind m +hud_panel_radar_maximized
bind i +show_info
bind PAUSE pause
bind F10 quit
seta hud_panel_radar_rotation 0 "rotation mode: you set what points up. 0 = player, 1 = west, 2 = south, 3 = east, 4 = north"
seta hud_panel_radar_zoommode 0 "zoom mode: 0 = zoomed by default, 1 = zoomed when +zoom, 2 = always zoomed, 3 = always zoomed out"
alias hud_panel_radar_rotate "toggle hud_panel_radar_rotation 0 1 2 3 4"
-seta hud_panel_radar_maximized 0 "show the radar centered and maximized";
seta hud_panel_radar_maximized_scale 8192 "distance you can see on the radar when maximized"
seta hud_panel_radar_maximized_size "0.5 0.5" "size of the radar when maximized"
+alias +hud_panel_radar_maximized "cl_cmd hud_panel_radar_maximized 1"
+alias -hud_panel_radar_maximized "cl_cmd hud_panel_radar_maximized 0"
+alias hud_panel_radar_maximized "cl_cmd hud_panel_radar_maximized"
seta hud_panel_score_rankings 0 "show rankings: 1 always show my own score; 2 pure rankings"
"togglezoom" "toggle zoom"
"+showscores" "show scores"
"screenshot" "screen shot"
-"toggle hud_panel_radar_maximized" "maximize/minimize radar"
+"+hud_panel_radar_maximized" "maximize radar"
"" ""
"" "Communicate"
"messagemode" "public chat"
if(cmd == "mv_download") {
Cmd_MapVote_MapDownload(argc);
}
+ else if(cmd == "hud_panel_radar_maximized")
+ {
+ if(argc == 1)
+ hud_panel_radar_maximized = !hud_panel_radar_maximized;
+ else
+ hud_panel_radar_maximized = (stof(argv(1)) != 0);
+ }
else if(cmd == "settemp") {
cvar_clientsettemp(argv(1), argv(2));
}
float autocvar_hud_panel_racetimer;
float autocvar_hud_panel_radar;
float autocvar_hud_panel_radar_foreground_alpha;
-float autocvar_hud_panel_radar_maximized;
float autocvar_hud_panel_radar_maximized_scale;
vector autocvar_hud_panel_radar_maximized_size;
float autocvar_hud_panel_radar_rotation;
{
if (!autocvar__hud_configure)
{
- if (autocvar_hud_panel_radar_maximized)
+ if (hud_panel_radar_maximized)
{
if (!hud_draw_maximized) return;
}
HUD_Panel_UpdateCvars(radar);
HUD_Panel_ApplyFadeAlpha();
- if (autocvar_hud_panel_radar_maximized && !autocvar__hud_configure)
+ if (hud_panel_radar_maximized && !autocvar__hud_configure)
{
panel_size = autocvar_hud_panel_radar_maximized_size;
panel_size_x = bound(0.2, panel_size_x, 1) * vid_conwidth;
hud_draw_maximized = 1; // panels that may be maximized must check this var
// draw maximized panels on top
- if(autocvar_hud_panel_radar_maximized)
+ if(hud_panel_radar_maximized)
HUD_Radar();
if(autocvar__con_chat_maximized)
HUD_Chat();
float panel_order[HUD_PANEL_NUM];
string hud_panelorder_prev;
+
float hud_draw_maximized;
+float hud_panel_radar_maximized;
vector mousepos;
vector panel_click_distance; // mouse cursor distance from the top left corner of the panel (saved only upon a click)
{
v_flipped = autocvar_v_flipped;
hud_panel_radar_scale = autocvar_hud_panel_radar_scale;
- if (autocvar_hud_panel_radar_maximized && !autocvar__hud_configure)
+ if (hud_panel_radar_maximized && !autocvar__hud_configure)
{
if (autocvar_hud_panel_radar_maximized_scale > 0)
hud_panel_radar_scale = autocvar_hud_panel_radar_maximized_scale;