diff options
| author | HampusM <hampus@hampusmat.com> | 2026-12-03 17:08:27 +0100 |
|---|---|---|
| committer | HampusM <hampus@hampusmat.com> | 2026-12-03 17:08:27 +0100 |
| commit | 082ac81dcdff07c5c9dd534867148f8a1bd9015f (patch) | |
| tree | 020249dce2c68cf1eb722cf1ce8082a4da0bb92b /engine/src/ui/view | |
| parent | ffba21217887d36b91113ab8e956b238387303d6 (diff) | |
feat(engine): only show sole component of sole entities in world ui view
Diffstat (limited to 'engine/src/ui/view')
| -rw-r--r-- | engine/src/ui/view/world.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/engine/src/ui/view/world.rs b/engine/src/ui/view/world.rs index 7e6c9a5..5f2f0a5 100644 --- a/engine/src/ui/view/world.rs +++ b/engine/src/ui/view/world.rs @@ -111,14 +111,15 @@ pub fn show( for ent_handle in &sole_query.into_flexible_query() { let _tok = frame.push_id(ent_handle.uid().id().cast_signed()); - create_entity_widgets( + create_component_widgets( frame, - popup_state, - icon_textures, &ent_handle, + ent_handle.uid(), world, &mut actions, ); + + frame.spacing(); } let popup_closed = match popup_state { |
