Skip to content

Commit

Permalink
[release] v1.5 Public Release
Browse files Browse the repository at this point in the history
  • Loading branch information
Vel-San committed Oct 8, 2020
1 parent eed3632 commit cebcee2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 54 deletions.
61 changes: 8 additions & 53 deletions KFColorfulHUD/Classes/ColorfulHUD.uc
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,6 @@ simulated function UpdateHud()
HealthDigits.Tints[1] = HealthDigits.Tints[0];
}



CashDigits.Value = PawnOwnerPRI.Score;

WelderDigits.Value = 100 * (CurAmmoPrimary / MaxAmmoPrimary);
Expand Down Expand Up @@ -253,13 +251,10 @@ simulated function UpdateHud()
SyringeDigits.Tints[1] = SyringeDigits.Tints[0];
}

if ( bDisplayQuickSyringe )
{
S = Syringe(PawnOwner.FindInventoryType(class'Syringe'));
if ( S != none )
S = Syringe(PawnOwner.FindInventoryType(class'Syringe'));
if ( S != none )
{
QuickSyringeDigits.Value = S.ChargeBar() * 100;

if ( QuickSyringeDigits.Value < 50 )
{
// Teal
Expand All @@ -286,7 +281,6 @@ simulated function UpdateHud()
QuickSyringeDigits.Tints[1] = QuickSyringeDigits.Tints[0];
}
}
}

// Hints
if ( PawnOwner.Health <= 50 )
Expand Down Expand Up @@ -618,53 +612,14 @@ simulated function DrawHudPassA (Canvas C)
}
else
{
if ( bDisplayQuickSyringe )
// Always LightHUD
/*if ( !bLightHud )
{
TempSize = Level.TimeSeconds - QuickSyringeStartTime;
if ( TempSize < QuickSyringeDisplayTime )
{
if ( TempSize < QuickSyringeFadeInTime )
{
QuickSyringeBG.Tints[0].A = int((TempSize / QuickSyringeFadeInTime) * 255.0);
QuickSyringeBG.Tints[1].A = QuickSyringeBG.Tints[0].A;
QuickSyringeIcon.Tints[0].A = QuickSyringeBG.Tints[0].A;
QuickSyringeIcon.Tints[1].A = QuickSyringeBG.Tints[0].A;
QuickSyringeDigits.Tints[0].A = QuickSyringeBG.Tints[0].A;
QuickSyringeDigits.Tints[1].A = QuickSyringeBG.Tints[0].A;
}
else if ( TempSize > QuickSyringeDisplayTime - QuickSyringeFadeOutTime )
{
QuickSyringeBG.Tints[0].A = int((1.0 - ((TempSize - (QuickSyringeDisplayTime - QuickSyringeFadeOutTime)) / QuickSyringeFadeOutTime)) * 255.0);
QuickSyringeBG.Tints[1].A = QuickSyringeBG.Tints[0].A;
QuickSyringeIcon.Tints[0].A = QuickSyringeBG.Tints[0].A;
QuickSyringeIcon.Tints[1].A = QuickSyringeBG.Tints[0].A;
QuickSyringeDigits.Tints[0].A = QuickSyringeBG.Tints[0].A;
QuickSyringeDigits.Tints[1].A = QuickSyringeBG.Tints[0].A;
}
else
{
QuickSyringeBG.Tints[0].A = 255;
QuickSyringeBG.Tints[1].A = 255;
QuickSyringeIcon.Tints[0].A = 255;
QuickSyringeIcon.Tints[1].A = 255;
QuickSyringeDigits.Tints[0].A = 255;
QuickSyringeDigits.Tints[1].A = 255;
}
// Always LightHUD
/*if ( !bLightHud )
{
DrawSpriteWidget(C, QuickSyringeBG);
}*/
DrawSpriteWidget(C, QuickSyringeBG);
}*/
DrawSpriteWidget(C, QuickSyringeIcon);
DrawNumericWidget(C, QuickSyringeDigits, DigitsSmall);
}
else
{
bDisplayQuickSyringe = false;
}
}
DrawSpriteWidget(C, QuickSyringeIcon);
DrawNumericWidget(C, QuickSyringeDigits, DigitsSmall);
if ( MP7MMedicGun(PawnOwner.Weapon) != none || MP5MMedicGun(PawnOwner.Weapon) != none || M7A3MMedicGun(PawnOwner.Weapon) != none )
if ( MP7MMedicGun(PawnOwner.Weapon) != none || MP5MMedicGun(PawnOwner.Weapon) != none
Expand Down
2 changes: 1 addition & 1 deletion KFColorfulHUD/Classes/KFColorfulHUD.uc
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ defaultproperties
{
// Mut Vars
GroupName="KF-ColorfulHUD"
FriendlyName="Colorful HUD - v1.3"
FriendlyName="Colorful HUD - v1.5"
Description="Replaces the HUD with a beautiful Green, Dark, White Elements & Colorful Icons!; by Vel-San"

// Mandatory Vars
Expand Down

0 comments on commit cebcee2

Please sign in to comment.