From 249b937f688f4506ecac6e0bd6614eb983b4d916 Mon Sep 17 00:00:00 2001 From: hut Date: Wed, 8 May 2024 06:42:45 +0200 Subject: [PATCH] hide suit integrity gauge --- src/hud.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/hud.rs b/src/hud.rs index c7481f8..09e96f3 100644 --- a/src/hud.rs +++ b/src/hud.rs @@ -101,7 +101,7 @@ enum Gauge { Health, Power, Oxygen, - Integrity, + //Integrity, } #[derive(Resource)] @@ -344,7 +344,7 @@ fn setup( ("sprites/gauge_heart.png", Gauge::Health), ("sprites/gauge_battery.png", Gauge::Power), ("sprites/gauge_o2.png", Gauge::Oxygen), - ("sprites/gauge_suit.png", Gauge::Integrity), + //("sprites/gauge_suit.png", Gauge::Integrity), ]; let icon_size = 24.0; let gauge_bar_padding_left = 4.0; @@ -447,7 +447,7 @@ fn setup( style: Style { width: Val::Percent(30.0), height: Val::Percent(100.0), - bottom: Val::VMin(SPEEDOMETER_HEIGHT + 3.0), + bottom: Val::VMin(11.0), left: Val::VMin(4.0), align_items: AlignItems::End, overflow: Overflow::clip(), @@ -722,7 +722,7 @@ fn update_gauges( let value: f32 = match gauge { Gauge::Health => hp.current / hp.max, Gauge::Oxygen => (suit.oxygen / suit.oxygen_max).powf(0.5), - Gauge::Integrity => suit.integrity, + //Gauge::Integrity => suit.integrity, Gauge::Power => battery.power / battery.capacity, }; if value < 0.5 {