DEVELOPMENT ENVIRONMENT

~liljamo/deck-builder

d25f83666b2ff59856f97ba2e68ee2b4069cd12a — Jonni Liljamo 1 year, 10 months ago 7aa8676
feat(sdbclient): a few details on the lobby pages
1 files changed, 7 insertions(+), 0 deletions(-)

M sdbclient/src/plugins/menu/play/ui.rs
M sdbclient/src/plugins/menu/play/ui.rs => sdbclient/src/plugins/menu/play/ui.rs +7 -0
@@ 184,11 184,18 @@ pub(super) fn show(
                    });
                }
                PlayMenuUIState::InLobbyHost => {
                    if ui.button("Start").clicked() {
                        // patch state to "in-progress"
                        todo!();
                    }

                    if ui.button("Back").clicked() {
                        rtdmenu.play_menu_ui_state = PlayMenuUIState::Main
                    }
                }
                PlayMenuUIState::InLobbyGuest => {
                    ui.label(egui::RichText::new(format!("Host: {}", rtdmenu.cur_game.as_ref().unwrap().host.username)));

                    if ui.button("Back").clicked() {
                        rtdmenu.play_menu_ui_state = PlayMenuUIState::Main
                    }