mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-18 08:03:47 +00:00
Dialogue System
This commit is contained in:
parent
77765a581e
commit
1fa77f0c03
690 changed files with 46698 additions and 14 deletions
15
addons/dialogic/Editor/Inspector/inspector_plugin.gd
Normal file
15
addons/dialogic/Editor/Inspector/inspector_plugin.gd
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
@tool
|
||||
extends EditorInspectorPlugin
|
||||
|
||||
|
||||
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 type == TYPE_OBJECT and hint_type == PROPERTY_HINT_RESOURCE_TYPE:
|
||||
if hint_string == "DialogicTimeline":
|
||||
var editor: EditorProperty = load("res://addons/dialogic/Editor/Inspector/timeline_inspector_field.gd").new()
|
||||
add_property_editor(name, editor)
|
||||
return true
|
||||
return false
|
||||
Loading…
Add table
Add a link
Reference in a new issue