1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 10:58:21 +08:00

Add: Claim mail rewards

This commit is contained in:
LmeSzinc
2024-07-18 22:20:50 +08:00
parent ccd19417ec
commit 06143434a8
30 changed files with 235 additions and 1 deletions

View File

@@ -284,7 +284,7 @@ page_main_white.link(button=MAIN_GOTO_BUILD_WHITE, destination=page_build)
page_mail = Page(MAIL_CHECK)
page_mail.link(button=GOTO_MAIN_WHITE, destination=page_main)
# Mail enter varies from different UI
# page_main.link(button=MAIL_ENTER_WHITE, destination=page_mail)
page_main_white.link(button=MAIL_ENTER_WHITE, destination=page_mail)
# RPG event (raid_20240328)
# page_rpg_stage = Page(RPG_GOTO_STORY)

View File

@@ -16,6 +16,8 @@ class Setting:
self.main: ModuleBase = main
# Reset options before setting any options
self.reset_first = True
# Deselect active options
self.need_deselect = False
# (setting, opiton_name): option_button
# {
# ('sort', 'rarity'): Button(),
@@ -108,6 +110,9 @@ class Setting:
active = self.is_option_active(option_button)
if enable and not active:
click.append(option_button)
if self.need_deselect:
if not enable and active:
click.append(option_button)
return click
def _set_execute(self, **kwargs):