From d63ad5b0d7173a0e2b963a3b4d629ff97db4bc35 Mon Sep 17 00:00:00 2001 From: hut Date: Tue, 19 Mar 2024 06:14:25 +0100 Subject: [PATCH] move chat box to bottom left --- src/hud.rs | 6 +++--- src/settings.rs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/hud.rs b/src/hud.rs index 6916b3d..00a57c2 100644 --- a/src/hud.rs +++ b/src/hud.rs @@ -237,12 +237,12 @@ fn setup( ), ]).with_style(Style { position_type: PositionType::Absolute, - top: Val::VMin(2.0), - right: Val::VMin(6.0), + bottom: Val::VMin(2.0), + left: Val::VMin(4.0), //bottom: Val::VMin(40.0), //left: Val::VMin(30.0), ..default() - }).with_text_justify(JustifyText::Right); + }).with_text_justify(JustifyText::Left); commands.spawn(( bundle_chatbox, ChatText, diff --git a/src/settings.rs b/src/settings.rs index 541f8ce..bd8d756 100644 --- a/src/settings.rs +++ b/src/settings.rs @@ -28,7 +28,7 @@ impl Default for Settings { fn default() -> Self { Settings { mute_sfx: false, - mute_music: false, + mute_music: true, volume_sfx: 100, volume_music: 100, font_size_hud: 32.0,