mirror of
https://github.com/stan220/godot-docs.git
synced 2026-09-08 17:28:58 +00:00
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 <96648715+AThousandShips@users.noreply.github.com>
This commit is contained in:
co-authored by
A Thousand Ships
parent
2347ba8aee
commit
3bcb5e76f3
@@ -123,12 +123,12 @@ specifically add :ref:`class_EditorProperty`-based controls.
|
||||
return true
|
||||
|
||||
|
||||
func _parse_property(object, type, path, hint, hint_text, usage):
|
||||
func _parse_property(object, type, name, hint_type, hint_string, usage_flags, wide):
|
||||
# We handle properties of type integer.
|
||||
if type == TYPE_INT:
|
||||
# Create an instance of the custom property editor and register
|
||||
# it to a specific property path.
|
||||
add_property_editor(path, RandomIntEditor.new())
|
||||
add_property_editor(name, RandomIntEditor.new())
|
||||
# Inform the editor to remove the default property editor for
|
||||
# this property type.
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user