Page 1 of 1
How would I make a option slider[EX: volume changing slider]
Posted: Mon Dec 22, 2014 4:44 am
by vekenti
I want to make a slider to set the Red, Green and Blue colors of a particle. May someone please show me how?
Thanks, Vekenti
Re: How would I make a option slider[EX: volume changing sli
Posted: Mon Dec 22, 2014 3:34 pm
by Muris
To create gui components such as sliders easily, you could use Love Frames
viewtopic.php?f=5&t=9116 or Quickie
viewtopic.php?f=5&t=7811. There are probably other gui-libraries but those are the two that I've tried and they both seem to have pretty good tutorial on how to use em and they both seem to work really well.
Love frames feels more like C# forms type, and Quickie is kind of interesting stateless? type of gui where you have to manually hold the state of components by yourself.
Re: How would I make a option slider[EX: volume changing sli
Posted: Mon Dec 22, 2014 3:54 pm
by vekenti
Muris wrote:To create gui components such as sliders easily, you could use Love Frames
viewtopic.php?f=5&t=9116 or Quickie
viewtopic.php?f=5&t=7811. There are probably other gui-libraries but those are the two that I've tried and they both seem to have pretty good tutorial on how to use em and they both seem to work really well.
Love frames feels more like C# forms type, and Quickie is kind of interesting stateless? type of gui where you have to manually hold the state of components by yourself.
Thanks man,
-EDIT- seems like love frames give me a error when i try to use it,cant tell if its my end or love frame's end
Re: How would I make a option slider[EX: volume changing sli
Posted: Tue Dec 23, 2014 11:01 pm
by Zilarrezko
I spent a good while on GUI concepts, but had to stop at text box because I couldn't figure out how printf calculated when to move to a next line. But slider was a nice adventure.
Here's an example for the red. I commented a --[[ ]]-- around the code I implemented. It works, and I thought this was better for someone to learn anyhow, since when I looked at Löve Frames, the code was so everywhere I couldn't learn from it.
If you have any questions, just ask.
Have fun.
Re: How would I make a option slider[EX: volume changing sli
Posted: Wed Dec 24, 2014 12:21 am
by iPoisonxL
vekenti wrote:Muris wrote:To create gui components such as sliders easily, you could use Love Frames
viewtopic.php?f=5&t=9116 or Quickie
viewtopic.php?f=5&t=7811. There are probably other gui-libraries but those are the two that I've tried and they both seem to have pretty good tutorial on how to use em and they both seem to work really well.
Love frames feels more like C# forms type, and Quickie is kind of interesting stateless? type of gui where you have to manually hold the state of components by yourself.
Thanks man,
-EDIT- seems like love frames give me a error when i try to use it,cant tell if its my end or love frame's end
Love frames is only compatible with version 0.8.0 and 0.9.0, not 0.9.1