Old 06-04-2016, 02:02 PM   #1
Lokasenna
Human being with feelings
 
Lokasenna's Avatar
 
Join Date: Sep 2008
Location: The vast, frozen wasteland of western Canadia.
Posts: 4,179
Default Lokasenna's GUI library for Lua

GUIs. We all need them, and they're a bit of a pain to make in ReaScript. Why not let someone else do the hard work so you can get back to actually making your script do something cool?

Those of you who were brave enough to read through my GUI tutorial saw an early version of this, but now I feel like I've tidied things up enough for a proper release:



Examples using this library:
https://www.dropbox.com/s/0g68u8l7q5...setup.gif?dl=0
https://www.dropbox.com/s/n3xhciyd9x...elper.png?dl=0


Reasons why you should use this sexy beast include:

- Very little coding required on your part. The image above only needs about 50 lines of user code compared to the hundreds (or thousands, in this case) you'd have to write if you did it yourself.

- Global font and color settings, so you can change the overall look to suit your fancy.

- Visibility layer management, so you can have multiple sets of controls come and go as needed.

- Graphics use blitting whenever possible, keeping the CPU usage low without any worry on your part.

- Run your own functions as part of the GUI's updating loop. You could relabel the options around aknob if you wanted, or have a slider and knob match the selected track's volume/pan... etc.

- Can be told to exit from your own code, and to run a function when it does. For instance, "save all the current settings, run this action, and quit".

- Modular design, allowing you to use as much, or as little, of my own code as you want. You can also write your own classes if you'd prefer.

- Designed to be compatible with my Script Compiler, so you don't have to distribute and maintain a dozen extra files with your script.

Download:

Lokasenna_GUI on the ReaTeam Github repository - The library, element classes, a few example scripts, and a couple of READ MEs to help you fall asleep.

Enjoy!


Changelog:

1.0 - June 9/16: First proper release. Classes are modular, tons of new features, code is much more efficient.

beta 2 - June 13/16: Rewrote the library to be copy/paste-able rather than distributing the file separately.

Last edited by Lokasenna; 06-09-2017 at 12:07 PM.
Lokasenna is offline   Reply With Quote
Old 06-04-2016, 06:13 PM   #2
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 3,963
Default

Thanks for your hard work on this, I'm sure it could be useful to a lot of scripters !!

Cheers !
X-Raym is offline   Reply With Quote
Old 06-04-2016, 10:19 PM   #3
michaeltonight
Human being with feelings
 
Join Date: Jun 2010
Location: Texas
Posts: 227
Default

This is amazing, Lokasenna.
michaeltonight is offline   Reply With Quote
Old 06-08-2016, 08:30 AM   #4
Ozman
Human being with feelings
 
Join Date: Feb 2015
Posts: 295
Default

This looks awesome!
Ozman is offline   Reply With Quote
Old 06-08-2016, 12:56 PM   #5
sfzgeek
Human being with feelings
 
sfzgeek's Avatar
 
Join Date: Feb 2009
Location: Dunedin, New Zealand
Posts: 204
Default

Bravo! Amazing work and excellent reference scripts!
__________________
My rawk band: The Hidden Venture.
sfzgeek is offline   Reply With Quote
Old 06-10-2016, 04:40 AM   #6
Brado231
Human being with feelings
 
Join Date: Sep 2012
Location: Oz
Posts: 194
Default

Great stuff! Thanks!!
Brado231 is offline   Reply With Quote
Old 06-11-2016, 05:16 AM   #7
raiirock
Human being with feelings
 
raiirock's Avatar
 
Join Date: Mar 2013
Posts: 85
Default

Looks great !
raiirock is offline   Reply With Quote
Old 06-13-2016, 08:49 PM   #8
Lokasenna
Human being with feelings
 
Lokasenna's Avatar
 
Join Date: Sep 2008
Location: The vast, frozen wasteland of western Canadia.
Posts: 4,179
Default

Update to beta 2.

No feature changes, but I rewrote a couple of things so the library can now be copy/pasted into your script rather than distributing the file separately. See the comments at the beginning of the file for instructions.
Lokasenna is offline   Reply With Quote
Old 06-14-2016, 06:21 PM   #9
Spacemen Tree
Human being with feelings
 
Spacemen Tree's Avatar
 
Join Date: Mar 2013
Posts: 484
Default

Just the licecap in the OP screams AWESOME!!!

Great stuff. Kudos!
__________________
"After silence, that which comes nearest to expressing the inexpressible is music", Aldous Huxley
Spacemen Tree is offline   Reply With Quote
Old 06-15-2016, 11:14 AM   #10
spk77
Human being with feelings
 
Join Date: Aug 2012
Location: Finland
Posts: 2,286
Default

I haven't tested this yet, but it's looking very good Thanks Lokasenna!
spk77 is offline   Reply With Quote
Old 06-15-2016, 11:24 AM   #11
tack
Human being with feelings
 
tack's Avatar
 
Join Date: Jan 2014
Posts: 265
Default

It's not possible to write JSFX plugins in Lua is it? I'd love to be able use this for FX as well, but I fear it's Eel or bust.
tack is offline   Reply With Quote
Old 06-09-2017, 12:08 PM   #12
Lokasenna
Human being with feelings
 
Lokasenna's Avatar
 
Join Date: Sep 2008
Location: The vast, frozen wasteland of western Canadia.
Posts: 4,179
Default

Updated to version 1.0.

Lots of new features, new classes, bug fixes, efficiency improvements, 33% less sodium with the same great taste.
Lokasenna is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 01:53 AM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2017, vBulletin Solutions, Inc.