feat: vendor dialogue manager v3

This commit is contained in:
Rijad Zuzo
2026-08-12 20:10:54 +02:00
parent ea00f60165
commit 758d240438
128 changed files with 16176 additions and 3 deletions
@@ -0,0 +1,17 @@
@tool
class_name DMInspectorPlugin extends EditorInspectorPlugin
func _can_handle(object: Object) -> bool:
if object is GDScript: return false
if not object is Node and not object is Resource: return false
if "name" in object and object.name == "Dialogue Manager": return false
return true
func _parse_property(object: Object, type, name: String, hint_type: PropertyHint, hint_string: String, usage_flags: int, wide: bool) -> bool:
if hint_string == "DialogueResource" or ("dialogue" in name.to_lower() and hint_string == "Resource"):
add_property_editor(name, DMDialogueEditorProperty.new())
return true
return false