Jump to content




[GUI] Budj - GUI API


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

#1 Dave-ee Jones

  • Members
  • 456 posts
  • LocationVan Diemen's Land

Posted 15 September 2017 - 02:42 AM

Budj
Dave-ee's GUI API!

Look! Another GUI API!
Yep. As a not-so-wise-man once said: "anudder one". It's not quite as good as something like Touchpoint, but it's got some different features that might be useful to some.

I despise having to use someone else's GUI APIs, as I always prefer to write my own APIs. It's more interesting, better for the learning experience, and better for your own applications. So, I made Budj. Budj is a top-notch bloke. He can do all kinds of things.

He can have multiple whiteboards for you to slap buttons and checkboxes on, he can draw and undraw objects, he can swap whiteboards when he wants to change whats on the screen. He can do all kinds of cool things.He can even assign functions to objects, handle your events for you and re-align or re-assign labels.

Usage:
Spoiler


Functions:
Spoiler



Demo program:
The demo program is pretty cool. Let me explain what it does.
When you click the button, it toggles the checkbox's 'DRAWN' variable. While it's undrawn you cannot interact with it.
When you click the button again, it toggles the checkbox to be drawn again.

When you toggle the checkbox it changes the button's label. You can actually swap the functions between the two objects, or even create more. I built the demo so it was very versatile and shows you what you can do.






Demo program's pastebin:

pastebin get Kte8gY84 demo



API's pastebin:

pastebin get ugKWxVGj budj



PLEASE give suggestions and feedback!


Edited by Dave-ee Jones, 17 September 2017 - 11:56 PM.


#2 Lupus590

  • Members
  • 2,028 posts
  • LocationUK

Posted 15 September 2017 - 09:30 AM

You functions section has a lot of noise from the formatting thing.

Edited by Lupus590, 15 September 2017 - 09:32 AM.


#3 Dave-ee Jones

  • Members
  • 456 posts
  • LocationVan Diemen's Land

Posted 17 September 2017 - 11:52 PM

View PostLupus590, on 15 September 2017 - 09:30 AM, said:

You functions section has a lot of noise from the formatting thing.

Yeah, I don't know why that is :/

#4 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

Posted 18 September 2017 - 07:16 AM

The code tags used by the forum aren't really aimed at Lua. You'll get better results if you use --# to mark out your comments.

#5 Smallfrypound

  • Members
  • 27 posts
  • LocationSomewhere in America

Posted 20 November 2017 - 07:10 PM

Suggestion(s):
* Add more features, like labels, input boxes, etc.

Other than that it looks like a promising api.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users