mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 03:58:22 +08:00
Upd: [CN] Support UI in 2024.05.21
This commit is contained in:
@@ -14,8 +14,9 @@ from module.ocr.ocr import DigitCounter, Duration, Ocr
|
||||
from module.retire.assets import DOCK_CHECK, DOCK_EMPTY, SHIP_CONFIRM
|
||||
from module.retire.dock import CARD_GRIDS, CARD_LEVEL_GRIDS, Dock
|
||||
from module.tactical.assets import *
|
||||
from module.ui.assets import (BACK_ARROW, MAIN_GOTO_REWARD, REWARD_CHECK, REWARD_GOTO_TACTICAL, TACTICAL_CHECK)
|
||||
from module.ui.assets import (BACK_ARROW, REWARD_CHECK, REWARD_GOTO_TACTICAL, TACTICAL_CHECK)
|
||||
from module.ui.page import page_reward
|
||||
from module.ui_white.assets import REWARD_2_WHITE, REWARD_GOTO_TACTICAL_WHITE
|
||||
|
||||
SKILL_GRIDS = ButtonGrid(origin=(315, 140), delta=(621, 132), button_shape=(621, 119), grid_shape=(1, 3), name='SKILL')
|
||||
SKILL_LEVEL_GRIDS = SKILL_GRIDS.crop(area=(406, 98, 618, 116), name='EXP')
|
||||
@@ -434,9 +435,13 @@ class RewardTacticalClass(Dock):
|
||||
# Popups
|
||||
if self.appear_then_click(REWARD_2, offset=(20, 20), interval=3):
|
||||
continue
|
||||
if self.appear_then_click(REWARD_2_WHITE, offset=(20, 20), interval=3):
|
||||
continue
|
||||
if self.appear_then_click(REWARD_GOTO_TACTICAL, offset=(20, 20), interval=3):
|
||||
continue
|
||||
if self.appear_then_click(MAIN_GOTO_REWARD, offset=(20, 20), interval=3):
|
||||
if self.appear_then_click(REWARD_GOTO_TACTICAL_WHITE, offset=(20, 20), interval=3):
|
||||
continue
|
||||
if self.ui_main_appear_then_click(page_reward, interval=3):
|
||||
continue
|
||||
if self.handle_popup_confirm('TACTICAL'):
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user