mirror of
https://github.com/0O0o0oOoO00/Alas.git
synced 2026-05-19 11:09:29 +08:00
Merge branch 'refs/heads/0O0o0oOoO00/master' into dev
# Conflicts: # module/webui/app.py
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