From 082ac81dcdff07c5c9dd534867148f8a1bd9015f Mon Sep 17 00:00:00 2001 From: HampusM Date: Thu, 3 Dec 2026 17:08:27 +0100 Subject: feat(engine): only show sole component of sole entities in world ui view --- engine/src/ui/view/world.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'engine') 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 { -- cgit v1.2.3-18-g5258