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:
@@ -2,7 +2,7 @@ import re
|
||||
|
||||
from module.base.mask import Mask
|
||||
from module.ui.assets import PLAYER_CHECK
|
||||
from module.ui.page import MAIN_CHECK
|
||||
from module.ui.page import MAIN_GOTO_CAMPAIGN_WHITE, MAIN_GOTO_FLEET
|
||||
|
||||
MASK_MAIN = Mask('./assets/mask/MASK_MAIN.png')
|
||||
MASK_PLAYER = Mask('./assets/mask/MASK_PLAYER.png')
|
||||
@@ -18,7 +18,9 @@ def handle_sensitive_image(image):
|
||||
"""
|
||||
if PLAYER_CHECK.match(image, offset=(30, 30)):
|
||||
image = MASK_PLAYER.apply(image)
|
||||
if MAIN_CHECK.match(image, offset=(30, 30)):
|
||||
if MAIN_GOTO_FLEET.match(image, offset=(30, 30)):
|
||||
image = MASK_MAIN.apply(image)
|
||||
if MAIN_GOTO_CAMPAIGN_WHITE.match(image, offset=(30, 30)):
|
||||
image = MASK_MAIN.apply(image)
|
||||
|
||||
return image
|
||||
|
||||
Reference in New Issue
Block a user