make health settings always have the same size

This commit is contained in:
Furior 2024-09-06 22:09:24 +07:00
parent 4e0a17a9c1
commit a534112520

View file

@ -598,6 +598,10 @@ impl App {
GameMode::LocalHealth, GameMode::LocalHealth,
"Local health", "Local health",
); );
ui.scope(|ui| {
ui.set_height(60.0);
match game_settings.game_mode { match game_settings.game_mode {
GameMode::SharedHealth => { GameMode::SharedHealth => {
ui.label("Health is shared, but scales with player count."); ui.label("Health is shared, but scales with player count.");
@ -609,6 +613,8 @@ impl App {
ui.label("There is a respawn mechanic."); ui.label("There is a respawn mechanic.");
} }
} }
});
ui.add_space(20.0); ui.add_space(20.0);
ui.label(tr("connect_settings_debug")); ui.label(tr("connect_settings_debug"));
ui.checkbox( ui.checkbox(