初次提交

This commit is contained in:
2026-07-20 10:56:52 +08:00
commit 7bcc0026e0
462 changed files with 50191 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
## 法术编辑器插件入口(EditorPlugin
## 在编辑器左下停靠区添加「法术编辑器」面板。
@tool
extends EditorPlugin
var _dock: Control = null
func _enter_tree() -> void:
_dock = preload("res://addons/spell_editor/spell_dock.gd").new()
_dock.name = "法术编辑器"
add_control_to_dock(EditorPlugin.DOCK_SLOT_LEFT_BR, _dock)
func _exit_tree() -> void:
if _dock:
remove_control_from_docks(_dock)
_dock.free()
_dock = null