Skip to content

armgit / godot

Public Imported from GitHub
0

Godot Engine – Multi-platform 2D and 3D game engine

Show enum integer values in inspector tooltips

kleonc73fc3493539a
diff --git a/editor/doc/editor_help.cpp b/editor/doc/editor_help.cpp
index 6d7c3174091..19fc1eb4b64 100644
--- a/editor/doc/editor_help.cpp
+++ b/editor/doc/editor_help.cpp
@@ -3737,7 +3737,7 @@ EditorHelpBit::HelpData EditorHelpBit::_get_property_help_data(const StringName
if (item_descr.is_empty()) {
item_descr = "[color=<EditorHelpBitCommentColor>][i]" + TTR("No description available.") + "[/i][/color]";
}
- current.description += vformat("\n[b]%s:[/b] %s", item_name, item_descr);
+ current.description += vformat("\n[b]%s[/b] [color=<EditorHelpBitCommentColor>]=[/color] %s[color=<EditorHelpBitCommentColor>]:[/color] %s", item_name, constant.value, item_descr);
}
}
current.description = current.description.lstrip("\n");