Hi everyone…
Thanks for all your help.
I would like to have a slider but with my own graphics.
I don’t really understand the Corona page Custom Vizualitation.
“The slider widget can be visually customized using an image sheet. As shown in the following example, 5 frames” ?
how does that really works? Is there a sample code that I can see? Where?
the left cap (red), – what is this?
( “sliderSheet.png”, options ) – where is the image sliderSheet.png to test this code?
And I don’t really understand the frames…
middleFrame = 2,
rightFrame = 3,
fillFrame = 4,
frameWidth = 36,
I test the sample code
– Slider listener
local function sliderListener( event )
print( "Slider at " … event.value … “%” )
audio.play(n45)
end
just play a file, and it’s playing it twice
touch - began
and ended
And also how to actually use it. Once I have the value… at 65%
how do I do this
if p3 == 20 then
tempo = tempo/50*100
end
something like that…
but I want to have the tempo from 0% to 100%
let’s say 50% is 1000
tempo = 1000
100% I wanted to be
tempo = 300 ( so tempo goes really fast )
and at 2% should be
tempo = 1600 goes slower…
how do I get the slider recognize that when is at 34% the number should be {?}
whay kind of math. should I use, I need some help thanks…