mirror of
https://github.com/Noratrieb/game-wip-dontplay.git
synced 2026-01-14 19:55:02 +01:00
more
This commit is contained in:
parent
b8bb77d708
commit
f35bdb13e2
1 changed files with 16 additions and 1 deletions
17
src/debug.rs
17
src/debug.rs
|
|
@ -37,7 +37,22 @@ fn debug_panel_ui(
|
|||
ui.add(egui::DragValue::new(&mut vol));
|
||||
res.surf_music.set_volume(vol);
|
||||
ui.separator();
|
||||
|
||||
egui::ScrollArea::both()
|
||||
.id_source("insp_scroll")
|
||||
.max_height(240.)
|
||||
.max_width(340.0)
|
||||
.show(
|
||||
ui,
|
||||
|ui| {
|
||||
inspect! {
|
||||
ui, scale, game, debug
|
||||
}
|
||||
},
|
||||
);
|
||||
if ui.button("Reload graphics").clicked() {
|
||||
res.atlas = AtlasBundle::new().unwrap();
|
||||
game.tile_db.update_rects(&res.atlas.rects);
|
||||
}
|
||||
ui.separator();
|
||||
egui::ScrollArea::vertical()
|
||||
.show(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue