ui layout testing

This commit is contained in:
2025-01-04 14:28:54 -05:00
parent 74450bdcd3
commit 327e4b2739
2 changed files with 40 additions and 11 deletions

View File

@@ -14,11 +14,11 @@ impl Plugin for EditorPlugin {
fn build(&self, app: &mut App) {
app.init_resource::<UIState>();
app.add_systems(PostUpdate, prepare_image.run_if(in_state(GeneratorState::SpawnMap)));
app.add_systems(
Update,
(render_map_ui, update_map_render, asset_reloaded).run_if(in_state(GeneratorState::Idle)),
);
// app.add_systems(PostUpdate, prepare_image.run_if(in_state(GeneratorState::SpawnMap)));
// app.add_systems(
// Update,
// (render_map_ui, update_map_render, asset_reloaded).run_if(in_state(GeneratorState::Idle)),
// );
}
}
@@ -69,7 +69,7 @@ fn asset_reloaded(
let mut rebuild = false;
for event in asset_events.read() {
match event {
AssetEvent::Modified {..}=> rebuild = true,
AssetEvent::Modified { .. } => rebuild = true,
_ => (),
}
}