mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-22 00:35:34 +00:00
Add: Click tutorial and dungeon exit in daemon
This commit is contained in:
parent
1cfed81433
commit
a650309db1
BIN
assets/share/base/daemon/DUNGEON_EXIT.png
Normal file
BIN
assets/share/base/daemon/DUNGEON_EXIT.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 7.0 KiB |
BIN
assets/share/base/daemon/TUTORIAL_CHECK.png
Normal file
BIN
assets/share/base/daemon/TUTORIAL_CHECK.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.6 KiB |
BIN
assets/share/base/daemon/TUTORIAL_CLOSE.png
Normal file
BIN
assets/share/base/daemon/TUTORIAL_CLOSE.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 7.5 KiB |
BIN
assets/share/base/daemon/TUTORIAL_NEXT.png
Normal file
BIN
assets/share/base/daemon/TUTORIAL_NEXT.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 9.9 KiB |
@ -23,6 +23,16 @@ CHAT_OPTION = ButtonWrapper(
|
||||
button=(649, 496, 1129, 525),
|
||||
),
|
||||
)
|
||||
DUNGEON_EXIT = ButtonWrapper(
|
||||
name='DUNGEON_EXIT',
|
||||
share=Button(
|
||||
file='./assets/share/base/daemon/DUNGEON_EXIT.png',
|
||||
area=(582, 598, 606, 622),
|
||||
search=(562, 578, 626, 642),
|
||||
color=(106, 99, 89),
|
||||
button=(582, 598, 606, 622),
|
||||
),
|
||||
)
|
||||
INTERACT_COLLECT = ButtonWrapper(
|
||||
name='INTERACT_COLLECT',
|
||||
share=Button(
|
||||
@ -73,3 +83,33 @@ STORY_OPTION = ButtonWrapper(
|
||||
button=(813, 453, 1069, 488),
|
||||
),
|
||||
)
|
||||
TUTORIAL_CHECK = ButtonWrapper(
|
||||
name='TUTORIAL_CHECK',
|
||||
share=Button(
|
||||
file='./assets/share/base/daemon/TUTORIAL_CHECK.png',
|
||||
area=(628, 43, 653, 65),
|
||||
search=(608, 23, 673, 85),
|
||||
color=(90, 155, 145),
|
||||
button=(628, 43, 653, 65),
|
||||
),
|
||||
)
|
||||
TUTORIAL_CLOSE = ButtonWrapper(
|
||||
name='TUTORIAL_CLOSE',
|
||||
share=Button(
|
||||
file='./assets/share/base/daemon/TUTORIAL_CLOSE.png',
|
||||
area=(579, 634, 700, 669),
|
||||
search=(559, 614, 720, 689),
|
||||
color=(215, 213, 215),
|
||||
button=(579, 634, 700, 669),
|
||||
),
|
||||
)
|
||||
TUTORIAL_NEXT = ButtonWrapper(
|
||||
name='TUTORIAL_NEXT',
|
||||
share=Button(
|
||||
file='./assets/share/base/daemon/TUTORIAL_NEXT.png',
|
||||
area=(1190, 303, 1240, 365),
|
||||
search=(1170, 283, 1260, 385),
|
||||
color=(45, 45, 49),
|
||||
button=(1190, 303, 1240, 365),
|
||||
),
|
||||
)
|
||||
|
@ -107,6 +107,16 @@ class Daemon(RouteBase, DaemonBase, AimDetectorMixin):
|
||||
continue
|
||||
if self.handle_ui_close(PICTURE_TAKEN, interval=1):
|
||||
continue
|
||||
if self.appear_then_click(DUNGEON_EXIT, interval=1.5):
|
||||
continue
|
||||
# Tutorial popup
|
||||
if self.appear(TUTORIAL_CHECK, interval=0.2):
|
||||
if self.image_color_count(TUTORIAL_CLOSE, color=(255, 255, 255), threshold=180, count=400):
|
||||
self.device.click(TUTORIAL_CLOSE)
|
||||
continue
|
||||
if self.image_color_count(TUTORIAL_NEXT, color=(255, 255, 255), threshold=180, count=50):
|
||||
self.device.click(TUTORIAL_NEXT)
|
||||
continue
|
||||
# Rogue
|
||||
if self.handle_blessing():
|
||||
continue
|
||||
|
Loading…
Reference in New Issue
Block a user