summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);