Skip to content

need help with programming slider #375

Answered by damiensellier
bijlevel asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,
You need to use a uiFixedSlider for that and in the slider content box you have to put every single value from -2400 to 2400 with the non linear increments. (one value per line)

-2400
-2200
-2000
-1800
-1600
-1400
-1200
-1000
-950
-900
-850
-800
- and so on

to catch the "mappedValue" use : mod:getComponent():getProperty("uiFixedSliderContent")
(here : value 0 = mappedValue -2400, value 1 = mappedValue -2200... )

Or you can use a regular slider assigned to a lookup table with LUA, with all the following corresponding values in a chain.
I talked about this subject (for a different problematic) a while ago, you can take a look at this thread here #255
and here #275 for the lookup table …

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@dobo365
Comment options

@damiensellier
Comment options

Answer selected by bijlevel
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants