mirror of
https://github.com/Noratrieb/game-wip-dontplay.git
synced 2026-01-16 20:35:02 +01:00
more
This commit is contained in:
parent
a6c80f6cd4
commit
15e4c6e93e
1 changed files with 2 additions and 6 deletions
|
|
@ -16,14 +16,10 @@ impl App {
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let mut app = App::new();
|
let mut app = App::new();
|
||||||
app.sf_egui
|
do_debug_ui(&mut app.game);
|
||||||
.do_frame(|ctx| {
|
|
||||||
do_debug_ui(ctx, &mut app.game);
|
|
||||||
})
|
|
||||||
.unwrap();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub(crate) fn do_debug_ui(ctx: &egui::Context, mut game: &mut GameState) {
|
pub(crate) fn do_debug_ui(mut game: &mut GameState) {
|
||||||
show(&|ui| {
|
show(&|ui| {
|
||||||
::egui_inspect::UiExt::property(ui, "game", &mut game, &mut 0);
|
::egui_inspect::UiExt::property(ui, "game", &mut game, &mut 0);
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue