add proper padding to HUD

This commit is contained in:
yuni 2024-03-18 00:42:10 +01:00
parent 49414989bd
commit 0cf1c4102f

View file

@ -133,8 +133,7 @@ fn setup(
..default()
}
),
TextSection::new(
"<log>",
TextSection::from_style(
TextStyle {
font: asset_server.load(FONT),
font_size: settings.font_size_hud,
@ -142,7 +141,11 @@ fn setup(
..default()
}
),
]);
]).with_style(Style {
top: Val::VMin(3.0),
left: Val::VMin(3.0),
..default()
});
bundle_fps.visibility = visibility;
commands.spawn((
bundle_fps,