]> Untitled Git - wolf-seeking-sheep.git/blob - addons/dialogic/Editor/Inspector/inspector_plugin.gd
Updated export config options
[wolf-seeking-sheep.git] / addons / dialogic / Editor / Inspector / inspector_plugin.gd
1 @tool
2 extends EditorInspectorPlugin
3
4
5 func _can_handle(object: Object) -> bool:
6         return true
7
8
9 func _parse_property(object: Object, type: Variant.Type, name: String, hint_type: PropertyHint, hint_string: String, usage_flags: int, wide: bool) -> bool:
10         if type == TYPE_OBJECT and hint_type == PROPERTY_HINT_RESOURCE_TYPE:
11                 if hint_string == "DialogicTimeline":
12                         var editor: EditorProperty = load("res://addons/dialogic/Editor/Inspector/timeline_inspector_field.gd").new()
13                         add_property_editor(name, editor)
14                         return true
15         return false