This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
kention3's profile picture

Form - Create functional UIs for entering and displaying data.

Started by kention3, 28 September 2012 - 08:26 PM
kention3 #1
Posted 28 September 2012 - 10:26 PM
Form is a small API for creating text based user interfaces. It allows the user to TAB between multiple fields and edit several variables displayed on screen.

Form works sort of like an HTML page. It has several main elements: button; checkbox; text field; and label. The programmer selects these elements and lays them out on the screen with x/y coordinates. These are fed into the program as a table.

In action, It looks like this:
[attachment=498:form.png]
[attachment=499:form1.png]

I'll let the pictures speak for themselves.

The readme should be adequate for figuring out how this works.
Please Note: If you want to try the examples, edit the first line to reflect the location of the file "form".

I'm open to suggestions for new features.

Download: [attachment=500:form1_1.zip]

Edit: Forgot to post the file derp.
Cranium #2
Posted 28 September 2012 - 10:28 PM
No download or code tag?
kention3 #3
Posted 28 September 2012 - 10:33 PM
Sorry, forgot it, then edited it back in.