Add the main menu #31

Merged
CoCo_Sol merged 25 commits from main-menu into main 2024-02-09 23:42:37 +00:00
2 changed files with 0 additions and 3 deletions
Showing only changes of commit 4fa8e44ae4 - Show all commits

View file

@ -10,9 +10,6 @@ pub struct MenuPlugin;
impl Plugin for MenuPlugin { impl Plugin for MenuPlugin {
fn build(&self, app: &mut App) { fn build(&self, app: &mut App) {
app.add_plugins(EguiPlugin)
.add_systems(Update, menu_ui.run_if(in_state(GameState::Menu)));
println!("{:?}", app.world.resource::<State<GameState>>());
app.add_plugins(EguiPlugin).add_systems( app.add_plugins(EguiPlugin).add_systems(
Update, Update,
menu_ui.run_if(state_exists_and_equals(GameState::Menu)), menu_ui.run_if(state_exists_and_equals(GameState::Menu)),