using System; using System.Collections.Generic; using Godot; using Milimoe.FunGame.Core.Api.Utility; using Milimoe.FunGame.Core.Entity; using Milimoe.FunGame.Core.Library.Constant; namespace Milimoe.GodotGame; public partial class SavedNode : PanelContainer { [Export] public int Index = 1; [Export] public bool IsAuto = false; [Export] public Button Button; [Export] public ConfirmationDialog SaveDialog; [Export] public ConfirmationDialog LoadDialog; [Export] public Label SavedName; [Export] public Label SavedTime; [Export] public Label ChapterInGame; [Export] public Label AreaInGame; public Node Parent { get; set; } public bool IsSave { get; set; } = false; public bool HasValue { get; set; } = false; public PluginConfig Config { get; set; } = null; public override void _Ready() { if (IsAuto) { Config ??= new("Saved", $"auto{Index}"); } else { Config ??= new("Saved", Index.ToString()); } Config.LoadConfig(); Button ??= GetNode