mirror of
https://github.com/TheFunny/ArisuAutoSweeper
synced 2026-01-07 20:35:13 +00:00
Compare commits
No commits in common. "77f0ded95f1c5cc8e858324b1c6fc63b4fd788fb" and "61fa6ad28b712de6d56a0f83a002103255ae8b79" have entirely different histories.
77f0ded95f
...
61fa6ad28b
Binary file not shown.
|
Before Width: | Height: | Size: 5.4 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 7.6 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 5.2 KiB |
@ -172,7 +172,7 @@ class Control(Hermit, Minitouch, Scrcpy, MaaTouch):
|
|||||||
self.click(ClickButton(button=area_offset(point_random, p2), name=name))
|
self.click(ClickButton(button=area_offset(point_random, p2), name=name))
|
||||||
|
|
||||||
# just used in cafe
|
# just used in cafe
|
||||||
def pinch(self, box=(35, 130, 1250, 560), name='PINCH'):
|
def pinch(self, box=(33, 130, 1247, 569), name='PINCH'):
|
||||||
self.handle_control_check(name)
|
self.handle_control_check(name)
|
||||||
middle_point = (box[0] + box[2]) // 2, (box[1] + box[3]) // 2
|
middle_point = (box[0] + box[2]) // 2, (box[1] + box[3]) // 2
|
||||||
width = box[2] - middle_point[0]
|
width = box[2] - middle_point[0]
|
||||||
|
|||||||
@ -103,26 +103,6 @@ GOT_REWARD = ButtonWrapper(
|
|||||||
button=(561, 501, 718, 556),
|
button=(561, 501, 718, 556),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
INVENTORY = ButtonWrapper(
|
|
||||||
name='INVENTORY',
|
|
||||||
jp=Button(
|
|
||||||
file='./assets/jp/cafe/INVENTORY.png',
|
|
||||||
area=(553, 94, 725, 122),
|
|
||||||
search=(533, 74, 745, 142),
|
|
||||||
color=(198, 205, 213),
|
|
||||||
button=(1130, 94, 1156, 120),
|
|
||||||
),
|
|
||||||
)
|
|
||||||
MOMOTALK_CLOSE = ButtonWrapper(
|
|
||||||
name='MOMOTALK_CLOSE',
|
|
||||||
jp=Button(
|
|
||||||
file='./assets/jp/cafe/MOMOTALK_CLOSE.png',
|
|
||||||
area=(824, 82, 850, 108),
|
|
||||||
search=(804, 62, 870, 128),
|
|
||||||
color=(252, 182, 194),
|
|
||||||
button=(824, 82, 850, 108),
|
|
||||||
),
|
|
||||||
)
|
|
||||||
OCR_CAFE = ButtonWrapper(
|
OCR_CAFE = ButtonWrapper(
|
||||||
name='OCR_CAFE',
|
name='OCR_CAFE',
|
||||||
jp=Button(
|
jp=Button(
|
||||||
|
|||||||
@ -120,13 +120,6 @@ class Cafe(UI):
|
|||||||
logger.attr('Reward', num)
|
logger.attr('Reward', num)
|
||||||
return num
|
return num
|
||||||
|
|
||||||
def _cafe_additional(self) -> bool:
|
|
||||||
if self.appear_then_click(INVENTORY):
|
|
||||||
return True
|
|
||||||
if self.appear_then_click(MOMOTALK_CLOSE):
|
|
||||||
return True
|
|
||||||
return False
|
|
||||||
|
|
||||||
def _handle_cafe(self, status):
|
def _handle_cafe(self, status):
|
||||||
match status:
|
match status:
|
||||||
case CafeStatus.STUDENT_LIST:
|
case CafeStatus.STUDENT_LIST:
|
||||||
@ -213,7 +206,7 @@ class Cafe(UI):
|
|||||||
|
|
||||||
self.device.screenshot()
|
self.device.screenshot()
|
||||||
|
|
||||||
if self.ui_additional() or self._cafe_additional():
|
if self.ui_additional():
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if not loading_timer.reached():
|
if not loading_timer.reached():
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user