mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 00:28:20 +08:00
Fix: Winter's Crown incorrect siren template names, map_extractor may need dictionary updates
Fix: Detection of info window pertaining to data key usage from appear to ocr method
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
from module.base.base import ModuleBase
|
||||
from module.base.timer import Timer
|
||||
from module.ocr.ocr import Ocr
|
||||
from module.handler.assets import *
|
||||
from module.logger import logger
|
||||
|
||||
DATA_KEY_USE = Ocr(OCR_DATA_KEY_USE, lang='cnocr', letter=(255, 223, 57), threshold=64, alphabet='DKaety ')
|
||||
|
||||
class InfoHandler(ModuleBase):
|
||||
"""
|
||||
@@ -90,10 +92,14 @@ class InfoHandler(ModuleBase):
|
||||
return self.handle_popup_confirm('IGNORE_LOW_EMOTION')
|
||||
|
||||
def handle_use_data_key(self):
|
||||
if not self.appear(DATA_KEY_USE_INFO):
|
||||
if not self.appear(POPUP_CONFIRM) and not self.appear(POPUP_CANCEL):
|
||||
return False
|
||||
|
||||
return self.handle_popup_confirm('DATA_KEY_USE')
|
||||
ocr_result = DATA_KEY_USE.ocr(self.device.image)
|
||||
if 'Data Key' in ocr_result:
|
||||
return self.handle_popup_confirm('DATA_KEY_USE')
|
||||
|
||||
return False
|
||||
|
||||
"""
|
||||
Story
|
||||
|
||||
Reference in New Issue
Block a user