StarRailCopilot/tasks/daily/assets/assets_daily_reward.py
Hengyu 012fffbb31
Add: daily_request_recognition; get_daily_rewards (#3)
* Add: daily_request_recognition; get_daily_rewards

* Fix: typo

* Fix: typo

* Upd: delete eval; use one loop to handle 5 active point rewards;

* Upd: change DAILY_QUEST_GOTO/REWARD pattern; update swipe private method name; extract keyword compare method

* Upd: move warning to single page recognition

* Upd: merge from main

* Add: methods that load daily quests keywords from QuestData.json

* Upd: avoid read TextMap twice

* Upd: revert Keyword.find method

* Add: preprocess of keyword extract; after_process of daily quest ocr

* Upd: move assets to daily/reward

* Upd: simplify ocr result replacement
2023-06-13 00:24:38 +08:00

216 lines
6.5 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 ```
ACTIVE_POINTS_1_CHECKED = ButtonWrapper(
name='ACTIVE_POINTS_1_CHECKED',
share=Button(
file='./assets/share/daily/reward/ACTIVE_POINTS_1_CHECKED.png',
area=(377, 139, 424, 207),
search=(357, 119, 444, 227),
color=(223, 205, 185),
button=(377, 139, 424, 207),
),
)
ACTIVE_POINTS_1_LOCKED = ButtonWrapper(
name='ACTIVE_POINTS_1_LOCKED',
share=Button(
file='./assets/share/daily/reward/ACTIVE_POINTS_1_LOCKED.png',
area=(378, 141, 423, 185),
search=(358, 121, 443, 205),
color=(222, 222, 222),
button=(378, 141, 423, 185),
),
)
ACTIVE_POINTS_1_UNLOCK = ButtonWrapper(
name='ACTIVE_POINTS_1_UNLOCK',
share=Button(
file='./assets/share/daily/reward/ACTIVE_POINTS_1_UNLOCK.png',
area=(377, 141, 424, 185),
search=(357, 121, 444, 205),
color=(233, 178, 98),
button=(377, 141, 424, 185),
),
)
ACTIVE_POINTS_2_CHECKED = ButtonWrapper(
name='ACTIVE_POINTS_2_CHECKED',
share=Button(
file='./assets/share/daily/reward/ACTIVE_POINTS_2_CHECKED.png',
area=(560, 141, 606, 205),
search=(540, 121, 626, 225),
color=(221, 202, 180),
button=(560, 141, 606, 205),
),
)
ACTIVE_POINTS_2_LOCKED = ButtonWrapper(
name='ACTIVE_POINTS_2_LOCKED',
share=Button(
file='./assets/share/daily/reward/ACTIVE_POINTS_2_LOCKED.png',
area=(561, 141, 606, 185),
search=(541, 121, 626, 205),
color=(222, 222, 222),
button=(561, 141, 606, 185),
),
)
ACTIVE_POINTS_2_UNLOCK = ButtonWrapper(
name='ACTIVE_POINTS_2_UNLOCK',
share=Button(
file='./assets/share/daily/reward/ACTIVE_POINTS_2_UNLOCK.png',
area=(561, 141, 606, 185),
search=(541, 121, 626, 205),
color=(244, 192, 99),
button=(561, 141, 606, 185),
),
)
ACTIVE_POINTS_3_CHECKED = ButtonWrapper(
name='ACTIVE_POINTS_3_CHECKED',
share=Button(
file='./assets/share/daily/reward/ACTIVE_POINTS_3_CHECKED.png',
area=(743, 141, 788, 205),
search=(723, 121, 808, 225),
color=(221, 201, 179),
button=(743, 141, 788, 205),
),
)
ACTIVE_POINTS_3_LOCKED = ButtonWrapper(
name='ACTIVE_POINTS_3_LOCKED',
share=Button(
file='./assets/share/daily/reward/ACTIVE_POINTS_3_LOCKED.png',
area=(743, 141, 788, 185),
search=(723, 121, 808, 205),
color=(222, 222, 222),
button=(743, 141, 788, 185),
),
)
ACTIVE_POINTS_3_UNLOCK = ButtonWrapper(
name='ACTIVE_POINTS_3_UNLOCK',
share=Button(
file='./assets/share/daily/reward/ACTIVE_POINTS_3_UNLOCK.png',
area=(744, 141, 788, 185),
search=(724, 121, 808, 205),
color=(231, 176, 94),
button=(744, 141, 788, 185),
),
)
ACTIVE_POINTS_4_CHECKED = ButtonWrapper(
name='ACTIVE_POINTS_4_CHECKED',
share=Button(
file='./assets/share/daily/reward/ACTIVE_POINTS_4_CHECKED.png',
area=(925, 141, 970, 205),
search=(905, 121, 990, 225),
color=(221, 201, 179),
button=(925, 141, 970, 205),
),
)
ACTIVE_POINTS_4_LOCKED = ButtonWrapper(
name='ACTIVE_POINTS_4_LOCKED',
share=Button(
file='./assets/share/daily/reward/ACTIVE_POINTS_4_LOCKED.png',
area=(926, 141, 971, 185),
search=(906, 121, 991, 205),
color=(222, 222, 222),
button=(926, 141, 971, 185),
),
)
ACTIVE_POINTS_4_UNLOCK = ButtonWrapper(
name='ACTIVE_POINTS_4_UNLOCK',
share=Button(
file='./assets/share/daily/reward/ACTIVE_POINTS_4_UNLOCK.png',
area=(926, 141, 971, 185),
search=(906, 121, 991, 205),
color=(237, 182, 97),
button=(926, 141, 971, 185),
),
)
ACTIVE_POINTS_5_CHECKED = ButtonWrapper(
name='ACTIVE_POINTS_5_CHECKED',
share=Button(
file='./assets/share/daily/reward/ACTIVE_POINTS_5_CHECKED.png',
area=(1108, 141, 1154, 205),
search=(1088, 121, 1174, 225),
color=(221, 201, 179),
button=(1108, 141, 1154, 205),
),
)
ACTIVE_POINTS_5_LOCKED = ButtonWrapper(
name='ACTIVE_POINTS_5_LOCKED',
share=Button(
file='./assets/share/daily/reward/ACTIVE_POINTS_5_LOCKED.png',
area=(1108, 141, 1153, 185),
search=(1088, 121, 1173, 205),
color=(222, 222, 222),
button=(1108, 141, 1153, 185),
),
)
ACTIVE_POINTS_5_UNLOCK = ButtonWrapper(
name='ACTIVE_POINTS_5_UNLOCK',
share=Button(
file='./assets/share/daily/reward/ACTIVE_POINTS_5_UNLOCK.png',
area=(1109, 141, 1154, 185),
search=(1089, 121, 1174, 205),
color=(237, 182, 96),
button=(1109, 141, 1154, 185),
),
)
DAILY_QUEST_FULL = ButtonWrapper(
name='DAILY_QUEST_FULL',
cn=Button(
file='./assets/cn/daily/reward/DAILY_QUEST_FULL.png',
area=(159, 546, 298, 564),
search=(139, 526, 318, 584),
color=(128, 111, 80),
button=(159, 546, 298, 564),
),
)
DAILY_QUEST_GOTO = ButtonWrapper(
name='DAILY_QUEST_GOTO',
share=Button(
file='./assets/share/daily/reward/DAILY_QUEST_GOTO.png',
area=(170, 544, 188, 563),
search=(150, 524, 208, 583),
color=(157, 156, 156),
button=(170, 544, 188, 563),
),
)
DAILY_QUEST_LEFT_START = ButtonWrapper(
name='DAILY_QUEST_LEFT_START',
share=Button(
file='./assets/share/daily/reward/DAILY_QUEST_LEFT_START.png',
area=(1100, 187, 1135, 625),
search=(1080, 167, 1155, 645),
color=(214, 214, 213),
button=(1100, 187, 1135, 625),
),
)
DAILY_QUEST_REWARD = ButtonWrapper(
name='DAILY_QUEST_REWARD',
share=Button(
file='./assets/share/daily/reward/DAILY_QUEST_REWARD.png',
area=(168, 544, 188, 564),
search=(148, 524, 208, 584),
color=(103, 83, 44),
button=(168, 544, 188, 564),
),
)
DAILY_QUEST_RIGHT_END = ButtonWrapper(
name='DAILY_QUEST_RIGHT_END',
share=Button(
file='./assets/share/daily/reward/DAILY_QUEST_RIGHT_END.png',
area=(142, 207, 175, 669),
search=(122, 187, 195, 689),
color=(219, 219, 218),
button=(142, 207, 175, 669),
),
)
OCR_DAILY_QUEST = ButtonWrapper(
name='OCR_DAILY_QUEST',
share=Button(
file='./assets/share/daily/reward/OCR_DAILY_QUEST.png',
area=(119, 232, 1165, 595),
search=(99, 212, 1185, 615),
color=(212, 210, 206),
button=(119, 232, 1165, 595),
),
)