13 lines
403 B
GDScript
13 lines
403 B
GDScript
@tool
|
|
extends EditorInspectorPlugin
|
|
|
|
class_name NumericModsInspector
|
|
|
|
func _can_handle(object: Object) -> bool:
|
|
return true
|
|
|
|
func _parse_property(object: Object, type: Variant.Type, name: String, hint_type: PropertyHint, hint_string: String, usage_flags: int, wide: bool) -> bool:
|
|
if hint_string == "NumericModifiers":
|
|
add_property_editor(name,NumericModsProperty.new())
|
|
return true
|
|
return false
|