Skip to content

Commit 3bcb5e7

Browse files
inspector_plugins.rst: add new "wide" parameter to _parse_property
Godot 4.0 added a new parameter to EditorInspectorPlugin._parse_property. This was updated in the C# version of the tutorial, but not the gdscript version Co-authored-by: A Thousand Ships <[email protected]>
1 parent 2347ba8 commit 3bcb5e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tutorials/plugins/editor/inspector_plugins.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,12 +123,12 @@ specifically add :ref:`class_EditorProperty`-based controls.
123123
return true
124124

125125

126-
func _parse_property(object, type, path, hint, hint_text, usage):
126+
func _parse_property(object, type, name, hint_type, hint_string, usage_flags, wide):
127127
# We handle properties of type integer.
128128
if type == TYPE_INT:
129129
# Create an instance of the custom property editor and register
130130
# it to a specific property path.
131-
add_property_editor(path, RandomIntEditor.new())
131+
add_property_editor(name, RandomIntEditor.new())
132132
# Inform the editor to remove the default property editor for
133133
# this property type.
134134
return true

0 commit comments

Comments
 (0)