From a46d29715e6bd126c2edbfbb1201a98384c7a03e Mon Sep 17 00:00:00 2001 From: hut Date: Mon, 15 Apr 2024 02:42:23 +0200 Subject: [PATCH] move status display to the top right --- src/hud.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/hud.rs b/src/hud.rs index aea4e69..6c432ef 100644 --- a/src/hud.rs +++ b/src/hud.rs @@ -192,10 +192,11 @@ fn setup( TextSection::new("", style.clone()), TextSection::new("", style.clone()), // Target ]).with_style(Style { + position_type: PositionType::Absolute, top: Val::VMin(2.0), - left: Val::VMin(3.0), + right: Val::VMin(3.0), ..default() - }); + }).with_text_justify(JustifyText::Right); bundle_fps.visibility = visibility; commands.spawn(( GaugesText,