mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-16 06:25:24 +00:00
Fix: Scroll was never set if only one button is at bottom
This commit is contained in:
parent
fdb61da223
commit
8885d0e791
@ -188,7 +188,11 @@ class RogueEvent(RogueUI):
|
|||||||
# Only one option, click directly
|
# Only one option, click directly
|
||||||
if count == 1:
|
if count == 1:
|
||||||
if self.interval_is_reached(CHOOSE_OPTION, interval=2):
|
if self.interval_is_reached(CHOOSE_OPTION, interval=2):
|
||||||
self.device.click(self.valid_options[0].prefix_icon)
|
button = self.valid_options[0].prefix_icon
|
||||||
|
# Option at bottom
|
||||||
|
if button.area[1] > 500 and SCROLL_OPTION.appear(main=self):
|
||||||
|
SCROLL_OPTION.set_bottom(main=self)
|
||||||
|
self.device.click(button)
|
||||||
self.interval_reset(CHOOSE_OPTION, interval=2)
|
self.interval_reset(CHOOSE_OPTION, interval=2)
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user