mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-16 06:25:24 +00:00
Opt: Click slider to set waves
This commit is contained in:
parent
3783066cd7
commit
46ee9b1524
BIN
assets/share/combat/prepare/WAVE_SLIDER.png
Normal file
BIN
assets/share/combat/prepare/WAVE_SLIDER.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.0 KiB |
@ -70,3 +70,13 @@ WAVE_PLUS = ButtonWrapper(
|
|||||||
button=(1204, 578, 1236, 598),
|
button=(1204, 578, 1236, 598),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
WAVE_SLIDER = ButtonWrapper(
|
||||||
|
name='WAVE_SLIDER',
|
||||||
|
share=Button(
|
||||||
|
file='./assets/share/combat/prepare/WAVE_SLIDER.png',
|
||||||
|
area=(911, 585, 1150, 591),
|
||||||
|
search=(891, 565, 1170, 611),
|
||||||
|
color=(167, 118, 68),
|
||||||
|
button=(911, 585, 1150, 591),
|
||||||
|
),
|
||||||
|
)
|
||||||
|
@ -11,8 +11,9 @@ from tasks.combat.assets.assets_combat_prepare import (
|
|||||||
OCR_WAVE_COST,
|
OCR_WAVE_COST,
|
||||||
OCR_WAVE_COUNT,
|
OCR_WAVE_COUNT,
|
||||||
WAVE_MINUS,
|
WAVE_MINUS,
|
||||||
WAVE_PLUS
|
WAVE_PLUS, WAVE_SLIDER
|
||||||
)
|
)
|
||||||
|
from tasks.item.slider import Slider
|
||||||
|
|
||||||
|
|
||||||
class TrailblazePowerOcr(DigitCounter):
|
class TrailblazePowerOcr(DigitCounter):
|
||||||
@ -43,6 +44,8 @@ class CombatPrepare(UI):
|
|||||||
Pages:
|
Pages:
|
||||||
in: COMBAT_PREPARE
|
in: COMBAT_PREPARE
|
||||||
"""
|
"""
|
||||||
|
slider = Slider(main=self, slider=WAVE_SLIDER)
|
||||||
|
slider.set(count, 6)
|
||||||
self.ui_ensure_index(
|
self.ui_ensure_index(
|
||||||
count, letter=Digit(OCR_WAVE_COUNT, lang=server.lang),
|
count, letter=Digit(OCR_WAVE_COUNT, lang=server.lang),
|
||||||
next_button=WAVE_PLUS, prev_button=WAVE_MINUS,
|
next_button=WAVE_PLUS, prev_button=WAVE_MINUS,
|
||||||
|
Loading…
Reference in New Issue
Block a user