mirror of
https://github.com/Noratrieb/game-wip-dontplay.git
synced 2026-01-15 20:25:00 +01:00
More graphics, live reloading of textures
This commit is contained in:
parent
f31add5218
commit
cee7652e09
7 changed files with 10 additions and 1 deletions
|
|
@ -7,6 +7,7 @@ use crate::{
|
|||
math::{px_per_frame_to_km_h, WorldPos},
|
||||
res::Res,
|
||||
stringfmt::LengthDisp,
|
||||
texture_atlas::AtlasBundle,
|
||||
tiles::tiledb_edit_ui::tiledb_edit_ui,
|
||||
};
|
||||
|
||||
|
|
@ -87,6 +88,10 @@ fn debug_panel_ui(
|
|||
debug.tiledb_edit
|
||||
}
|
||||
});
|
||||
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(ui, |ui| {
|
||||
gamedebug_core::for_each_imm(|info| match info {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue