mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-16 14:31:16 +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",
|
"GameLanguage": "auto",
|
||||||
"ScreenshotMethod": "scrcpy",
|
"ScreenshotMethod": "scrcpy",
|
||||||
"ControlMethod": "MaaTouch",
|
"ControlMethod": "MaaTouch",
|
||||||
|
"CloudPriorQueue": false,
|
||||||
"AdbRestart": false
|
"AdbRestart": false
|
||||||
},
|
},
|
||||||
"EmulatorInfo": {
|
"EmulatorInfo": {
|
||||||
|
@ -63,6 +63,10 @@
|
|||||||
],
|
],
|
||||||
"display": "hide"
|
"display": "hide"
|
||||||
},
|
},
|
||||||
|
"CloudPriorQueue": {
|
||||||
|
"type": "checkbox",
|
||||||
|
"value": false
|
||||||
|
},
|
||||||
"AdbRestart": {
|
"AdbRestart": {
|
||||||
"type": "checkbox",
|
"type": "checkbox",
|
||||||
"value": false
|
"value": false
|
||||||
|
@ -45,6 +45,7 @@ Emulator:
|
|||||||
ControlMethod:
|
ControlMethod:
|
||||||
value: MaaTouch
|
value: MaaTouch
|
||||||
option: [ minitouch, MaaTouch ]
|
option: [ minitouch, MaaTouch ]
|
||||||
|
CloudPriorQueue: false
|
||||||
AdbRestart: false
|
AdbRestart: false
|
||||||
EmulatorInfo:
|
EmulatorInfo:
|
||||||
Emulator:
|
Emulator:
|
||||||
|
@ -22,6 +22,7 @@ class GeneratedConfig:
|
|||||||
Emulator_GameLanguage = 'auto' # auto, cn, en
|
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_ScreenshotMethod = 'auto' # auto, ADB, ADB_nc, uiautomator2, aScreenCap, aScreenCap_nc, DroidCast, DroidCast_raw, scrcpy, nemu_ipc, ldopengl
|
||||||
Emulator_ControlMethod = 'MaaTouch' # minitouch, MaaTouch
|
Emulator_ControlMethod = 'MaaTouch' # minitouch, MaaTouch
|
||||||
|
Emulator_CloudPriorQueue = False
|
||||||
Emulator_AdbRestart = False
|
Emulator_AdbRestart = False
|
||||||
|
|
||||||
# Group `EmulatorInfo`
|
# Group `EmulatorInfo`
|
||||||
|
@ -149,6 +149,10 @@
|
|||||||
"minitouch": "minitouch",
|
"minitouch": "minitouch",
|
||||||
"MaaTouch": "MaaTouch"
|
"MaaTouch": "MaaTouch"
|
||||||
},
|
},
|
||||||
|
"CloudPriorQueue": {
|
||||||
|
"name": "Use paid coins to queue up quickly in cloud games",
|
||||||
|
"help": ""
|
||||||
|
},
|
||||||
"AdbRestart": {
|
"AdbRestart": {
|
||||||
"name": "Try to restart adb when no device found",
|
"name": "Try to restart adb when no device found",
|
||||||
"help": ""
|
"help": ""
|
||||||
|
@ -149,6 +149,10 @@
|
|||||||
"minitouch": "minitouch",
|
"minitouch": "minitouch",
|
||||||
"MaaTouch": "MaaTouch"
|
"MaaTouch": "MaaTouch"
|
||||||
},
|
},
|
||||||
|
"CloudPriorQueue": {
|
||||||
|
"name": "Utilice monedas pagadas para hacer cola rápidamente en los juegos en la nube",
|
||||||
|
"help": ""
|
||||||
|
},
|
||||||
"AdbRestart": {
|
"AdbRestart": {
|
||||||
"name": "Intentar reiniciar el ADB cuando no se encuentre ninguno.",
|
"name": "Intentar reiniciar el ADB cuando no se encuentre ninguno.",
|
||||||
"help": ""
|
"help": ""
|
||||||
|
@ -149,6 +149,10 @@
|
|||||||
"minitouch": "minitouch",
|
"minitouch": "minitouch",
|
||||||
"MaaTouch": "MaaTouch"
|
"MaaTouch": "MaaTouch"
|
||||||
},
|
},
|
||||||
|
"CloudPriorQueue": {
|
||||||
|
"name": "Emulator.CloudPriorQueue.name",
|
||||||
|
"help": "Emulator.CloudPriorQueue.help"
|
||||||
|
},
|
||||||
"AdbRestart": {
|
"AdbRestart": {
|
||||||
"name": "Emulator.AdbRestart.name",
|
"name": "Emulator.AdbRestart.name",
|
||||||
"help": "Emulator.AdbRestart.help"
|
"help": "Emulator.AdbRestart.help"
|
||||||
|
@ -149,6 +149,10 @@
|
|||||||
"minitouch": "minitouch",
|
"minitouch": "minitouch",
|
||||||
"MaaTouch": "MaaTouch"
|
"MaaTouch": "MaaTouch"
|
||||||
},
|
},
|
||||||
|
"CloudPriorQueue": {
|
||||||
|
"name": "在云游戏中使用星云币快速排队",
|
||||||
|
"help": ""
|
||||||
|
},
|
||||||
"AdbRestart": {
|
"AdbRestart": {
|
||||||
"name": "在检测不到设备的时候尝试重启adb",
|
"name": "在检测不到设备的时候尝试重启adb",
|
||||||
"help": ""
|
"help": ""
|
||||||
|
@ -149,6 +149,10 @@
|
|||||||
"minitouch": "minitouch",
|
"minitouch": "minitouch",
|
||||||
"MaaTouch": "MaaTouch"
|
"MaaTouch": "MaaTouch"
|
||||||
},
|
},
|
||||||
|
"CloudPriorQueue": {
|
||||||
|
"name": "在雲端遊戲中使用星雲幣快速排隊",
|
||||||
|
"help": ""
|
||||||
|
},
|
||||||
"AdbRestart": {
|
"AdbRestart": {
|
||||||
"name": "在檢測不到設備的時候嘗試重啟adb",
|
"name": "在檢測不到設備的時候嘗試重啟adb",
|
||||||
"help": ""
|
"help": ""
|
||||||
|
@ -252,6 +252,10 @@ class LoginAndroidCloud(ModuleBase):
|
|||||||
if title == '连接中断':
|
if title == '连接中断':
|
||||||
self.device.click(self.xpath(XPath.POPUP_CONFIRM))
|
self.device.click(self.xpath(XPath.POPUP_CONFIRM))
|
||||||
continue
|
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):
|
if self.appear_then_click(XPath.QUEUE_SELECT_NORMAL):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user