mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-03-13 05:51:19 +00:00
Fix hud color.
This commit is contained in:
parent
b7bf8d90fb
commit
7dc9476ef9
@ -93,8 +93,8 @@ int CHudBattery::Draw( float flTime )
|
|||||||
y = ScreenHeight - ARMOR_BAR_BOTTOM - iHeight;
|
y = ScreenHeight - ARMOR_BAR_BOTTOM - iHeight;
|
||||||
|
|
||||||
// Draw empty transparent bar.
|
// Draw empty transparent bar.
|
||||||
r = g = b = 255;
|
r = g = b = 200;
|
||||||
a = 16;
|
a = 40;
|
||||||
|
|
||||||
FillRGBA( x, y, iWidth, iHeight, r, g, b, a );
|
FillRGBA( x, y, iWidth, iHeight, r, g, b, a );
|
||||||
|
|
||||||
@ -119,7 +119,7 @@ int CHudBattery::Draw( float flTime )
|
|||||||
a = MIN_ALPHA + ( m_fFade / FADE_TIME ) * 128;
|
a = MIN_ALPHA + ( m_fFade / FADE_TIME ) * 128;
|
||||||
}
|
}
|
||||||
else*/
|
else*/
|
||||||
a = MIN_ALPHA;
|
a = MIN_ALPHA * 2 - 10;
|
||||||
|
|
||||||
iHeight = ( m_iBat * ARMOR_BAR_HEIGHT ) / 100;
|
iHeight = ( m_iBat * ARMOR_BAR_HEIGHT ) / 100;
|
||||||
|
|
||||||
|
@ -187,6 +187,9 @@ int CHudHealth::Draw( float flTime )
|
|||||||
if( ( gHUD.m_iHideHUDDisplay & HIDEHUD_HEALTH ) || gEngfuncs.IsSpectateOnly() )
|
if( ( gHUD.m_iHideHUDDisplay & HIDEHUD_HEALTH ) || gEngfuncs.IsSpectateOnly() )
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
|
if( !m_hSprite )
|
||||||
|
m_hSprite = LoadSprite( "sprites/%d_pain.spr" );
|
||||||
|
|
||||||
if( !( gHUD.m_iWeaponBits & ( 1 << ( WEAPON_SUIT ) ) ) )
|
if( !( gHUD.m_iWeaponBits & ( 1 << ( WEAPON_SUIT ) ) ) )
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
@ -201,8 +204,8 @@ int CHudHealth::Draw( float flTime )
|
|||||||
y = ScreenHeight - HEALTH_BAR_BOTTOM - iHeight;
|
y = ScreenHeight - HEALTH_BAR_BOTTOM - iHeight;
|
||||||
|
|
||||||
// Draw empty transparent bar.
|
// Draw empty transparent bar.
|
||||||
r = g = b = 255;
|
r = g = b = 200;
|
||||||
a = 16;
|
a = 40;
|
||||||
|
|
||||||
FillRGBA( x, y, iWidth, iHeight, r, g, b, a );
|
FillRGBA( x, y, iWidth, iHeight, r, g, b, a );
|
||||||
|
|
||||||
@ -227,7 +230,7 @@ int CHudHealth::Draw( float flTime )
|
|||||||
a = MIN_ALPHA + ( m_fFade / FADE_TIME ) * 128;
|
a = MIN_ALPHA + ( m_fFade / FADE_TIME ) * 128;
|
||||||
}
|
}
|
||||||
else*/
|
else*/
|
||||||
a = MIN_ALPHA;
|
a = MIN_ALPHA * 2 - 10;
|
||||||
|
|
||||||
iHeight = ( m_iHealth * HEALTH_BAR_HEIGHT ) / 100;
|
iHeight = ( m_iHealth * HEALTH_BAR_HEIGHT ) / 100;
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#ifndef HUD_H
|
#ifndef HUD_H
|
||||||
#define HUD_H
|
#define HUD_H
|
||||||
#define RGB_YELLOWISH 0x000080FF //0,128,255
|
#define RGB_YELLOWISH 0x000040AC //0,64,172
|
||||||
#define RGB_REDISH 0x00FF1010 //255,160,0
|
#define RGB_REDISH 0x00FF1010 //255,160,0
|
||||||
#define RGB_GREENISH 0x0000A000 //0,160,0
|
#define RGB_GREENISH 0x0000A000 //0,160,0
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user