Add: mask for ui_white_main (#4145)

This commit is contained in:
guoh064 2024-09-09 23:44:48 +08:00 committed by GitHub
parent 904cd0d070
commit 34acf7ed3a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.9 KiB

View File

@ -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