move status display to the top right

This commit is contained in:
yuni 2024-04-15 02:42:23 +02:00
parent e47e175fc5
commit a46d29715e

View file

@ -192,10 +192,11 @@ fn setup(
TextSection::new("", style.clone()), TextSection::new("", style.clone()),
TextSection::new("", style.clone()), // Target TextSection::new("", style.clone()), // Target
]).with_style(Style { ]).with_style(Style {
position_type: PositionType::Absolute,
top: Val::VMin(2.0), top: Val::VMin(2.0),
left: Val::VMin(3.0), right: Val::VMin(3.0),
..default() ..default()
}); }).with_text_justify(JustifyText::Right);
bundle_fps.visibility = visibility; bundle_fps.visibility = visibility;
commands.spawn(( commands.spawn((
GaugesText, GaugesText,