[OpenEUO] menulib v1.0
Posted: Tue Aug 02, 2011 2:22 pm
Some helpful code for making menus, a small example included. Not really any comments there, it's pretty simple.
Think of the menu stuff divided into containers (form, panel..) and controls (button, checkbox, label..). Controls can be added to containers, for example a button into a form by form_name:button(input_variables). Also containers can be added into containers. Form is the main window/container that you should start with and then add stuff into it.
Container structure:
myCont.ctrl is the actual Obj.Create() object
myCont.[id_you_used_when_creating] these are the buttons/panels/etc you've added into the container
Adding stuff into container:
myCont:button([input_variables])
If you add code, please send me a PM so I can add it to my script too
Think of the menu stuff divided into containers (form, panel..) and controls (button, checkbox, label..). Controls can be added to containers, for example a button into a form by form_name:button(input_variables). Also containers can be added into containers. Form is the main window/container that you should start with and then add stuff into it.
Container structure:
myCont.ctrl is the actual Obj.Create() object
myCont.[id_you_used_when_creating] these are the buttons/panels/etc you've added into the container
Adding stuff into container:
myCont:button([input_variables])
If you add code, please send me a PM so I can add it to my script too
