diff options
| author | HampusM <hampus@hampusmat.com> | 2026-12-03 15:55:54 +0100 |
|---|---|---|
| committer | HampusM <hampus@hampusmat.com> | 2026-12-03 15:55:54 +0100 |
| commit | ec15640c24bbeaefa149b7f88eb527d28ac498cc (patch) | |
| tree | d6476718d558873375ea5f6cfd9b6a7e215fd5a9 | |
| parent | b35d5288c3169de38fd13a0c3000c251cd8f8195 (diff) | |
feat(engine): display module paths of components in world ui view
| -rw-r--r-- | engine/src/ui/view/world.rs | 14 |
1 files changed, 14 insertions, 0 deletions
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); |
