summaryrefslogtreecommitdiff
path: root/engine/src/ui/view
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2026-12-03 15:55:54 +0100
committerHampusM <hampus@hampusmat.com>2026-12-03 15:55:54 +0100
commitec15640c24bbeaefa149b7f88eb527d28ac498cc (patch)
treed6476718d558873375ea5f6cfd9b6a7e215fd5a9 /engine/src/ui/view
parentb35d5288c3169de38fd13a0c3000c251cd8f8195 (diff)
feat(engine): display module paths of components in world ui view
Diffstat (limited to 'engine/src/ui/view')
-rw-r--r--engine/src/ui/view/world.rs14
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);