Add: Option to use paid coins to queue up quickly in cloud games

This commit is contained in:
LmeSzinc 2024-10-20 22:38:25 +08:00
parent 1031bf3fae
commit dd06b287a5
10 changed files with 33 additions and 2 deletions

View File

@ -7,6 +7,7 @@
"GameLanguage": "auto",
"ScreenshotMethod": "scrcpy",
"ControlMethod": "MaaTouch",
"CloudPriorQueue": false,
"AdbRestart": false
},
"EmulatorInfo": {

View File

@ -63,6 +63,10 @@
],
"display": "hide"
},
"CloudPriorQueue": {
"type": "checkbox",
"value": false
},
"AdbRestart": {
"type": "checkbox",
"value": false

View File

@ -45,6 +45,7 @@ Emulator:
ControlMethod:
value: MaaTouch
option: [ minitouch, MaaTouch ]
CloudPriorQueue: false
AdbRestart: false
EmulatorInfo:
Emulator:

View File

@ -22,6 +22,7 @@ class GeneratedConfig:
Emulator_GameLanguage = 'auto' # auto, cn, en
Emulator_ScreenshotMethod = 'auto' # auto, ADB, ADB_nc, uiautomator2, aScreenCap, aScreenCap_nc, DroidCast, DroidCast_raw, scrcpy, nemu_ipc, ldopengl
Emulator_ControlMethod = 'MaaTouch' # minitouch, MaaTouch
Emulator_CloudPriorQueue = False
Emulator_AdbRestart = False
# Group `EmulatorInfo`

View File

@ -149,6 +149,10 @@
"minitouch": "minitouch",
"MaaTouch": "MaaTouch"
},
"CloudPriorQueue": {
"name": "Use paid coins to queue up quickly in cloud games",
"help": ""
},
"AdbRestart": {
"name": "Try to restart adb when no device found",
"help": ""

View File

@ -149,6 +149,10 @@
"minitouch": "minitouch",
"MaaTouch": "MaaTouch"
},
"CloudPriorQueue": {
"name": "Utilice monedas pagadas para hacer cola rápidamente en los juegos en la nube",
"help": ""
},
"AdbRestart": {
"name": "Intentar reiniciar el ADB cuando no se encuentre ninguno.",
"help": ""

View File

@ -149,6 +149,10 @@
"minitouch": "minitouch",
"MaaTouch": "MaaTouch"
},
"CloudPriorQueue": {
"name": "Emulator.CloudPriorQueue.name",
"help": "Emulator.CloudPriorQueue.help"
},
"AdbRestart": {
"name": "Emulator.AdbRestart.name",
"help": "Emulator.AdbRestart.help"

View File

@ -149,6 +149,10 @@
"minitouch": "minitouch",
"MaaTouch": "MaaTouch"
},
"CloudPriorQueue": {
"name": "在云游戏中使用星云币快速排队",
"help": ""
},
"AdbRestart": {
"name": "在检测不到设备的时候尝试重启adb",
"help": ""

View File

@ -149,6 +149,10 @@
"minitouch": "minitouch",
"MaaTouch": "MaaTouch"
},
"CloudPriorQueue": {
"name": "在雲端遊戲中使用星雲幣快速排隊",
"help": ""
},
"AdbRestart": {
"name": "在檢測不到設備的時候嘗試重啟adb",
"help": ""

View File

@ -252,6 +252,10 @@ class LoginAndroidCloud(ModuleBase):
if title == '连接中断':
self.device.click(self.xpath(XPath.POPUP_CONFIRM))
continue
if self.config.Emulator_CloudPriorQueue:
if self.appear_then_click(XPath.QUEUE_SELECT_PRIOR):
continue
else:
if self.appear_then_click(XPath.QUEUE_SELECT_NORMAL):
continue