-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This will help modifying choices in the inspector.
- Loading branch information
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |