add proper padding to HUD
This commit is contained in:
parent
49414989bd
commit
0cf1c4102f
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue