mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-16 06:25:24 +00:00
Add: Option to use paid coins to queue up quickly in cloud games
This commit is contained in:
parent
1031bf3fae
commit
dd06b287a5
@ -7,6 +7,7 @@
|
||||
"GameLanguage": "auto",
|
||||
"ScreenshotMethod": "scrcpy",
|
||||
"ControlMethod": "MaaTouch",
|
||||
"CloudPriorQueue": false,
|
||||
"AdbRestart": false
|
||||
},
|
||||
"EmulatorInfo": {
|
||||
|
@ -63,6 +63,10 @@
|
||||
],
|
||||
"display": "hide"
|
||||
},
|
||||
"CloudPriorQueue": {
|
||||
"type": "checkbox",
|
||||
"value": false
|
||||
},
|
||||
"AdbRestart": {
|
||||
"type": "checkbox",
|
||||
"value": false
|
||||
|
@ -45,6 +45,7 @@ Emulator:
|
||||
ControlMethod:
|
||||
value: MaaTouch
|
||||
option: [ minitouch, MaaTouch ]
|
||||
CloudPriorQueue: false
|
||||
AdbRestart: false
|
||||
EmulatorInfo:
|
||||
Emulator:
|
||||
|
@ -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`
|
||||
|
@ -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": ""
|
||||
|
@ -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": ""
|
||||
|
@ -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"
|
||||
|
@ -149,6 +149,10 @@
|
||||
"minitouch": "minitouch",
|
||||
"MaaTouch": "MaaTouch"
|
||||
},
|
||||
"CloudPriorQueue": {
|
||||
"name": "在云游戏中使用星云币快速排队",
|
||||
"help": ""
|
||||
},
|
||||
"AdbRestart": {
|
||||
"name": "在检测不到设备的时候尝试重启adb",
|
||||
"help": ""
|
||||
|
@ -149,6 +149,10 @@
|
||||
"minitouch": "minitouch",
|
||||
"MaaTouch": "MaaTouch"
|
||||
},
|
||||
"CloudPriorQueue": {
|
||||
"name": "在雲端遊戲中使用星雲幣快速排隊",
|
||||
"help": ""
|
||||
},
|
||||
"AdbRestart": {
|
||||
"name": "在檢測不到設備的時候嘗試重啟adb",
|
||||
"help": ""
|
||||
|
@ -252,8 +252,12 @@ class LoginAndroidCloud(ModuleBase):
|
||||
if title == '连接中断':
|
||||
self.device.click(self.xpath(XPath.POPUP_CONFIRM))
|
||||
continue
|
||||
if self.appear_then_click(XPath.QUEUE_SELECT_NORMAL):
|
||||
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
|
||||
|
||||
# Disable net state display
|
||||
if self._cloud_net_state_appear():
|
||||
|
Loading…
Reference in New Issue
Block a user