Opt: Click slider to set waves

This commit is contained in:
LmeSzinc 2024-06-12 23:16:48 +08:00
parent 3783066cd7
commit 46ee9b1524
3 changed files with 14 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

View File

@ -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),
),
)

View File

@ -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,