This commit is contained in:
nora 2023-04-18 12:12:28 +02:00
parent abd857aed4
commit a6c80f6cd4

View file

@ -24,7 +24,9 @@ fn main() {
}
pub(crate) fn do_debug_ui(ctx: &egui::Context, mut game: &mut GameState) {
egui::Window::new("Debug (F12)").show(ctx, |ui| {
show(&|ui| {
::egui_inspect::UiExt::property(ui, "game", &mut game, &mut 0);
});
}
fn show(f: &dyn FnMut(&mut egui::Ui)) {}