Skip to content

Commit

Permalink
Add choice inspector plugin.
Browse files Browse the repository at this point in the history
This will help modifying choices in the inspector.
  • Loading branch information
AnidemDex committed Nov 27, 2021
1 parent 09d9f6f commit fd18ce3
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions addons/textalog/events/dialog/choice_inspector.gd
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
extends EditorInspectorPlugin

const InspectorTools = preload("res://addons/textalog/core/inspector_tools.gd")

var plugin_script:EditorPlugin
var editor_inspector:EditorInspector
var editor_gui:Control

var ObjClass = load("res://addons/textalog/events/dialog/choice.gd")

func can_handle(object: Object) -> bool:
return object is ObjClass

func parse_category(object: Object, category: String) -> void:
if not editor_inspector.has_method("get_category_instance"):
return


func parse_property(object: Object, type: int, path: String, hint: int, hint_text: String, usage: int) -> bool:
return false

0 comments on commit fd18ce3

Please sign in to comment.