This is the start of a gui api I'm working on. It is design to easily make different inputs that the user can interact with and the event listening is handled by the api.
Here is the function that the api has right now
gui.new(backgroundcolor) --creates a new gui element table and sets the screen background color gui.label(value, background color, text color, x, y) -- creates a new label. non interactive gui.button(name, value, background color, text color, x, y) --creates a new button gui.text(name, value, background color, text color, x, y, length) --creates a new text input data = gui.listen(name of button to submit on) --starts to listen for events. Returns input data in the form of a table.Download from github
To do list:
- Make buttons and labels appear different
- Add the ability to move the cursor inside the text input
- Add the ability to tab between text inputs
- Add submit on enter option
- Add masked password input
- Add checkbox
- Add drop-down selector
Edited by Elrond1369, 20 December 2013 - 12:28 PM.











