M client/src/api/game/mod.rs => client/src/api/game/mod.rs +1 -1
@@ 50,7 50,7 @@ pub struct Action {
pub command: Command,
}
-#[derive(Deserialize_repr, Clone, PartialEq)]
+#[derive(Debug, Deserialize_repr, Clone, PartialEq)]
#[repr(u8)]
pub enum GameState {
Forming = 0,
M client/src/plugins/game/ui/mod.rs => client/src/plugins/game/ui/mod.rs +7 -1
@@ 34,11 34,17 @@ pub fn ui(
ui.separator();
- egui::CollapsingHeader::new("Details")
+ egui::CollapsingHeader::new("Users")
.default_open(true)
.show(ui, |ui| {
ui.label(format!("Host: {}", game.host.as_ref().unwrap().username));
ui.label(format!("Guest: {}", game.guest.as_ref().unwrap().username));
});
+
+ egui::CollapsingHeader::new("State")
+ .default_open(true)
+ .show(ui, |ui| {
+ ui.label(format!("Game: {:?}", game.state));
+ });
});
}