mirror of
https://github.com/0O0o0oOoO00/Alas.git
synced 2026-05-14 17:49:25 +08:00
Fix: GG Handler won't miss necessary click
This commit is contained in:
@@ -44,7 +44,8 @@ class gg_handler(base):
|
||||
if base.appear(self, BUTTON_GG_CONFIRM, offset=30):
|
||||
logger.info('Entered GG')
|
||||
break
|
||||
self.device.sleep(1)
|
||||
self.device.click(BUTTON_GG_ENTER_POS)
|
||||
self.device.sleep(0.3)
|
||||
|
||||
def _gg_enter_script(self):
|
||||
"""
|
||||
@@ -145,9 +146,11 @@ class gg_handler(base):
|
||||
def _gg_exit(self):
|
||||
while 1:
|
||||
self.device.screenshot()
|
||||
if not base.appear(self, BUTTON_GG_CONFIRM, offset=30, threshold=0.9):
|
||||
return 1
|
||||
self.device.click(BUTTON_GG_EXIT_POS)
|
||||
self.device.sleep(0.3)
|
||||
if not base.appear(self, BUTTON_GG_CONFIRM, offset=10):
|
||||
logger.info('GG Panel Exited')
|
||||
return 1
|
||||
|
||||
|
||||
def gg_run(self):
|
||||
|
||||
Reference in New Issue
Block a user