18 lines
534 B
GDScript
18 lines
534 B
GDScript
## 游戏设计器插件入口(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
|