Skip to content

Commit

Permalink
;-)
Browse files Browse the repository at this point in the history
  • Loading branch information
Masteroshi430 committed Mar 8, 2019
1 parent 558ca89 commit 2a5d423
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CustomLifeWarningPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,8 @@ public void PaintTopInGame(ClipState clipState)
ShieldPer19 = 19;
if (Hud.Game.Me.Defense.CurShield == 0f)
{
SPTL = Environment.NewLine + ShieldPylonTimeLeft.ToString();
if (ShieldPylonTimeLeft < 10) {SPTL = Environment.NewLine + " " + ShieldPylonTimeLeft.ToString();}
else {SPTL = Environment.NewLine + ShieldPylonTimeLeft.ToString();}
InfiniteShieldDecorator.Paint(uiRect.Left + uiRect.Width * 0.2f, uiRect.Top + uiRect.Height * 0.66f, uiRect.Width * 0.63f, uiRect.Height * 0.12f, HorizontalAlign.Center);
}
}
Expand All @@ -159,7 +160,6 @@ public static Tuple<float, float> PointOnCircle(float radius, float angleInDegre

public void PaintWorld(WorldLayer layer)
{

var percentLife = Hud.Game.Me.Defense.HealthPct;
if (percentLife <= (float)lifePercentageToDisplayGlobes && percentLife > 0f)
{
Expand Down

0 comments on commit 2a5d423

Please sign in to comment.