mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-16 05:47:23 +08:00
Add: handle_popup_single, shared asset GET_MISSION is used in other
UI pages such as guild
This commit is contained in:
@@ -333,6 +333,12 @@ class GuildOperations(GuildBase):
|
|||||||
if self.appear_then_click(GUILD_BOSS_ENTER, interval=3):
|
if self.appear_then_click(GUILD_BOSS_ENTER, interval=3):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
if self.handle_popup_single('FLEET_UPDATED'):
|
||||||
|
logger.info('Fleet composition altered, may still be dispatch-able. However'
|
||||||
|
'fellow guild members have updated their support line up.'
|
||||||
|
'Suggestion: Enable Boss Recommend')
|
||||||
|
continue
|
||||||
|
|
||||||
if self.appear(GUILD_DISPATCH_FLEET, interval=3):
|
if self.appear(GUILD_DISPATCH_FLEET, interval=3):
|
||||||
# Button does not appear greyed out even
|
# Button does not appear greyed out even
|
||||||
# when empty fleet composition
|
# when empty fleet composition
|
||||||
|
|||||||
@@ -80,6 +80,16 @@ class InfoHandler(ModuleBase):
|
|||||||
else:
|
else:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
def handle_popup_single(self, name=''):
|
||||||
|
if self.appear(GET_MISSION, offset=self._popup_offset, interval=2):
|
||||||
|
prev_name = GET_MISSION.name
|
||||||
|
GET_MISSION.name = POPUP_CONFIRM.name + '_' + name
|
||||||
|
self.device.click(GET_MISSION)
|
||||||
|
GET_MISSION.name = prev_name
|
||||||
|
return True
|
||||||
|
|
||||||
|
return False
|
||||||
|
|
||||||
def handle_urgent_commission(self, save_get_items=None):
|
def handle_urgent_commission(self, save_get_items=None):
|
||||||
"""
|
"""
|
||||||
Args:
|
Args:
|
||||||
|
|||||||
Reference in New Issue
Block a user