summaryrefslogtreecommitdiff
path: root/engine/src/ui/view/world.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2026-11-30 19:16:50 +0100
committerHampusM <hampus@hampusmat.com>2026-11-30 19:16:50 +0100
commitfdae90635c663bd97694cf170da5fe152a9033b7 (patch)
treee9d2a6b6036caddd887ac75ee6f4dd2fefc016b0 /engine/src/ui/view/world.rs
parent312c697500022317f1984602953d36c48f5722a9 (diff)
fix(engine): show type names in world ui view's add component popup
Diffstat (limited to 'engine/src/ui/view/world.rs')
-rw-r--r--engine/src/ui/view/world.rs8
1 files 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,