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
e662cc9172
commit
b8bb77d708
1 changed files with 1 additions and 16 deletions
17
src/debug.rs
17
src/debug.rs
|
|
@ -37,22 +37,7 @@ fn debug_panel_ui(
|
||||||
ui.add(egui::DragValue::new(&mut vol));
|
ui.add(egui::DragValue::new(&mut vol));
|
||||||
res.surf_music.set_volume(vol);
|
res.surf_music.set_volume(vol);
|
||||||
ui.separator();
|
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();
|
ui.separator();
|
||||||
egui::ScrollArea::vertical()
|
egui::ScrollArea::vertical()
|
||||||
.show(
|
.show(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue