Jump to content




[ADV. Comp] [WIP] GUIAPI

api lua utility

  • You cannot reply to this topic
5 replies to this topic

#1 zacpier

  • Members
  • 44 posts
  • LocationUS

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!

Spoiler

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

#2 Eric

  • Members
  • 92 posts
  • LocationUK

Posted 13 January 2013 - 11:22 AM

Can we get a screenshot of that sample program in action?

#3 zacpier

  • Members
  • 44 posts
  • LocationUS

Posted 13 January 2013 - 11:24 AM

I'll put one on

#4 Marval

  • Members
  • 47 posts

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.

#5 superaxander

  • Members
  • 609 posts
  • LocationHolland

Posted 04 February 2013 - 07:03 AM

View PostMarval, on 25 January 2013 - 01:39 AM, said:

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")

#6 zacpier

  • Members
  • 44 posts
  • LocationUS

Posted 17 July 2013 - 10: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!





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users