Jump to content




flexibleUI v3 API - simple to use UI API

api

8 replies to this topic

#1 ThePH

  • Members
  • 31 posts

Posted 19 March 2013 - 08:00 AM

ThePH's UI API: flexibleUI v3


Now with cyclers and progress bars

Early version (when it wasn't using OOP) :
Spoiler


What's new:

v3.1:

  • Checkboxes and radios can have more than one indicator, colours everywhere, and use regEx (%I%) to tell where the indicator(s) are. (see screenshots)

v3.0:

  • Added multiple colours for one the same element, used as so: %[fb][0123456789abcdef]
  • Added cyclers, used to cycle throught a list (see docs when updated)
  • Added progress bar

v2.1:

  • Fixed checkboxes
  • Fixed tags not affecting the draw function
  • Fixed label tags not setting properly

v2 :

  • Recoded the API from scratch to make it use OOP, which is way easier to use for the user.
  • Possibility to add actions as string, table or boolean which will be returned.
  • Possibility to add action as function, which will be executed when clicked.
  • Items are now sorted alphabetically by key, meaning the first will be drawn first etc.
  • Text, for buttons or labels can be a table containing the lines and will be adjusted

Docs :

Can be found here, if you need more details, ask :)

For v2.x : http://pastebin.com/eiP96r3e



Bugs :

Theres are currently no bug if you use it as it is sayed you should (right types of arguments etc) except:

  • Nothing

Todo :
  • Make container containable ?
  • Make inputboxes
  • Suggestions ?

Add-on scripts :

Numpad v1

Spoiler



Download :

v3.0 : http://pastebin.com/VkJrkxDU

v2.x : http://pastebin.com/CDykN1ki



Screenshots :

Spoiler


Any suggestion/critics are welcome and appreciated, please enjoy my API :)

Edited by ThePH, 04 April 2013 - 04:49 AM.


#2 superaxander

  • Members
  • 609 posts
  • LocationHolland

Posted 23 March 2013 - 03:41 AM

Cool!

#3 ThePH

  • Members
  • 31 posts

Posted 29 March 2013 - 02:35 PM

Updated to v2:
  • Recoded the API from scratch to make it use OOP, which is way easier to use for the user.
  • Possibility to add actions as string, table or boolean which will be returned.
  • Possibility to add action as function, which will be executed when clicked.
  • Items are now sorted alphabetically by key, meaning the first will be drawn first etc.
  • Text, for buttons or labels can be a table containing the lines and will be adjusted
Docs are being made ATM
I will be posting sample codes and addons using this API that can be used and modified as wished (again, i'm open to any suggestion, may it be code ideas, or code)

#4 ThePH

  • Members
  • 31 posts

Posted 30 March 2013 - 06:11 AM

Update v2.1 : Minor bugfixes, cf. OP

#5 ThePH

  • Members
  • 31 posts

Posted 04 April 2013 - 01:12 AM

Update v3; cyclers, prgress bars and more colours, doc is on its way

#6 Zudo

  • Members
  • 800 posts
  • LocationUK

Posted 04 April 2013 - 02:17 AM

I would like to see screenshots :)

#7 ThePH

  • Members
  • 31 posts

Posted 04 April 2013 - 03:53 AM

Sure thing, i totally forgot about thoses ^^

EDIT: There, some screen shots added

EDIT 2:

Made some bugfixes, added more screens, release v3.1, checkboxes and radios colours fixed.

#8 mzxs

  • Members
  • 8 posts

Posted 05 April 2013 - 08:43 PM

ok i still dont under stand what this does

#9 ThePH

  • Members
  • 31 posts

Posted 10 April 2013 - 03:39 AM

The API helps you create and manage a GUI, and all of it using one object per GUI





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users