mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-11 23:18:22 +08:00
Add: mask for ui_white_main (#4145)
This commit is contained in:
@@ -5,6 +5,7 @@ from module.ui.assets import PLAYER_CHECK
|
||||
from module.ui.page import MAIN_GOTO_CAMPAIGN_WHITE, MAIN_GOTO_FLEET
|
||||
|
||||
MASK_MAIN = Mask('./assets/mask/MASK_MAIN.png')
|
||||
MASK_MAIN_WHITE = Mask('./assets/mask/MASK_MAIN_WHITE.png')
|
||||
MASK_PLAYER = Mask('./assets/mask/MASK_PLAYER.png')
|
||||
|
||||
|
||||
@@ -21,7 +22,7 @@ def handle_sensitive_image(image):
|
||||
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)
|
||||
image = MASK_MAIN_WHITE.apply(image)
|
||||
|
||||
return image
|
||||
|
||||
|
||||
Reference in New Issue
Block a user