#include "quickmenu.qh"
-#include "scoreboard.qh"
#include <common/ent_cs.qh>
-#include <client/hud/all.qh>
+#include <client/hud/_mod.qh>
#include <client/mapvoting.qh>
// QuickMenu (#23)
return;
}
- if(!autocvar_hud_cursormode)
- {
- mousepos = mousepos + getmousepos() * autocvar_menu_mouse_speed;
+ if (!autocvar_hud_cursormode)
+ update_mousepos();
- mousepos.x = bound(0, mousepos.x, vid_conwidth);
- mousepos.y = bound(0, mousepos.y, vid_conheight);
- }
-
- if(1 - scoreboard_fade_alpha <= 0)
- return;
- HUD_Panel_UpdateCvars(1 - scoreboard_fade_alpha);
+ panel = HUD_PANEL(QUICKMENU);
+ HUD_Panel_LoadCvars();
if(panel_bg_padding)
{
}
}
- if(1 - scoreboard_fade_alpha <= 0)
- return;
- HUD_Panel_UpdateCvars(1 - scoreboard_fade_alpha);
+ HUD_Panel_LoadCvars();
HUD_Scale_Disable();
HUD_Panel_DrawBg();