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

[Wip] Zui - A Work In Progress Gui Api

Started by Zudo, 28 July 2013 - 09:38 AM
Zudo #1
Posted 28 July 2013 - 11:38 AM
zUI


zUI is a WIP API to make easy GUIs. Currently there are five functions:


buttonObject = newButton(x, y, color, text) -- This returns a buttonObject
drawButton(buttonObject) -- This draws the actual button

loadingBarObject = newBar(x, y, width, steps, bgcolor, fgcolor) -- This returns a loadingBarObject
drawBar(loadingBarObject) -- This draws a blank loading bar
updateBar(loadingBarObject, state) -- This will increment the loading bar. State is the part of the bar to be incremented, it is useful for two overlapping bars.

To use it type:

pastebin get LJvpG0qc gui

And run os.loadAPI("gui")

Screenshots are attached!
Zudo #2
Posted 29 July 2013 - 07:03 AM
I was in a hurry when I posted this so I didn't add screenshots. I have added them now :)/>

I hope you like it!
Kamefrede #3
Posted 03 August 2013 - 12:58 PM
Pretty Good api :)/>