mirror of
https://github.com/TheFunny/ArisuAutoSweeper
synced 2025-12-19 12:55:38 +00:00
fix(momotalk): correct sort switch
This commit is contained in:
parent
107392a900
commit
41e2d188b9
Binary file not shown.
|
Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 4.7 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 4.8 KiB After Width: | Height: | Size: 4.8 KiB |
@ -113,26 +113,26 @@ SKIP = ButtonWrapper(
|
|||||||
button=(1192, 103, 1229, 141),
|
button=(1192, 103, 1229, 141),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
SORT_OFF = ButtonWrapper(
|
SORT_ASCENDING = ButtonWrapper(
|
||||||
name='SORT_OFF',
|
name='SORT_ASCENDING',
|
||||||
jp=None,
|
jp=None,
|
||||||
en=Button(
|
en=Button(
|
||||||
file='./assets/en/momotalk/SORT_OFF.png',
|
file='./assets/en/momotalk/SORT_ASCENDING.png',
|
||||||
area=(591, 158, 662, 199),
|
area=(631, 166, 648, 188),
|
||||||
search=(571, 138, 682, 219),
|
search=(611, 146, 668, 208),
|
||||||
color=(235, 237, 238),
|
color=(221, 228, 233),
|
||||||
button=(591, 158, 662, 199),
|
button=(631, 166, 648, 188),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
SORT_ON = ButtonWrapper(
|
SORT_DESCENDING = ButtonWrapper(
|
||||||
name='SORT_ON',
|
name='SORT_DESCENDING',
|
||||||
jp=None,
|
jp=None,
|
||||||
en=Button(
|
en=Button(
|
||||||
file='./assets/en/momotalk/SORT_ON.png',
|
file='./assets/en/momotalk/SORT_DESCENDING.png',
|
||||||
area=(594, 159, 658, 196),
|
area=(631, 166, 648, 189),
|
||||||
search=(574, 139, 678, 216),
|
search=(611, 146, 668, 209),
|
||||||
color=(233, 235, 236),
|
color=(221, 228, 234),
|
||||||
button=(594, 159, 658, 196),
|
button=(631, 166, 648, 189),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
STORY = ButtonWrapper(
|
STORY = ButtonWrapper(
|
||||||
|
|||||||
@ -19,8 +19,8 @@ SWITCH_UNREAD.add_state("on", UNREAD_ON)
|
|||||||
SWITCH_UNREAD.add_state("off", UNREAD_OFF)
|
SWITCH_UNREAD.add_state("off", UNREAD_OFF)
|
||||||
|
|
||||||
SWITCH_SORT = Switch("Sort_switch")
|
SWITCH_SORT = Switch("Sort_switch")
|
||||||
SWITCH_SORT.add_state("on", SORT_ON)
|
SWITCH_SORT.add_state("ascending", SORT_ASCENDING)
|
||||||
SWITCH_SORT.add_state("off", SORT_OFF)
|
SWITCH_SORT.add_state("descending", SORT_DESCENDING)
|
||||||
|
|
||||||
"""Required for template matching as reply and story
|
"""Required for template matching as reply and story
|
||||||
button can be found in different locations"""
|
button can be found in different locations"""
|
||||||
@ -145,7 +145,7 @@ class MomoTalkUI(UI):
|
|||||||
"""
|
"""
|
||||||
if self.match_color(FIRST_UNREAD, threshold=80) and self.select_then_disappear(FIRST_UNREAD, SELECT_STUDENT, force_select=True):
|
if self.match_color(FIRST_UNREAD, threshold=80) and self.select_then_disappear(FIRST_UNREAD, SELECT_STUDENT, force_select=True):
|
||||||
return True
|
return True
|
||||||
logger.warn("No students available for interaction")
|
logger.warning("No students available for interaction")
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def chat(self):
|
def chat(self):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user