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