16 lines
334 B
GDScript
16 lines
334 B
GDScript
@tool
|
|
extends EditorInspectorPlugin
|
|
|
|
const SLOT_SCENE:= preload("res://addons/reedscene/act/StateDrapSlot.tscn")
|
|
|
|
func _can_handle(object) -> bool:
|
|
return object is ActManager
|
|
|
|
func _parse_begin(object) -> void:
|
|
var root := VBoxContainer.new()
|
|
|
|
var slot := SLOT_SCENE.instantiate()
|
|
root.add_child(slot)
|
|
|
|
add_custom_control(root)
|