mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-16 14:31:16 +00:00
27c08df0ca
* Add: take picture method * Upd: CAMERA_CHECK & TAKE_PICTURE template * Upt: use OCR to detect whether picture was taken * Upd: move camera to daily; use match template instead of OCR * Upd: break process into two loops;
266 lines
7.3 KiB
Python
266 lines
7.3 KiB
Python
from module.base.button import Button, ButtonWrapper
|
|
|
|
# This file was auto-generated, do not modify it manually. To generate:
|
|
# ``` python -m dev_tools.button_extract ```
|
|
|
|
BATTLE_PASS_CHECK = ButtonWrapper(
|
|
name='BATTLE_PASS_CHECK',
|
|
share=Button(
|
|
file='./assets/share/base/page/BATTLE_PASS_CHECK.png',
|
|
area=(42, 22, 72, 55),
|
|
search=(22, 2, 92, 75),
|
|
color=(159, 142, 108),
|
|
button=(42, 22, 72, 55),
|
|
),
|
|
)
|
|
CAMERA_CHECK = ButtonWrapper(
|
|
name='CAMERA_CHECK',
|
|
share=Button(
|
|
file='./assets/share/base/page/CAMERA_CHECK.png',
|
|
area=(1120, 346, 1160, 375),
|
|
search=(1100, 326, 1180, 395),
|
|
color=(215, 215, 215),
|
|
button=(1120, 346, 1160, 375),
|
|
),
|
|
)
|
|
CHARACTER_CHECK = ButtonWrapper(
|
|
name='CHARACTER_CHECK',
|
|
share=Button(
|
|
file='./assets/share/base/page/CHARACTER_CHECK.png',
|
|
area=(41, 18, 73, 47),
|
|
search=(21, 0, 93, 67),
|
|
color=(172, 153, 119),
|
|
button=(41, 18, 73, 47),
|
|
),
|
|
)
|
|
CLOSE = ButtonWrapper(
|
|
name='CLOSE',
|
|
share=Button(
|
|
file='./assets/share/base/page/CLOSE.png',
|
|
area=(1222, 25, 1252, 55),
|
|
search=(1202, 5, 1272, 75),
|
|
color=(53, 54, 54),
|
|
button=(1222, 25, 1252, 55),
|
|
),
|
|
)
|
|
EVENT_CHECK = ButtonWrapper(
|
|
name='EVENT_CHECK',
|
|
share=Button(
|
|
file='./assets/share/base/page/EVENT_CHECK.png',
|
|
area=(39, 19, 75, 56),
|
|
search=(19, 0, 95, 76),
|
|
color=(133, 125, 103),
|
|
button=(39, 19, 75, 56),
|
|
),
|
|
)
|
|
GACHA_CHECK = ButtonWrapper(
|
|
name='GACHA_CHECK',
|
|
share=Button(
|
|
file='./assets/share/base/page/GACHA_CHECK.png',
|
|
area=(40, 20, 74, 54),
|
|
search=(20, 0, 94, 74),
|
|
color=(157, 139, 112),
|
|
button=(40, 20, 74, 54),
|
|
),
|
|
)
|
|
GUIDE_CHECK = ButtonWrapper(
|
|
name='GUIDE_CHECK',
|
|
share=Button(
|
|
file='./assets/share/base/page/GUIDE_CHECK.png',
|
|
area=(44, 216, 63, 248),
|
|
search=(24, 196, 83, 268),
|
|
color=(196, 198, 200),
|
|
button=(44, 216, 63, 248),
|
|
),
|
|
)
|
|
GUIDE_CLOSE = ButtonWrapper(
|
|
name='GUIDE_CLOSE',
|
|
share=Button(
|
|
file='./assets/share/base/page/GUIDE_CLOSE.png',
|
|
area=(1153, 56, 1183, 87),
|
|
search=(1133, 36, 1203, 107),
|
|
color=(79, 79, 79),
|
|
button=(1153, 56, 1183, 87),
|
|
),
|
|
)
|
|
ITEM_CHECK = ButtonWrapper(
|
|
name='ITEM_CHECK',
|
|
share=Button(
|
|
file='./assets/share/base/page/ITEM_CHECK.png',
|
|
area=(43, 23, 72, 54),
|
|
search=(23, 3, 92, 74),
|
|
color=(188, 169, 129),
|
|
button=(43, 23, 72, 54),
|
|
),
|
|
)
|
|
MAIN_GOTO_BATTLE_PASS = ButtonWrapper(
|
|
name='MAIN_GOTO_BATTLE_PASS',
|
|
share=Button(
|
|
file='./assets/share/base/page/MAIN_GOTO_BATTLE_PASS.png',
|
|
area=(860, 36, 889, 56),
|
|
search=(840, 16, 909, 76),
|
|
color=(165, 164, 162),
|
|
button=(860, 36, 889, 56),
|
|
),
|
|
)
|
|
MAIN_GOTO_CHARACTER = ButtonWrapper(
|
|
name='MAIN_GOTO_CHARACTER',
|
|
share=Button(
|
|
file='./assets/share/base/page/MAIN_GOTO_CHARACTER.png',
|
|
area=(1204, 25, 1234, 51),
|
|
search=(1184, 5, 1254, 71),
|
|
color=(184, 185, 187),
|
|
button=(1204, 25, 1234, 51),
|
|
),
|
|
)
|
|
MAIN_GOTO_EVENT = ButtonWrapper(
|
|
name='MAIN_GOTO_EVENT',
|
|
share=Button(
|
|
file='./assets/share/base/page/MAIN_GOTO_EVENT.png',
|
|
area=(786, 33, 814, 56),
|
|
search=(766, 13, 834, 76),
|
|
color=(185, 184, 183),
|
|
button=(786, 33, 814, 56),
|
|
),
|
|
)
|
|
MAIN_GOTO_GACHA = ButtonWrapper(
|
|
name='MAIN_GOTO_GACHA',
|
|
share=Button(
|
|
file='./assets/share/base/page/MAIN_GOTO_GACHA.png',
|
|
area=(929, 38, 957, 59),
|
|
search=(909, 18, 977, 79),
|
|
color=(161, 162, 163),
|
|
button=(929, 38, 957, 59),
|
|
),
|
|
)
|
|
MAIN_GOTO_GUIDE = ButtonWrapper(
|
|
name='MAIN_GOTO_GUIDE',
|
|
share=Button(
|
|
file='./assets/share/base/page/MAIN_GOTO_GUIDE.png',
|
|
area=(997, 34, 1027, 59),
|
|
search=(977, 14, 1047, 79),
|
|
color=(170, 171, 173),
|
|
button=(997, 34, 1027, 59),
|
|
),
|
|
)
|
|
MAIN_GOTO_ITEM = ButtonWrapper(
|
|
name='MAIN_GOTO_ITEM',
|
|
share=Button(
|
|
file='./assets/share/base/page/MAIN_GOTO_ITEM.png',
|
|
area=(1064, 35, 1098, 59),
|
|
search=(1044, 15, 1118, 79),
|
|
color=(179, 180, 182),
|
|
button=(1064, 35, 1098, 59),
|
|
),
|
|
)
|
|
MAIN_GOTO_MENU = ButtonWrapper(
|
|
name='MAIN_GOTO_MENU',
|
|
share=Button(
|
|
file='./assets/share/base/page/MAIN_GOTO_MENU.png',
|
|
area=(22, 60, 51, 81),
|
|
search=(2, 40, 71, 101),
|
|
color=(176, 177, 179),
|
|
button=(22, 60, 51, 81),
|
|
),
|
|
)
|
|
MAIN_GOTO_MESSAGE = ButtonWrapper(
|
|
name='MAIN_GOTO_MESSAGE',
|
|
share=Button(
|
|
file='./assets/share/base/page/MAIN_GOTO_MESSAGE.png',
|
|
area=(184, 182, 203, 212),
|
|
search=(164, 162, 223, 232),
|
|
color=(230, 230, 230),
|
|
button=(184, 182, 203, 212),
|
|
),
|
|
)
|
|
MAIN_GOTO_MISSION = ButtonWrapper(
|
|
name='MAIN_GOTO_MISSION',
|
|
share=Button(
|
|
file='./assets/share/base/page/MAIN_GOTO_MISSION.png',
|
|
area=(21, 199, 51, 221),
|
|
search=(1, 179, 71, 241),
|
|
color=(168, 169, 172),
|
|
button=(21, 199, 51, 221),
|
|
),
|
|
)
|
|
MAIN_GOTO_TEAM = ButtonWrapper(
|
|
name='MAIN_GOTO_TEAM',
|
|
share=Button(
|
|
file='./assets/share/base/page/MAIN_GOTO_TEAM.png',
|
|
area=(1135, 41, 1166, 58),
|
|
search=(1115, 21, 1186, 78),
|
|
color=(160, 161, 164),
|
|
button=(1135, 41, 1166, 58),
|
|
),
|
|
)
|
|
MAIN_GOTO_TUTORIAL = ButtonWrapper(
|
|
name='MAIN_GOTO_TUTORIAL',
|
|
share=Button(
|
|
file='./assets/share/base/page/MAIN_GOTO_TUTORIAL.png',
|
|
area=(195, 58, 207, 82),
|
|
search=(175, 38, 227, 102),
|
|
color=(127, 131, 139),
|
|
button=(195, 58, 207, 82),
|
|
),
|
|
)
|
|
MENU_CHECK = ButtonWrapper(
|
|
name='MENU_CHECK',
|
|
share=Button(
|
|
file='./assets/share/base/page/MENU_CHECK.png',
|
|
area=(1222, 638, 1252, 669),
|
|
search=(1202, 618, 1272, 689),
|
|
color=(57, 50, 39),
|
|
button=(1222, 638, 1252, 669),
|
|
),
|
|
)
|
|
MENU_GOTO_CAMERA = ButtonWrapper(
|
|
name='MENU_GOTO_CAMERA',
|
|
share=Button(
|
|
file='./assets/share/base/page/MENU_GOTO_CAMERA.png',
|
|
area=(1219, 465, 1255, 495),
|
|
search=(1199, 445, 1275, 515),
|
|
color=(51, 52, 53),
|
|
button=(1219, 465, 1255, 495),
|
|
),
|
|
)
|
|
MESSAGE_CLOSE = ButtonWrapper(
|
|
name='MESSAGE_CLOSE',
|
|
share=Button(
|
|
file='./assets/share/base/page/MESSAGE_CLOSE.png',
|
|
area=(863, 95, 895, 127),
|
|
search=(843, 75, 915, 147),
|
|
color=(175, 174, 175),
|
|
button=(863, 95, 895, 127),
|
|
),
|
|
)
|
|
MISSION_CHECK = ButtonWrapper(
|
|
name='MISSION_CHECK',
|
|
share=Button(
|
|
file='./assets/share/base/page/MISSION_CHECK.png',
|
|
area=(44, 33, 70, 55),
|
|
search=(24, 13, 90, 75),
|
|
color=(194, 177, 139),
|
|
button=(44, 33, 70, 55),
|
|
),
|
|
)
|
|
TEAM_CHECK = ButtonWrapper(
|
|
name='TEAM_CHECK',
|
|
share=Button(
|
|
file='./assets/share/base/page/TEAM_CHECK.png',
|
|
area=(41, 34, 73, 54),
|
|
search=(21, 14, 93, 74),
|
|
color=(138, 123, 101),
|
|
button=(41, 34, 73, 54),
|
|
),
|
|
)
|
|
TUTORIAL_CHECK = ButtonWrapper(
|
|
name='TUTORIAL_CHECK',
|
|
share=Button(
|
|
file='./assets/share/base/page/TUTORIAL_CHECK.png',
|
|
area=(44, 30, 70, 56),
|
|
search=(24, 10, 90, 76),
|
|
color=(141, 126, 99),
|
|
button=(44, 30, 70, 56),
|
|
),
|
|
)
|