@ -1696,12 +1696,21 @@ void AiL::RenderHud(){
RenderCastbar ( CastInfo { " Exiting Level... " , GetPlayer ( ) - > GetEndZoneStandTime ( ) , " Player.End Zone Wait Time " _F } ) ;
RenderCastbar ( CastInfo { " Exiting Level... " , GetPlayer ( ) - > GetEndZoneStandTime ( ) , " Player.End Zone Wait Time " _F } ) ;
}
}
Pixel healthOutlineCol = BLACK ;
if ( player - > GetHealth ( ) / player - > GetMaxHealth ( ) < = " Player.Health Warning Pct " _F / 100.f ) {
float runTimeAmt = fmod ( GetRuntime ( ) , " Player.Health Warning Flicker Time " _F * 2 ) ;
if ( runTimeAmt < " Player.Health Warning Flicker Time " _F ) {
healthOutlineCol = " Player.Health Warning Outline Color " _Pixel ;
}
}
DrawDecal ( { 2 , 2 } , GFX [ " heart_outline.png " ] . Decal ( ) , { 1.f , 1.f } , healthOutlineCol ) ;
DrawDecal ( { 2 , 2 } , GFX [ " heart.png " ] . Decal ( ) ) ;
DrawDecal ( { 2 , 2 } , GFX [ " heart.png " ] . Decal ( ) ) ;
DrawDecal ( { 2 , 20 } , GFX [ " mana.png " ] . Decal ( ) ) ;
DrawDecal ( { 2 , 20 } , GFX [ " mana.png " ] . Decal ( ) ) ;
std : : string text = player - > GetHealth ( ) > 0 ? std : : to_string ( healthCounter . GetDisplayValue ( ) ) : " X " ;
std : : string text = player - > GetHealth ( ) > 0 ? std : : to_string ( healthCounter . GetDisplayValue ( ) ) : " X " ;
std : : string text_mana = std : : to_string ( manaCounter . GetDisplayValue ( ) ) ;
std : : string text_mana = std : : to_string ( manaCounter . GetDisplayValue ( ) ) ;
DrawShadowStringPropDecal ( { 20 , 3 } , text , healthCounter . GetDisplayColor ( ) , BLACK , { 2 , 2 } , INFINITE ) ;
DrawShadowStringPropDecal ( { 20 , 3 } , text , healthCounter . GetDisplayColor ( ) , healthOutlineCol , { 2 , 2 } , INFINITE ) ;
DrawShadowStringPropDecal ( { 24 , 23 } , text_mana , manaCounter . GetDisplayColor ( ) , BLACK , { 1.5f , 1.5f } , INFINITE ) ;
DrawShadowStringPropDecal ( { 24 , 23 } , text_mana , manaCounter . GetDisplayColor ( ) , BLACK , { 1.5f , 1.5f } , INFINITE ) ;
# pragma region Show Max Health / Max Mana
# pragma region Show Max Health / Max Mana
@ -1710,7 +1719,7 @@ void AiL::RenderHud(){
std : : string maxHealthText = " / " + std : : to_string ( int ( player - > GetMaxHealth ( ) ) ) ;
std : : string maxHealthText = " / " + std : : to_string ( int ( player - > GetMaxHealth ( ) ) ) ;
float maxHealthTextHeight = GetTextSizeProp ( maxHealthText ) . y ;
float maxHealthTextHeight = GetTextSizeProp ( maxHealthText ) . y ;
DrawShadowStringPropDecal ( vf2d { 20 , 3 } + healthTextSize + vf2d { 1.f , - maxHealthTextHeight } , maxHealthText , { 200 , 200 , 200 , 255 } , BLACK , { 1.f , 1.f } , INFINITE ) ;
DrawShadowStringPropDecal ( vf2d { 20 , 3 } + healthTextSize + vf2d { 1.f , - maxHealthTextHeight } , maxHealthText , { 200 , 200 , 200 , 255 } , healthOutlineCol , { 1.f , 1.f } , INFINITE ) ;
}
}
if ( GameSettings : : ShowMaxMana ( ) ) {
if ( GameSettings : : ShowMaxMana ( ) ) {
vf2d manaTextSize = GetTextSizeProp ( text_mana ) * vf2d { 1.5f , 1.5f } ;
vf2d manaTextSize = GetTextSizeProp ( text_mana ) * vf2d { 1.5f , 1.5f } ;