red_dragon_pon/addons/numeric-modifiers/numeric_mods_inspector.gd
2025-07-26 18:32:16 +05:00

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