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 bbe3a983c5 - Show all commits

View file

@ -14,7 +14,7 @@ impl Plugin for LobbyPlugin {
}
}
/// Display the UI of the menu to host a game or join one.
/// Display the UI of the lobby.
fn lobby_ui(mut ctx: EguiContexts, mut next_scene: ResMut<NextState<CurrentScene>>) {
egui::CentralPanel::default().show(ctx.ctx_mut(), |ui| {
ui.heading("Border Wars");
@ -24,6 +24,7 @@ fn lobby_ui(mut ctx: EguiContexts, mut next_scene: ResMut<NextState<CurrentScene
ui.label("Game created");
ui.horizontal(|ui| {
ui.label("Game ID: ");
// TODO : get the game ID and display it.
ui.label("connection_string");
});