From b0a0fe077aa7102645780866ff8760e8fe034656 Mon Sep 17 00:00:00 2001 From: Sofia Date: Sat, 25 Jul 2026 23:49:45 +0300 Subject: [PATCH] Remove unused imports --- godot/scenes/ui/credits.tscn | 2 ++ rust/src/game_settings.rs | 4 +--- rust/src/ui/credits.rs | 2 +- rust/src/ui/settings.rs | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/godot/scenes/ui/credits.tscn b/godot/scenes/ui/credits.tscn index cc03efc..c426c0a 100644 --- a/godot/scenes/ui/credits.tscn +++ b/godot/scenes/ui/credits.tscn @@ -8,6 +8,8 @@ credits_container = NodePath("panel/scroll_container/v_box_container") anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 +offset_right = -6.0 +offset_bottom = -21.0 grow_horizontal = 2 grow_vertical = 2 diff --git a/rust/src/game_settings.rs b/rust/src/game_settings.rs index b30a711..e347a2f 100644 --- a/rust/src/game_settings.rs +++ b/rust/src/game_settings.rs @@ -4,14 +4,12 @@ use std::{ }; use godot::{ - classes::{AudioBusLayout, AudioServer, FileAccess, file_access::ModeFlags}, + classes::{AudioServer, FileAccess, file_access::ModeFlags}, prelude::*, tools::get_autoload_by_name, }; use serde::{Deserialize, Serialize}; -use crate::ui::settings::Setting::MusicVolume; - pub const NETWORK_SINGLETON_NAME: &str = "GameSettingsGlobal"; pub const MASTER_BUS: &str = "Master"; diff --git a/rust/src/ui/credits.rs b/rust/src/ui/credits.rs index b5f197b..cee81df 100644 --- a/rust/src/ui/credits.rs +++ b/rust/src/ui/credits.rs @@ -3,7 +3,7 @@ use godot::{ prelude::*, }; -use crate::credits::{Credit, CreditPerson, Credits}; +use crate::credits::{CreditPerson, Credits}; const CREDITS: &'static str = include_str!("../../../credits.toml"); diff --git a/rust/src/ui/settings.rs b/rust/src/ui/settings.rs index 5bdc87c..7285c5e 100644 --- a/rust/src/ui/settings.rs +++ b/rust/src/ui/settings.rs @@ -2,7 +2,7 @@ use std::collections::HashMap; use godot::{ classes::{ - Control, GridContainer, IPanel, IPanelContainer, Label, LineEdit, Panel, PanelContainer, + Control, GridContainer, IPanelContainer, Label, LineEdit, PanelContainer, control::SizeFlags, }, prelude::*,