[+] CustomCameraId (#66)

* [+] CustomCameraId

* [F] Map CameraType to the correct Camera IDs using enum

* [+] GameInfo Utils

* [+] CustomCameraId Add ChimeCamera Support

* [+] Decide whether to print a CameraList based on the Config
This commit is contained in:
WYH2004
2024-10-17 02:26:44 +08:00
committed by GitHub
parent 903da8732d
commit 0cab18b9b5
5 changed files with 154 additions and 0 deletions

View File

@@ -12,6 +12,7 @@ namespace AquaMai
public UtilsConfig Utils { get; set; } = new();
public TimeSavingConfig TimeSaving { get; set; } = new();
public WindowStateConfig WindowState { get; set; } = new();
public CustomCameraIdConfig CustomCameraId { get; set; } = new();
public TouchSensitivityConfig TouchSensitivity { get; set; } = new();
public CustomKeyMapConfig CustomKeyMap { get; set; } = new();
@@ -96,6 +97,16 @@ namespace AquaMai
public int Height { get; set; }
}
public class CustomCameraIdConfig
{
public bool Enable { get; set; }
public bool PrintCameraList { get; set; } = false;
public int LeftQrCamera { get; set; } = 0;
public int RightQrCamera { get; set; } = 0;
public int PhotoCamera { get; set; } = 0;
public int ChimeCamera { get; set; } = 0;
}
public class TouchSensitivityConfig
{
public bool Enable { get; set; }