AquaDX/AquaMai/UX/Config.cs

131 lines
4.8 KiB
C#
Raw Normal View History

using AquaMai.Attributes;
namespace AquaMai.UX;
public class Config
{
[ConfigComment(
en: "Language for mod UI, supports en and zh",
zh: "Mod 界面的语言,支持 en 和 zh")]
public string Locale { get; set; } = "";
[ConfigComment(
en: "Single player: Show 1P only, at the center of the screen",
zh: "单人模式,不显示 2P")]
public bool SinglePlayer { get; set; }
[ConfigComment(
en: "Remove the circle mask in the game",
zh: "移除遮罩")]
public bool HideMask { get; set; }
[ConfigComment(
en: "Load Jacket image from folder \"LocalAssets\" and filename \"{MusicID}.png\" for self-made charts",
zh: "通过游戏目录下 `LocalAssets\\000000歌曲 ID.png` 加载封面,自制谱用")]
public bool LoadAssetsPng { get; set; }
[ConfigComment(
en: "Add \".ab\" image resources without the need of rebuilding a manifest",
zh: """
AssetBundleImages.manifest ab
""")]
public bool LoadAssetBundleWithoutManifest { get; set; }
[ConfigComment(
en: """
Random BGM, put Mai2Cue.{acb,awb} of old version of the game in `LocalAssets\Mai2Cue` and rename them
Do not enable when SinglePlayer is off
""",
zh: """
`LocalAssets\Mai2Cue` Mai2Cue.{acb,awb} BGM BGM
2P 'SinglePlayer'
""")]
public bool RandomBgm { get; set; }
[ConfigComment(
en: "Play \"Master\" difficulty on Demo screen",
zh: "在闲置时的演示画面上播放紫谱而不是绿谱")]
public bool DemoMaster { get; set; }
[ConfigComment(
en: """
Disable timers
Not recommand to enable when SinglePlayer is off
""",
zh: """
'SinglePlayer'
""")]
public bool ExtendTimer { get; set; }
[ConfigComment(
en: "Save immediate after playing a song",
zh: "打完一首歌的时候立即向服务器保存成绩")]
public bool ImmediateSave { get; set; }
[ConfigComment(
en: """
Use the png jacket above as BGA if BGA is not found for self-made charts
Use together with `LoadJacketPng`
""",
zh: """
dat BGA
`LoadJacketPng`
""")]
public bool LoadLocalBga { get; set; }
[ConfigComment(
en: """
Place font.ttf in the LocalAssets directory to replace the game's global font
Cannot be used together with FontFix
""",
zh: """
LocalAssets font.ttf
FontFix 使
""")]
public bool CustomFont { get; set; }
[ConfigComment(
en: "Map touch actions to buttons",
zh: "映射触摸操作至实体按键")]
public bool TouchToButtonInput { get; set; }
[ConfigComment(
en: "Cannot be used together with HanabiFix",
zh: """
HanabiFix 使
""")]
public bool HideHanabi { get; set; }
[ConfigComment(
en: "Set the version string displayed at the top-right corner of the screen",
zh: "把右上角的版本更改为自定义文本")]
public string CustomVersionString { get; set; } = "";
[ConfigComment(
en: """
Custom shop name in photo
Also enable shop name display in SDGA
""",
zh: """
SDGA
""")]
public string CustomPlaceName { get; set; } = "";
[ConfigComment(
en: "Execute some command on game idle",
zh: """
""")]
public string ExecOnIdle { get; set; } = "";
[ConfigComment(
en: "Execute some command on game start",
zh: "在玩家登录的时候执行指定的命令脚本")]
public string ExecOnEntry { get; set; } = "";
}