1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-05-13 10:00:20 +08:00

Fix: [TW] Enter event 20201126

This commit is contained in:
LmeSzinc
2026-05-11 19:10:32 +08:00
parent 8cb4384a22
commit 0f679ce3e8
3 changed files with 9 additions and 1 deletions

View File

@@ -1,9 +1,11 @@
from module.base.button import Button
from module.campaign.assets import EVENT_20201126_PT_ICON, EVENT_20201126_DETAIL, EVENT_20201126_DETAIL_CHECK, EVENT_20201126_DETAIL_WHITE, EVENT_20201126_ENTRANCE
from module.campaign.assets import EVENT_20201126_DETAIL, EVENT_20201126_DETAIL_CHECK, EVENT_20201126_DETAIL_WHITE, \
EVENT_20201126_ENTRANCE, EVENT_20201126_ENTRANCE_TEMP, EVENT_20201126_PT_ICON
from module.campaign.campaign_base import CampaignBase as CampaignBase_
from module.exception import CampaignNameError
from module.logger import logger
from module.ui.page import page_campaign_menu, page_event, page_main_white
from module.ui_white.assets import MAIN_GOTO_CAMPAIGN_WHITE
EVENT_ANIMATION = Button(area=(49, 229, 119, 400), color=(118, 215, 240), button=(49, 229, 119, 400),
name='EVENT_ANIMATION')
@@ -24,6 +26,11 @@ class CampaignBase(CampaignBase_):
return True
self.ui_ensure(page_campaign_menu)
if self.is_event_entrance_available():
if self.config.SERVER == 'tw':
self.ui_click(EVENT_20201126_ENTRANCE_TEMP, check_button=EVENT_20201126_PT_ICON,
appear_button=MAIN_GOTO_CAMPAIGN_WHITE, offset=(40, 20))
return True
self.ui_goto_main()
if self.ui_page_appear(page_main_white):
self.ui_click(EVENT_20201126_DETAIL_WHITE, check_button=EVENT_20201126_DETAIL_CHECK)