From 193cb6670addf16bb18b76a1badc00f648150d0b Mon Sep 17 00:00:00 2001 From: Alexander Foremny <aforemny@posteo.de> Date: Mon, 18 Mar 2024 07:06:13 +0100 Subject: fix: show health regen in ui --- src/client.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/client.rs') diff --git a/src/client.rs b/src/client.rs index 3679b85..277fc2c 100644 --- a/src/client.rs +++ b/src/client.rs @@ -585,7 +585,11 @@ fn health_indicator_spawn( format!("{health_gained_or_lost}"), TextStyle { font_size: 6., - color: Color::RED, + color: if *health_gained < 0. { + Color::RED + } else { + Color::GREEN + }, ..Default::default() }, ) -- cgit v1.2.3