From fdae90635c663bd97694cf170da5fe152a9033b7 Mon Sep 17 00:00:00 2001 From: HampusM Date: Mon, 30 Nov 2026 19:16:50 +0100 Subject: fix(engine): show type names in world ui view's add component popup --- engine/src/ui/view/world.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/engine/src/ui/view/world.rs b/engine/src/ui/view/world.rs index 0c23d5f..ba4f388 100644 --- a/engine/src/ui/view/world.rs +++ b/engine/src/ui/view/world.rs @@ -727,7 +727,7 @@ fn show_add_component_popup( .iter() .filter(|&(_, searchable_comp_info, _)| { searchable_comp_info - .name + .type_name .contains(&add_component_popup_state.search_text) }) .cloned() @@ -748,7 +748,7 @@ fn show_add_component_popup( &mut add_component_popup_state.selected_search_result, &add_component_popup_state.searched_components, &|(_, comp_info, comp_user_creatable)| ListBoxItem { - label: comp_info.name.as_ref().into(), + label: comp_info.type_name.into(), disabled: matches!( comp_user_creatable, ComponentUserCreatable::No { .. } @@ -799,7 +799,7 @@ fn show_add_component_popup( create_item_title_widget( frame, - &new_component_info.name, + &new_component_info.type_name, &ItemType::Reflected(new_component_type), None, ); @@ -815,7 +815,7 @@ fn show_add_component_popup( ItemRef::Mutable(&mut **new_component), &mut component_changed, ItemInfo { - title: &new_component_info.name, + title: &new_component_info.type_name, type_name: None, ty: item_type, is_read_only: false, -- cgit v1.2.3-18-g5258