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)
?
Selectable Window
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
- wesleylucas
- Prole
- Posts: 12
- Joined: Thu May 09, 2013 11:08 pm
- Location: Brazil
Selectable Window
def or function doesn't matter, you understand what I mean anyway.
Re: Selectable Window
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.
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.
- bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
- Contact:
Re: Selectable Window
I believe love frames has a lot of windowing features, never used it though.
Re: Selectable Window
Linkbartbes wrote:I believe love frames has a lot of windowing features, never used it though.
- wesleylucas
- Prole
- Posts: 12
- Joined: Thu May 09, 2013 11:08 pm
- Location: Brazil
Re: Selectable Window
Okay, I'll try.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.
def or function doesn't matter, you understand what I mean anyway.
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 6 guests