Moar fixes and optimizations

This commit is contained in:
2026-09-12 17:10:20 +02:00
parent df18ffa1a7
commit 531ecc1aec
14 changed files with 371 additions and 128 deletions
+1 -4
View File
@@ -1,7 +1,4 @@
use bevy::{
picking::pointer::PointerId,
prelude::*,
};
use bevy::{picking::pointer::PointerId, prelude::*};
use crate::{
AppState,
+1 -3
View File
@@ -1,6 +1,4 @@
use bevy::{
prelude::*, text::FontSourceTemplate,
};
use bevy::{prelude::*, text::FontSourceTemplate};
use crate::{
AppState,
+2 -4
View File
@@ -100,10 +100,8 @@ where
S::scene(props)
}
pub fn build_menu<S>(
existing_menu: Option<Single<Entity, With<MenuMarker>>>,
commands: Commands,
) where
pub fn build_menu<S>(existing_menu: Option<Single<Entity, With<MenuMarker>>>, commands: Commands)
where
S: SceneComponent + Default + Clone + Send + Sync,
{
spawn_menu(
+2 -6
View File
@@ -5,12 +5,8 @@ use crate::{
game_settings::CommonAssets,
match_loading::initiate_match,
menus::{
MenuMarker,
cursor,
match_config::MenuMatchConfig,
spawn_menu,
stage_select::stage_box::StageBox,
style::FGUiStyle,
MenuMarker, cursor, match_config::MenuMatchConfig, spawn_menu,
stage_select::stage_box::StageBox, style::FGUiStyle,
},
stage::manifest::{StageManifest, StageManifestRegistry},
};