Selectable Window

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
wesleylucas
Prole
Posts: 12
Joined: Thu May 09, 2013 11:08 pm
Location: Brazil

Selectable Window

Post 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)

?
def or function doesn't matter, you understand what I mean anyway.
User avatar
Plu
Inner party member
Posts: 722
Joined: Fri Mar 15, 2013 9:36 pm

Re: Selectable Window

Post 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.
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: Selectable Window

Post by bartbes »

I believe love frames has a lot of windowing features, never used it though.
User avatar
MadByte
Party member
Posts: 533
Joined: Fri May 03, 2013 6:42 pm
Location: Braunschweig, Germany

Re: Selectable Window

Post by MadByte »

bartbes wrote:I believe love frames has a lot of windowing features, never used it though.
Link
User avatar
wesleylucas
Prole
Posts: 12
Joined: Thu May 09, 2013 11:08 pm
Location: Brazil

Re: Selectable Window

Post 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.
def or function doesn't matter, you understand what I mean anyway.
Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 4 guests