mirror of
https://github.com/LmeSzinc/AzurLaneAutoScript.git
synced 2025-01-07 08:26:55 +08:00
Add: mask for ui_white_main (#4145)
This commit is contained in:
parent
904cd0d070
commit
34acf7ed3a
BIN
assets/mask/MASK_MAIN_WHITE.png
Normal file
BIN
assets/mask/MASK_MAIN_WHITE.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 7.9 KiB |
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user