Page 1 of 1

Selectable Window

Posted: Fri May 31, 2013 7:43 pm
by wesleylucas
I was wondering if there's some way to do a Selectable Window like RPG Maker where you put the:
- Name of the Option (Ex.: 'Banana','Milk',etc)
- Function to be called when a option is selected (Ex.: function(); draw(banana); end)

?

Re: Selectable Window

Posted: Sat Jun 01, 2013 6:56 am
by Plu
Certainly, but you´ll have to program it yourself.

I'm guessing you need something like a Menu class that has a table that contains it's title and a subtable with options that each have a name and a callback function for when they are selected, and a control that can cycle through the active options in a menu and select them.

Try setting up some code and we can help you out if it isn't working.

Re: Selectable Window

Posted: Sat Jun 01, 2013 8:16 am
by bartbes
I believe love frames has a lot of windowing features, never used it though.

Re: Selectable Window

Posted: Sat Jun 01, 2013 8:25 am
by MadByte
bartbes wrote:I believe love frames has a lot of windowing features, never used it though.
Link

Re: Selectable Window

Posted: Sat Jun 01, 2013 12:26 pm
by wesleylucas
Plu wrote:Certainly, but you´ll have to program it yourself.

I'm guessing you need something like a Menu class that has a table that contains it's title and a subtable with options that each have a name and a callback function for when they are selected, and a control that can cycle through the active options in a menu and select them.

Try setting up some code and we can help you out if it isn't working.
Okay, I'll try.