From ec15640c24bbeaefa149b7f88eb527d28ac498cc Mon Sep 17 00:00:00 2001 From: HampusM Date: Thu, 3 Dec 2026 15:55:54 +0100 Subject: feat(engine): display module paths of components in world ui view --- engine/src/ui/view/world.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'engine/src') diff --git a/engine/src/ui/view/world.rs b/engine/src/ui/view/world.rs index 3478917..80f850c 100644 --- a/engine/src/ui/view/world.rs +++ b/engine/src/ui/view/world.rs @@ -302,6 +302,20 @@ fn create_component_widgets( frame.text(&component_info.name); + frame.same_line(); + + let normal_text_line_height = frame.text_line_height(); + + frame.with_font_and_size(None, 12.0, || { + let small_text_line_height = frame.text_line_height(); + + frame.set_cursor_pos_y( + frame.cursor_pos_y() + (normal_text_line_height - small_text_line_height), + ); + + frame.text_disabled(component_info.module_path); + }); + if let Some(component_type) = component_info.type_reflection { let item_type = ItemType::Reflected(component_type); -- cgit v1.2.3-18-g5258