mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Fix more miscellaneous oddities around the class reference
This commit is contained in:
@@ -168,7 +168,7 @@
|
||||
The returned node must be of type [Control] or Control-derived. It can have child nodes of any type. It is freed when the tooltip disappears, so make sure you always provide a new instance (if you want to use a pre-existing node from your scene tree, you can duplicate it and pass the duplicated instance). When [code]null[/code] or a non-Control node is returned, the default tooltip will be used instead.
|
||||
The returned node will be added as child to a [PopupPanel], so you should only provide the contents of that panel. That [PopupPanel] can be themed using [method Theme.set_stylebox] for the type [code]"TooltipPanel"[/code] (see [member tooltip_text] for an example).
|
||||
[b]Note:[/b] The tooltip is shrunk to minimal size. If you want to ensure it's fully visible, you might want to set its [member custom_minimum_size] to some non-zero value.
|
||||
[b]Note:[/b] The node (and any relevant children) should be [member CanvasItem.visible] when returned, otherwise, the viewport that instantiates it will not be able to calculate its minimum size reliably.
|
||||
[b]Note:[/b] The node (and any relevant children) should have their [member CanvasItem.visible] set to [code]true[/code] when returned, otherwise, the viewport that instantiates it will not be able to calculate its minimum size reliably.
|
||||
[b]Example:[/b] Use a constructed node as a tooltip:
|
||||
[codeblocks]
|
||||
[gdscript]
|
||||
@@ -559,7 +559,7 @@
|
||||
<method name="grab_click_focus">
|
||||
<return type="void" />
|
||||
<description>
|
||||
Creates an [InputEventMouseButton] that attempts to click the control. If the event is received, the control acquires focus.
|
||||
Creates an [InputEventMouseButton] that attempts to click the control. If the event is received, the control gains focus.
|
||||
[codeblocks]
|
||||
[gdscript]
|
||||
func _process(delta):
|
||||
|
||||
Reference in New Issue
Block a user