mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-04-24 09:49:58 +08:00
Add: event entrance for dual event 20201126/20260417
This commit is contained in:
@@ -288,3 +288,4 @@ To add a new event, add a new row in here, and run `python -m module.config.conf
|
||||
| 20260402 | event 20260326 cn | The Vagabond’s Recruitment Plan | - | - | - | 漫遊者招募計劃 |
|
||||
| 20260416 | event 20220915 cn | Violet Tempest Blooming Lycoris | - | - | - | 復刻紫絳槿嵐 |
|
||||
| 20260417 | event 20260417 cn | Vacation Lane – Beachside Brilliance | 假日航线闪耀海滨 | Vacation Lane – Beachside Brilliance | バケーションレーン・きらめく砂浜 | - |
|
||||
| 20260417 | event 20201126 cn | Vacation Lane Rerun | 复刻假日航线 | Vacation Lane Rerun | バケーションレーン(復刻) | - |
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
from module.base.button import Button
|
||||
from module.campaign.assets import 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
|
||||
|
||||
EVENT_ANIMATION = Button(area=(49, 229, 119, 400), color=(118, 215, 240), button=(49, 229, 119, 400),
|
||||
name='EVENT_ANIMATION')
|
||||
@@ -16,6 +18,19 @@ class CampaignBase(CampaignBase_):
|
||||
Mode switch is meaningless.
|
||||
"""
|
||||
|
||||
def ui_goto_event(self):
|
||||
if self.appear(EVENT_20201126_PT_ICON, offset=(20, 20)) and self.ui_page_appear(page_event):
|
||||
logger.info('Already at EVENT_20201126')
|
||||
return True
|
||||
self.ui_ensure(page_campaign_menu)
|
||||
if self.is_event_entrance_available():
|
||||
self.ui_ensure(page_main_white)
|
||||
self.ui_click(EVENT_20201126_ENTRANCE_TEMP,
|
||||
check_button=EVENT_20201126_PT_ICON,
|
||||
appear_button=EVENT_20201126_ENTRANCE_TEMP)
|
||||
return True
|
||||
|
||||
|
||||
@staticmethod
|
||||
def _campaign_separate_name(name):
|
||||
"""
|
||||
|
||||
@@ -1,12 +1,23 @@
|
||||
from module.base.button import Button
|
||||
from module.campaign.assets import EVENT_20260417_PT_ICON
|
||||
from module.campaign.campaign_base import CampaignBase as CampaignBase_
|
||||
from module.logger import logger
|
||||
from module.ui.page import page_campaign_menu, page_event
|
||||
|
||||
EVENT_ANIMATION = Button(area=(49, 229, 119, 400), color=(118, 215, 240), button=(49, 229, 119, 400),
|
||||
name='EVENT_ANIMATION')
|
||||
|
||||
|
||||
class CampaignBase(CampaignBase_):
|
||||
def ui_goto_event(self):
|
||||
if self.appear(EVENT_20260417_PT_ICON, offset=(20, 20)) and self.ui_page_appear(page_event):
|
||||
logger.info('Already at EVENT_20260417')
|
||||
return True
|
||||
self.ui_ensure(page_campaign_menu)
|
||||
if self.is_event_entrance_available():
|
||||
self.ui_goto(page_event)
|
||||
return True
|
||||
|
||||
@staticmethod
|
||||
def _campaign_ocr_result_process(result):
|
||||
result = CampaignBase_._campaign_ocr_result_process(result)
|
||||
|
||||
Reference in New Issue
Block a user