float HUD_Panel_InputEvent(float bInputType, float nPrimary, float nSecondary)
{
+ string s;
+
if(!autocvar__hud_configure)
return false;
panel_size_backup = panel_size;
highlightedPanel_backup = highlightedPanel_prev;
- string s;
s = strcat(ftos(tmp_size_x/vid_conwidth), " ", ftos(tmp_size_y/vid_conheight));
cvar_set(strcat("hud_panel_", panel_name, "_size"), s);
}
if (highlightedPanel_backup != -1)
{
HUD_Panel_GetName(highlightedPanel_backup)
- string s;
s = strcat(ftos(panel_pos_backup_x/vid_conwidth), " ", ftos(panel_pos_backup_y/vid_conheight));
cvar_set(strcat("hud_panel_", panel_name, "_pos"), s);
s = strcat(ftos(panel_size_backup_x/vid_conwidth), " ", ftos(panel_size_backup_y/vid_conheight));
void HUD_Weapons(void)
{
+ float f;
+
if(!autocvar_hud_panel_weapons && !autocvar__hud_configure)
return;
if (timeout && time >= weapontime + timeout && !autocvar__hud_configure)
{
- float f = (time - (weapontime + timeout)) / timeout_effect_length;
+ f = (time - (weapontime + timeout)) / timeout_effect_length;
if (cvar("hud_panel_weapons_timeout_effect"))
{
panel_bg_alpha *= (1 - f);
}
else if (timeout && time < weaponprevtime + timein_effect_length && !autocvar__hud_configure)
{
- float f = (time - weaponprevtime) / timein_effect_length;
+ f = (time - weaponprevtime) / timein_effect_length;
if (cvar("hud_panel_weapons_timeout_effect"))
{
panel_bg_alpha *= (f);
// draw chat panel on top if it is maximized
if(autocvar__con_chat_maximized)
- HUD_DrawPanel(HUD_PANEL_CHAT);
+ HUD_Chat(); // HUD_DrawPanel(HUD_PANEL_CHAT);
// TODO hud_'ify these
if (cvar("cl_showspeed"))