using System; using System.Text; using ColdMint.scripts.contribute; using ColdMint.scripts.utils; using Godot; namespace ColdMint.scripts.loader.uiLoader; /// /// UI loader for the main menu /// 主菜单的UI加载器 /// public partial class MainMenuLoader : UiLoaderTemplate { private Button? _startGameButton; private Label? _copyrightLabel; private StringBuilder? _copyrightBuilder; private PackedScene? _gameScene; private PackedScene? _contributor; private PackedScene? _levelGraphEditor; private Label? _sloganLabel; private Label? _versionLabel; private Button? _levelGraphEditorButton; private LinkButton? _contributorButton; public override void InitializeData() { _gameScene = GD.Load("res://scenes/game.tscn"); _contributor = GD.Load("res://scenes/contributor.tscn"); _levelGraphEditor = GD.Load("res://scenes/levelGraphEditor.tscn"); } public override void InitializeUi() { _contributorButton = GetNode("VBoxContainer2/ContributorButton"); _startGameButton = GetNode