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

[ADV. Comp] [WIP] GUIAPI

Started by zacpier, 13 January 2013 - 09:39 AM
zacpier #1
Posted 13 January 2013 - 10:39 AM
This is my first API, so please don't go too hard on me! :P/>

Also, these APIS aren't finished, so please test them for me!

Without further ado,

——————A
——————P
ZACPIER'S GUI

These APIs let you easily build GUIs from scratch in minutes using very simple functions and letting the API do the work for you.

The color, text, and size of everything can be adjusted quickly and easily so that you can focus on making your epic programs!

When using the buttonAPI, call buttonAPI.pullEvent() instead of os.pullEvent() so that you don't need to handle button clicking; my code does it for you!

SpoilerPlease ignore the glitch at the top; it's my texture pack

Downloads:

You can use my "DL" program (found in my appstore) if you'd like to get these easily

https://dl.dropbox.c...rapis/buttonAPI
https://dl.dropbox.c...erapis/titleAPI
https://dl.dropbox.c.../exampleProgram
Eric #2
Posted 13 January 2013 - 11:22 AM
Can we get a screenshot of that sample program in action?
zacpier #3
Posted 13 January 2013 - 11:24 AM
I'll put one on
Marval #4
Posted 25 January 2013 - 01:39 AM
Can You make function for remove all buttons from database? Becouse when I tried write one menu after another, when I click first button in second menu, programs think that I clicked first button in first menu still. Seems to it's depend on coordinates (all buttons have different names), this work fine when I use remove() function but in large menu, when going to another i must remove all previous buttons.
superaxander #5
Posted 04 February 2013 - 07:03 AM
Can You make function for remove all buttons from database? Becouse when I tried write one menu after another, when I click first button in second menu, programs think that I clicked first button in first menu still. Seems to it's depend on coordinates (all buttons have different names), this work fine when I use remove() function but in large menu, when going to another i must remove all previous buttons.
Well you could also go trough the table with a for loop. Like this:

for i, v in ipairs(buttonlist)
    table.remove(buttonlist, i)
end
Note: This only works when you use shell.run("buttonAPI") NOT when using os.loadAPI("buttonAPI")
zacpier #6
Posted 17 July 2013 - 11:12 PM
Hey guys, sorry I just dropped off of the Earth. I've working with stuff, my own game, life, etc…

I'm going to remake this API to be better and more awesome, so stay tuned!