Adding a lobby scene #34

Merged
tipragot merged 13 commits from lobby-menu into main 2024-02-10 18:07:50 +00:00
Showing only changes of commit c6b2299ff1 - Show all commits

View file

@ -1,7 +1,7 @@
//! The lobby menu of the game. //! The lobby menu of the game.
use bevy::prelude::*; use bevy::prelude::*;
use bevy_egui::{EguiContexts, egui}; use bevy_egui::{egui, EguiContexts};
use crate::GameState; use crate::GameState;
@ -18,10 +18,7 @@ impl Plugin for LobbyPlugin {
} }
/// Display the UI of the menu to host a game or join one. /// Display the UI of the menu to host a game or join one.
fn lobby_ui( fn lobby_ui(mut ctx: EguiContexts, mut next_state: ResMut<NextState<GameState>>) {
mut ctx: EguiContexts,
mut next_state: ResMut<NextState<GameState>>,
) {
egui::CentralPanel::default().show(ctx.ctx_mut(), |ui| { egui::CentralPanel::default().show(ctx.ctx_mut(), |ui| {
ui.heading("Border Wars"); ui.heading("Border Wars");