From 0ebc416d1de00b37dd4e19cc67f7c407bea8a4fd Mon Sep 17 00:00:00 2001 From: "Travis J. Gutjahr" <33809229+Squirrelies@users.noreply.github.com> Date: Wed, 20 Feb 2019 20:58:17 -0600 Subject: [PATCH] Fixed poison gif not animating. --- RE2REmakeSRT/MainUI.cs | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/RE2REmakeSRT/MainUI.cs b/RE2REmakeSRT/MainUI.cs index bdf683d..ec38740 100644 --- a/RE2REmakeSRT/MainUI.cs +++ b/RE2REmakeSRT/MainUI.cs @@ -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)