Fix: Remove unused OCR asset

This commit is contained in:
Zebartin 2023-09-26 23:01:13 +08:00
parent a6a6b70c87
commit 818b196e45
5 changed files with 4 additions and 14 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 38 KiB

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 33 KiB

View File

@ -93,7 +93,7 @@ CHARACTER_SUPPORT = ButtonWrapper(
file='./assets/share/assignment/dispatch/CHARACTER_SUPPORT.png',
area=(103, 212, 435, 302),
search=(83, 192, 455, 322),
color=(62, 60, 63),
color=(69, 65, 80),
button=(103, 212, 435, 302),
),
)

View File

@ -118,16 +118,6 @@ OCR_ASSIGNMENT_ENTRY_LIST = ButtonWrapper(
button=(133, 139, 494, 620),
),
)
OCR_ASSIGNMENT_GROUP_LIST = ButtonWrapper(
name='OCR_ASSIGNMENT_GROUP_LIST',
share=Button(
file='./assets/share/assignment/ui/OCR_ASSIGNMENT_GROUP_LIST.png',
area=(116, 81, 827, 131),
search=(96, 61, 847, 151),
color=(80, 79, 77),
button=(116, 81, 827, 131),
),
)
OCR_ASSIGNMENT_LIMIT = ButtonWrapper(
name='OCR_ASSIGNMENT_LIMIT',
share=Button(

View File

@ -174,8 +174,8 @@ class AssignmentUI(UI):
if timeout.reached():
logger.warning('Wait group loaded timeout')
break
if self.image_color_count(OCR_ASSIGNMENT_GROUP_LIST, (40, 40, 40), count=20000) and \
self.image_color_count(OCR_ASSIGNMENT_GROUP_LIST, (240, 240, 240), count=7000):
if self.image_color_count(GROUP_SEARCH, (40, 40, 40), count=25000) and \
self.image_color_count(GROUP_SEARCH, (240, 240, 240), count=8000):
logger.info('Group loaded')
break
@ -239,7 +239,7 @@ class AssignmentUI(UI):
for state in ASSIGNMENT_GROUP_SWITCH.state_list:
check = state['check_button']
click = state['click_button']
if ASSIGNMENT_GROUP_SWITCH.appear(check) or ASSIGNMENT_GROUP_SWITCH.appear(click):
if self.appear(check) or self.appear(click):
yield state['state']
def _iter_entries(self) -> Iterator[AssignmentEntry]: