using ColdMint.scripts.levelGraphEditor; using Godot; namespace ColdMint.scripts.loader.uiLoader; /// /// Level graph editor /// 关卡图编辑器 /// public partial class LevelGraphEditorLoader : UiLoaderTemplate { private GraphEdit? _graphEdit; /// /// Button to display the room creation panel. /// 用于展示房间创建面板的按钮。 /// private Button? _showCreateRoomPanelButton; private PackedScene? _roomNodeScene; private Panel? _createOrEditorPanel; private Button? _hideCreateRoomPanelButton; private LineEdit? _roomNameLineEdit; private LineEdit? _roomDescriptionLineEdit; private Button? _createRoomButton; public override void InitializeData() { base.InitializeData(); _roomNodeScene = (PackedScene)GD.Load("res://prefab/ui/RoomNode.tscn"); } public override void InitializeUi() { base.InitializeUi(); _graphEdit = GetNode("GraphEdit"); _showCreateRoomPanelButton = GetNode