You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-02 16:48:55 +00:00
Doc: Add missing func keyword to EditorDock._update_layout example
The code snippet demonstrating method overriding for _update_layout was missing the func keyword, which is required in GDScript method declarations.
This commit is contained in:
@@ -56,7 +56,7 @@
|
|||||||
<description>
|
<description>
|
||||||
Implement this method to handle the layout switching for this dock. [param layout] is one of the [enum DockLayout] constants.
|
Implement this method to handle the layout switching for this dock. [param layout] is one of the [enum DockLayout] constants.
|
||||||
[codeblock]
|
[codeblock]
|
||||||
_update_layout(layout):
|
func _update_layout(layout):
|
||||||
box_container.vertical = (layout == DOCK_LAYOUT_VERTICAL)
|
box_container.vertical = (layout == DOCK_LAYOUT_VERTICAL)
|
||||||
[/codeblock]
|
[/codeblock]
|
||||||
</description>
|
</description>
|
||||||
|
|||||||
Reference in New Issue
Block a user