初次提交
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
## 游戏设计器插件入口(EditorPlugin)
|
||||
## 在编辑器底部面板添加「🎮 游戏设计器」,整合 法术/敌人/波次/Core/平衡 编辑器。
|
||||
@tool
|
||||
extends EditorPlugin
|
||||
|
||||
var _panel: Control = null
|
||||
|
||||
func _enter_tree() -> void:
|
||||
_panel = preload("res://addons/game_designer/designer_panel.gd").new()
|
||||
_panel.name = "🎮 游戏设计器"
|
||||
add_control_to_bottom_panel(_panel, "🎮 游戏设计器")
|
||||
|
||||
func _exit_tree() -> void:
|
||||
if _panel:
|
||||
remove_control_from_bottom_panel(_panel)
|
||||
_panel.free()
|
||||
_panel = null
|
||||
Reference in New Issue
Block a user