Moar fixes and optimizations
This commit is contained in:
@@ -1,7 +1,4 @@
|
||||
use bevy::{
|
||||
picking::pointer::PointerId,
|
||||
prelude::*,
|
||||
};
|
||||
use bevy::{picking::pointer::PointerId, prelude::*};
|
||||
|
||||
use crate::{
|
||||
AppState,
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
use bevy::{
|
||||
prelude::*, text::FontSourceTemplate,
|
||||
};
|
||||
use bevy::{prelude::*, text::FontSourceTemplate};
|
||||
|
||||
use crate::{
|
||||
AppState,
|
||||
|
||||
+2
-4
@@ -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(
|
||||
|
||||
@@ -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},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user