From 54cb36d8cbf29807238bcb85e58d2c596d2fa01d Mon Sep 17 00:00:00 2001 From: hut Date: Sat, 30 Mar 2024 22:35:00 +0100 Subject: [PATCH] cleanup hud --- src/hud.rs | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/src/hud.rs b/src/hud.rs index 5e63661..05b41b3 100644 --- a/src/hud.rs +++ b/src/hud.rs @@ -183,7 +183,7 @@ fn setup( } ), TextSection::new( - "\nAdren水平 ", + "\nAdrenaline水平 ", TextStyle { font: asset_server.load(FONT), font_size: settings.font_size_hud, @@ -200,15 +200,6 @@ fn setup( ..default() } ), - TextSection::new( - "\n雌激素水平 172pg/mL", - TextStyle { - font: asset_server.load(FONT), - font_size: settings.font_size_hud, - color: Color::GRAY, - ..default() - }, - ), TextSection::new( "\nProximity 警告 ", TextStyle { @@ -264,7 +255,7 @@ fn setup( } ), TextSection::new( - "\n\n", + "\n☢ HAZARD\n\n", TextStyle { font: asset_server.load(FONT), font_size: settings.font_size_hud, @@ -415,12 +406,12 @@ fn update( let adrenaline = lifeform.adrenaline * 990.0 + 10.0; text.sections[7].value = format!("{adrenaline:.0}pg/mL"); let all_actors = query_all_actors.iter().len(); - text.sections[10].value = format!("{all_actors:.0}"); + text.sections[9].value = format!("{all_actors:.0}"); let integrity = suit.integrity * 100.0; - text.sections[12].value = format!("{integrity:.0}%"); + text.sections[11].value = format!("{integrity:.0}%"); let speed = cam_v.length(); let kmh = speed * 60.0 * 60.0 / 1000.0; - text.sections[14].value = format!("{speed:.0}m/s | {kmh:.0}km/h"); + text.sections[13].value = format!("{speed:.0}m/s | {kmh:.0}km/h"); } }