We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0d90c15 + a66846a commit 7ac2a2bCopy full SHA for 7ac2a2b
addons/block_code/ui/blocks/block/block.gd
@@ -214,7 +214,13 @@ func _to_string():
214
215
216
func _get_tooltip(at_position: Vector2) -> String:
217
- return definition.description if definition else ""
+ if not definition:
218
+ return ""
219
+
220
+ if definition.variant_type == Variant.Type.TYPE_NIL:
221
+ return definition.description
222
223
+ return "{description}\n\nType: [b]{type}[/b]".format({"description": definition.description, "type": type_string(definition.variant_type)})
224
225
226
func _make_custom_tooltip(for_text) -> Control:
0 commit comments