Skip to content

Commit

Permalink
Fix Warnings for Unfound Ordering Labels
Browse files Browse the repository at this point in the history
  • Loading branch information
zicklag committed Jul 11, 2022
1 parent 418cb0c commit f938fac
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/ui.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use bevy::{prelude::*, utils::HashMap, window::WindowId};
use bevy_egui::{
egui::{self, style::Margin},
EguiContext, EguiInput, EguiPlugin, EguiSettings, EguiSystem,
EguiContext, EguiInput, EguiPlugin, EguiSettings,
};
use bevy_fluent::Localization;
use iyes_loopless::prelude::*;
Expand All @@ -25,12 +25,7 @@ pub struct UIPlugin;
impl Plugin for UIPlugin {
fn build(&self, app: &mut App) {
app.add_plugin(EguiPlugin)
.add_system(
handle_menu_input
.run_if_resource_exists::<GameMeta>()
.after(EguiSystem::ProcessInput)
.before(EguiSystem::BeginFrame),
)
.add_system(handle_menu_input.run_if_resource_exists::<GameMeta>())
.add_enter_system(GameState::MainMenu, spawn_main_menu_background)
.add_exit_system(GameState::MainMenu, despawn_main_menu_background)
.add_system(hud::render_hud.run_in_state(GameState::InGame))
Expand Down

0 comments on commit f938fac

Please sign in to comment.