mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 08:38:20 +08:00
Add: Navbar module
Opt: Replace sidebar mechanism to Navbar for equipment and guild modules
This commit is contained in:
@@ -38,10 +38,12 @@ class GuildOperations(GuildBase):
|
||||
current, remain, total = GUILD_OPERATIONS_PROGRESS.ocr(self.device.image)
|
||||
threshold = total * self.config.GUILD_OPERATIONS_JOIN_THRESHOLD
|
||||
if current <= threshold:
|
||||
logger.info(f'Joining Operation, current progress less than threshold ({threshold:.2f})')
|
||||
logger.info('Joining Operation, current progress less than '
|
||||
f'threshold ({threshold:.2f})')
|
||||
self.device.click(GUILD_OPERATIONS_JOIN)
|
||||
else:
|
||||
logger.info(f'Refrain from joining operation, current progress exceeds threshold ({threshold:.2f})')
|
||||
logger.info('Refrain from joining operation, current progress exceeds '
|
||||
f'threshold ({threshold:.2f})')
|
||||
self.device.click(GUILD_OPERATIONS_CLICK_SAFE_AREA)
|
||||
continue
|
||||
if self.handle_popup_single('FLEET_UPDATED'):
|
||||
@@ -434,7 +436,7 @@ class GuildOperations(GuildBase):
|
||||
return True
|
||||
|
||||
def guild_operations(self):
|
||||
if not self.guild_sidebar_ensure(1):
|
||||
if not self.guild_side_navbar_ensure(bottom=1):
|
||||
logger.info('Operations sidebar not ensured, try again on next reward loop')
|
||||
return None
|
||||
self._guild_operations_ensure()
|
||||
|
||||
Reference in New Issue
Block a user