mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-12-01 03:37:56 +00:00
d9fb903c89
* Add button offsets. * Add offset detection when there's no technique point. * Remove offset calls for image_crop * Fix bugs. * Fix bugs. * Fix corner case when technique points are being generated. * Add png source for technique points. * Remove duplicated assets.
116 lines
3.3 KiB
Python
116 lines
3.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 ```
|
|
|
|
A_BUTTON = ButtonWrapper(
|
|
name='A_BUTTON',
|
|
share=Button(
|
|
file='./assets/share/map/control/A_BUTTON.png',
|
|
area=(1023, 521, 1083, 581),
|
|
search=(1003, 501, 1103, 601),
|
|
color=(108, 109, 110),
|
|
button=(1023, 521, 1083, 581),
|
|
),
|
|
)
|
|
E_BUTTON = ButtonWrapper(
|
|
name='E_BUTTON',
|
|
share=Button(
|
|
file='./assets/share/map/control/E_BUTTON.png',
|
|
area=(897, 592, 947, 642),
|
|
search=(877, 572, 967, 662),
|
|
color=(75, 77, 82),
|
|
button=(897, 592, 947, 642),
|
|
),
|
|
)
|
|
JOYSTICK = ButtonWrapper(
|
|
name='JOYSTICK',
|
|
share=Button(
|
|
file='./assets/share/map/control/JOYSTICK.png',
|
|
area=(234, 546, 262, 574),
|
|
search=(214, 526, 282, 594),
|
|
color=(43, 48, 62),
|
|
button=(234, 546, 262, 574),
|
|
),
|
|
)
|
|
ROTATION_SWIPE_AREA = ButtonWrapper(
|
|
name='ROTATION_SWIPE_AREA',
|
|
share=Button(
|
|
file='./assets/share/map/control/ROTATION_SWIPE_AREA.png',
|
|
area=(264, 87, 990, 219),
|
|
search=(244, 67, 1010, 239),
|
|
color=(255, 255, 255),
|
|
button=(264, 87, 990, 219),
|
|
),
|
|
)
|
|
RUN_BUTTON = ButtonWrapper(
|
|
name='RUN_BUTTON',
|
|
share=Button(
|
|
file='./assets/share/map/control/RUN_BUTTON.png',
|
|
area=(1147, 591, 1195, 639),
|
|
search=(1127, 571, 1215, 659),
|
|
color=(105, 110, 138),
|
|
button=(1147, 591, 1195, 639),
|
|
),
|
|
)
|
|
TECHNIQUE_POINT_0 = ButtonWrapper(
|
|
name='TECHNIQUE_POINT_0',
|
|
share=Button(
|
|
file='./assets/share/map/control/TECHNIQUE_POINT_0.png',
|
|
area=(884, 597, 891, 604),
|
|
search=(831, 589, 944, 612),
|
|
color=(56, 56, 56),
|
|
button=(884, 597, 891, 604),
|
|
),
|
|
)
|
|
TECHNIQUE_POINT_1 = ButtonWrapper(
|
|
name='TECHNIQUE_POINT_1',
|
|
share=Button(
|
|
file='./assets/share/map/control/TECHNIQUE_POINT_1.png',
|
|
area=(884, 597, 891, 604),
|
|
search=(831, 589, 944, 612),
|
|
color=(222, 213, 253),
|
|
button=(884, 597, 891, 604),
|
|
),
|
|
)
|
|
TECHNIQUE_POINT_2 = ButtonWrapper(
|
|
name='TECHNIQUE_POINT_2',
|
|
share=Button(
|
|
file='./assets/share/map/control/TECHNIQUE_POINT_2.png',
|
|
area=(892, 581, 900, 589),
|
|
search=(872, 561, 920, 609),
|
|
color=(213, 203, 249),
|
|
button=(892, 581, 900, 589),
|
|
),
|
|
)
|
|
TECHNIQUE_POINT_3 = ButtonWrapper(
|
|
name='TECHNIQUE_POINT_3',
|
|
share=Button(
|
|
file='./assets/share/map/control/TECHNIQUE_POINT_3.png',
|
|
area=(905, 569, 913, 577),
|
|
search=(885, 549, 933, 597),
|
|
color=(207, 195, 249),
|
|
button=(905, 569, 913, 577),
|
|
),
|
|
)
|
|
TECHNIQUE_POINT_4 = ButtonWrapper(
|
|
name='TECHNIQUE_POINT_4',
|
|
share=Button(
|
|
file='./assets/share/map/control/TECHNIQUE_POINT_4.png',
|
|
area=(921, 562, 929, 570),
|
|
search=(901, 542, 949, 590),
|
|
color=(210, 198, 248),
|
|
button=(921, 562, 929, 570),
|
|
),
|
|
)
|
|
TECHNIQUE_POINT_5 = ButtonWrapper(
|
|
name='TECHNIQUE_POINT_5',
|
|
share=Button(
|
|
file='./assets/share/map/control/TECHNIQUE_POINT_5.png',
|
|
area=(938, 562, 945, 570),
|
|
search=(918, 542, 965, 590),
|
|
color=(215, 203, 250),
|
|
button=(938, 562, 945, 570),
|
|
),
|
|
)
|