diff options
Diffstat (limited to 'engine/src')
| -rw-r--r-- | engine/src/ui/view/world.rs | 8 |
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, |
