Skip to content
This repository has been archived by the owner on Apr 25, 2021. It is now read-only.

Commit

Permalink
Fixed poison gif not animating.
Browse files Browse the repository at this point in the history
  • Loading branch information
Squirrelies committed Feb 21, 2019
1 parent 049f532 commit 0ebc416
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions RE2REmakeSRT/MainUI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -193,21 +193,30 @@ private void playerHealthStatus_Paint(object sender, PaintEventArgs e)
else if (Program.gameMem.PlayerCurrentHealth >= 801) // Fine (Green)
{
e.Graphics.DrawString(Program.gameMem.PlayerCurrentHealth.ToString(), healthFont, Brushes.LawnGreen, 15, 37, stdStringFormat);
playerHealthStatus.ThreadSafeSetHealthImage(Properties.Resources.FINE, "FINE");

if (!Program.gameMem.PlayerPoisoned)
playerHealthStatus.ThreadSafeSetHealthImage(Properties.Resources.FINE, "FINE");
else
playerHealthStatus.ThreadSafeSetHealthImage(Properties.Resources.POISON, "POISON");
}
else if (Program.gameMem.PlayerCurrentHealth <= 800 && Program.gameMem.PlayerCurrentHealth >= 361) // Caution (Yellow)
{
e.Graphics.DrawString(Program.gameMem.PlayerCurrentHealth.ToString(), healthFont, Brushes.Goldenrod, 15, 37, stdStringFormat);
playerHealthStatus.ThreadSafeSetHealthImage(Properties.Resources.CAUTION_YELLOW, "CAUTION_YELLOW");

if (!Program.gameMem.PlayerPoisoned)
playerHealthStatus.ThreadSafeSetHealthImage(Properties.Resources.CAUTION_YELLOW, "CAUTION_YELLOW");
else
playerHealthStatus.ThreadSafeSetHealthImage(Properties.Resources.POISON, "POISON");
}
else if (Program.gameMem.PlayerCurrentHealth <= 360) // Danger (Red)
{
e.Graphics.DrawString(Program.gameMem.PlayerCurrentHealth.ToString(), healthFont, Brushes.Red, 15, 37, stdStringFormat);
playerHealthStatus.ThreadSafeSetHealthImage(Properties.Resources.DANGER, "DANGER");
}

if (Program.gameMem.PlayerPoisoned)
playerHealthStatus.ThreadSafeSetHealthImage(Properties.Resources.POISON, "POISON");
if (!Program.gameMem.PlayerPoisoned)
playerHealthStatus.ThreadSafeSetHealthImage(Properties.Resources.DANGER, "DANGER");
else
playerHealthStatus.ThreadSafeSetHealthImage(Properties.Resources.POISON, "POISON");
}
}

private void playerInfoPanel_Paint(object sender, PaintEventArgs e)
Expand Down

0 comments on commit 0ebc416

Please sign in to comment.