ui:Slider() step value?

User avatar
SirEdric
Fusionator
Posts: 1723
Joined: Tue Aug 05, 2014 10:04 am
Answers: 1
Real name: Eric Westphal
Been thanked: 77 times
Contact:

ui:Slider() step value?

#1

Post by SirEdric » Fri Mar 08, 2019 1:14 am

Hi there.

Does the ui:Slider() support some kind of step-property?
i.e. when I nudge the slider with the arrow keys I want to change the value by (say) 100 rather than the default 1.

Thanks for any ideas.

Eric.

User avatar
PeterLoveday
Fusioneer
Posts: 141
Joined: Sun Sep 14, 2014 6:09 pm
Answers: 5
Been thanked: 10 times

Re: ui:Slider() step value?

#2

Post by PeterLoveday » Fri Mar 08, 2019 2:16 am

Try: SingleStep = 100,

Either in the ui:Slider { ... } definition, or you can set it after from the appropriate item ID.

You can also set PageStep, which is the amount stepped when you use pageup/down.

User avatar
SirEdric
Fusionator
Posts: 1723
Joined: Tue Aug 05, 2014 10:04 am
Answers: 1
Real name: Eric Westphal
Been thanked: 77 times
Contact:

Re: ui:Slider() step value?

#3

Post by SirEdric » Fri Mar 08, 2019 4:34 am

Brilliant!
Thanks a bunch of salmiakki!