mirror of
https://github.com/LorisYounger/VPet.git
synced 2024-08-30 18:42:36 +00:00
88 lines
2.7 KiB
C#
88 lines
2.7 KiB
C#
using LinePutScript.Dictionary;
|
|
using LinePutScript.Localization.WPF;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows;
|
|
using VPet_Simulator.Core;
|
|
using VPet_Simulator.Windows.Interface;
|
|
|
|
namespace VPet_Simulator.Windows;
|
|
|
|
public partial class MainWindow
|
|
{//主窗口部分数据
|
|
|
|
public List<Food> Foods { get; } = new List<Food>();
|
|
/// <summary>
|
|
/// 版本号
|
|
/// </summary>
|
|
public int version { get; } = 11005;
|
|
/// <summary>
|
|
/// 版本号
|
|
/// </summary>
|
|
public string Version => $"{version / 10000}.{version % 10000 / 100}.{version % 100:00}";
|
|
|
|
public List<LowText> LowFoodText { get; set; } = new List<LowText>();
|
|
|
|
public List<LowText> LowDrinkText { get; set; } = new List<LowText>();
|
|
|
|
public List<SelectText> SelectTexts { get; set; } = new List<SelectText>();
|
|
|
|
public List<ClickText> ClickTexts { get; set; } = new List<ClickText>();
|
|
|
|
public GameSave_v2 GameSavesData { get; set; }
|
|
|
|
public readonly string ModPath = ExtensionValue.BaseDirectory + @"\mod";
|
|
public bool IsSteamUser { get; }
|
|
public LPS_D Args { get; }
|
|
public string PrefixSave { get; } = "";
|
|
private string prefixsavetrans = null;
|
|
public string PrefixSaveTrans
|
|
{
|
|
get
|
|
{
|
|
if (prefixsavetrans == null)
|
|
{
|
|
if (PrefixSave == "")
|
|
prefixsavetrans = "";
|
|
else
|
|
prefixsavetrans = '-' + PrefixSave.TrimStart('-').Translate();
|
|
}
|
|
return prefixsavetrans;
|
|
}
|
|
}
|
|
internal Setting Set { get; set; }
|
|
ISetting IMainWindow.Set => Set;
|
|
|
|
public List<PetLoader> Pets { get; set; } = new List<PetLoader>();
|
|
internal List<CoreMOD> CoreMODs = new List<CoreMOD>();
|
|
public GameCore Core { get; set; } = new GameCore();
|
|
public List<Window> Windows { get; set; } = new List<Window>();
|
|
public Main Main { get; set; }
|
|
public UIElement TalkBox;
|
|
public winGameSetting winSetting { get; set; }
|
|
public winBetterBuy winBetterBuy { get; set; }
|
|
|
|
public winWorkMenu winWorkMenu { get; set; }
|
|
//public ChatGPTClient CGPTClient;
|
|
public ImageResources ImageSources { get; set; } = new ImageResources();
|
|
/// <summary>
|
|
/// 所有三方插件
|
|
/// </summary>
|
|
public List<MainPlugin> Plugins { get; } = new List<MainPlugin>();
|
|
/// <summary>
|
|
/// 所有字体(位置)
|
|
/// </summary>
|
|
public List<IFont> Fonts { get; } = new List<IFont>();
|
|
/// <summary>
|
|
/// 所有主题
|
|
/// </summary>
|
|
public List<Theme> Themes = new List<Theme>();
|
|
/// <summary>
|
|
/// 当前启用主题
|
|
/// </summary>
|
|
public Theme Theme = null;
|
|
}
|