AquaDX/AquaMai/Config.cs

156 lines
6.8 KiB
C#
Raw Normal View History

2024-02-07 15:38:36 +08:00
using System.Diagnostics.CodeAnalysis;
2024-10-02 14:41:20 +08:00
using AquaMai.CustomKeyMap;
2024-02-07 15:38:36 +08:00
namespace AquaMai
{
[SuppressMessage("ReSharper", "ClassNeverInstantiated.Global")]
public class Config
{
2024-09-17 06:25:52 +08:00
public UXConfig UX { get; set; } = new();
public CheatConfig Cheat { get; set; } = new();
public FixConfig Fix { get; set; } = new();
public UtilsConfig Utils { get; set; } = new();
public TimeSavingConfig TimeSaving { get; set; } = new();
2024-10-01 15:50:00 +08:00
public WindowStateConfig WindowState { get; set; } = new();
2024-09-17 06:25:52 +08:00
public TouchSensitivityConfig TouchSensitivity { get; set; } = new();
2024-10-02 14:41:20 +08:00
public CustomKeyMapConfig CustomKeyMap { get; set; } = new();
2024-02-07 18:21:46 +08:00
2024-02-07 18:16:07 +08:00
public class CheatConfig
{
public bool TicketUnlock { get; set; }
public bool MapUnlock { get; set; }
2024-06-19 20:55:31 +08:00
public bool UnlockUtage { get; set; }
2024-02-07 18:16:07 +08:00
}
2024-02-07 18:21:46 +08:00
2024-02-07 15:38:36 +08:00
public class UXConfig
{
2024-09-30 01:26:54 +08:00
public string Locale { get; set; }
2024-02-07 16:53:13 +08:00
public bool SinglePlayer { get; set; }
2024-10-02 19:03:30 +08:00
public bool HideMask { get; set; }
2024-09-06 23:15:53 +08:00
public bool LoadAssetsPng { get; set; }
public bool LoadJacketPng { get; set; }
2024-04-23 18:51:49 +08:00
public bool LoadAssetBundleWithoutManifest { get; set; }
public bool QuickSkip { get; set; }
2024-05-15 21:01:19 +08:00
public bool RandomBgm { get; set; }
public bool DemoMaster { get; set; }
2024-05-21 21:17:30 +08:00
public bool ExtendTimer { get; set; }
public bool ImmediateSave { get; set; }
2024-06-26 03:11:56 +08:00
public bool LoadLocalBga { get; set; }
public bool TestProof { get; set; }
public bool HideSelfMadeCharts { get; set; }
2024-10-02 23:28:33 +08:00
public bool CustomFont { get; set; }
2024-09-24 20:17:27 +08:00
public string CustomVersionString { get; set; } = "";
public string CustomPlaceName { get; set; } = "";
public string ExecOnIdle { get; set; } = "";
public string ExecOnEntry { get; set; } = "";
2024-02-07 15:38:36 +08:00
}
2024-07-09 16:30:30 +08:00
public class FixConfig
{
public bool SkipVersionCheck { get; set; }
2024-07-09 18:11:06 +08:00
public bool RemoveEncryption { get; set; }
public bool ForceAsServer { get; set; } = true;
public bool ForceFreePlay { get; set; } = true;
2024-09-17 02:34:38 +08:00
public bool ForcePaidPlay { get; set; }
public int ExtendNotesPool { get; set; }
2024-10-02 00:52:37 +08:00
public bool FrameRateLock { get; set; }
2024-10-02 23:28:33 +08:00
public bool FontFix { get; set; }
2024-07-09 16:30:30 +08:00
}
2024-09-11 00:56:15 +08:00
public class UtilsConfig
{
public bool LogUserId { get; set; }
2024-09-17 04:13:51 +08:00
public float JudgeAdjustA { get; set; }
public float JudgeAdjustB { get; set; }
public int TouchDelay { get; set; }
2024-09-28 16:30:19 +08:00
public bool PractiseMode { get; set; }
public bool SelectionDetail { get; set; }
2024-10-01 01:00:32 +08:00
public bool ShowNetErrorDetail { get; set; }
2024-10-02 00:52:37 +08:00
public bool FrameRateDisplay { get; set; }
2024-09-11 00:56:15 +08:00
}
2024-09-17 06:25:52 +08:00
public class TimeSavingConfig
{
public bool SkipWarningScreen { get; set; }
public bool ImproveLoadSpeed { get; set; }
public bool SkipToMusicSelection { get; set; }
public bool SkipEventInfo { get; set; }
public bool IWontTapOrSlideVigorously { get; set; }
public bool SkipGameOverScreen { get; set; }
2024-09-27 19:33:37 +08:00
public bool SkipTrackStart { get; set; }
}
2024-10-01 15:50:00 +08:00
public class WindowStateConfig
{
public bool Enable { get; set; }
public bool Windowed { get; set; }
public int Width { get; set; }
public int Height { get; set; }
}
2024-09-17 06:25:52 +08:00
public class TouchSensitivityConfig
{
public bool Enable { get; set; }
public byte A1 { get; set; } = 40;
public byte A2 { get; set; } = 40;
public byte A3 { get; set; } = 40;
public byte A4 { get; set; } = 40;
public byte A5 { get; set; } = 40;
public byte A6 { get; set; } = 40;
public byte A7 { get; set; } = 40;
public byte A8 { get; set; } = 40;
public byte B1 { get; set; } = 20;
public byte B2 { get; set; } = 20;
public byte B3 { get; set; } = 20;
public byte B4 { get; set; } = 20;
public byte B5 { get; set; } = 20;
public byte B6 { get; set; } = 20;
public byte B7 { get; set; } = 20;
public byte B8 { get; set; } = 20;
public byte C1 { get; set; } = 20;
public byte C2 { get; set; } = 20;
public byte D1 { get; set; } = 20;
public byte D2 { get; set; } = 20;
public byte D3 { get; set; } = 20;
public byte D4 { get; set; } = 20;
public byte D5 { get; set; } = 20;
public byte D6 { get; set; } = 20;
public byte D7 { get; set; } = 20;
public byte D8 { get; set; } = 20;
public byte E1 { get; set; } = 20;
public byte E2 { get; set; } = 20;
public byte E3 { get; set; } = 20;
public byte E4 { get; set; } = 20;
public byte E5 { get; set; } = 20;
public byte E6 { get; set; } = 20;
public byte E7 { get; set; } = 20;
public byte E8 { get; set; } = 20;
}
2024-10-02 00:52:37 +08:00
public class CustomKeyMapConfig
{
public bool Enable { get; set; }
2024-10-02 14:41:20 +08:00
public KeyCodeID Test { get; set; } = (KeyCodeID)115;
public KeyCodeID Service { get; set; } = (KeyCodeID)5;
public KeyCodeID Button1_1P { get; set; } = (KeyCodeID)67;
public KeyCodeID Button2_1P { get; set; } = (KeyCodeID)49;
public KeyCodeID Button3_1P { get; set; } = (KeyCodeID)48;
public KeyCodeID Button4_1P { get; set; } = (KeyCodeID)47;
public KeyCodeID Button5_1P { get; set; } = (KeyCodeID)68;
public KeyCodeID Button6_1P { get; set; } = (KeyCodeID)70;
public KeyCodeID Button7_1P { get; set; } = (KeyCodeID)45;
public KeyCodeID Button8_1P { get; set; } = (KeyCodeID)61;
public KeyCodeID Select_1P { get; set; } = (KeyCodeID)25;
public KeyCodeID Button1_2P { get; set; } = (KeyCodeID)80;
public KeyCodeID Button2_2P { get; set; } = (KeyCodeID)81;
public KeyCodeID Button3_2P { get; set; } = (KeyCodeID)78;
public KeyCodeID Button4_2P { get; set; } = (KeyCodeID)75;
public KeyCodeID Button5_2P { get; set; } = (KeyCodeID)74;
public KeyCodeID Button6_2P { get; set; } = (KeyCodeID)73;
public KeyCodeID Button7_2P { get; set; } = (KeyCodeID)76;
public KeyCodeID Button8_2P { get; set; } = (KeyCodeID)79;
public KeyCodeID Select_2P { get; set; } = (KeyCodeID)84;
2024-10-02 00:52:37 +08:00
}
2024-02-07 15:38:36 +08:00
}
2024-02-07 18:21:46 +08:00
}