mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-17 08:45:25 +08:00
Add: mask for ui_white_main (#4145)
This commit is contained in:
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
|
from module.ui.page import MAIN_GOTO_CAMPAIGN_WHITE, MAIN_GOTO_FLEET
|
||||||
|
|
||||||
MASK_MAIN = Mask('./assets/mask/MASK_MAIN.png')
|
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')
|
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)):
|
if MAIN_GOTO_FLEET.match(image, offset=(30, 30)):
|
||||||
image = MASK_MAIN.apply(image)
|
image = MASK_MAIN.apply(image)
|
||||||
if MAIN_GOTO_CAMPAIGN_WHITE.match(image, offset=(30, 30)):
|
if MAIN_GOTO_CAMPAIGN_WHITE.match(image, offset=(30, 30)):
|
||||||
image = MASK_MAIN.apply(image)
|
image = MASK_MAIN_WHITE.apply(image)
|
||||||
|
|
||||||
return image
|
return image
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user