Game Development Community

IUP: Use Lua scripted GUIs with Torque

by Joe Rossi · 03/18/2006 (1:22 am) · 3 comments

My latest resource is a binding for the IUP library, which is a Lua scripted GUI library. Now I/we can run IUP scripts from Torque. Since it uses my Lua bridge these scripts can access about any Torque data. So with some effort it can be used to make more editors and tools that interact in realtime with Torque. Something similar can be done using wxLua (wxWidgets lib for Lua) but that's too complex and bloated for me and for this purpose (dev tools) IUP works just fine.

Access it here.
www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=9998
( Win32 only for now )

As a demo I wrote a Torque console in IUP that lets you run TGE or Lua code, has a command history, and can be open and running as the game runs. It's not perfect but it seems to work. I started on some "in-house" tools that manipulate the currently selected level editor object... but to avoid reinventing any wheels I'll wait for the new editors before I go too far with that.

Other than this the past few weeks have not been productive for me. Kind of in a slump I guess. Lots of issues at the day job and so on... I need out of there!

Thanks for reading!

Edit: removed blabber about not getting resource approved.. Thanks Josh ;)

#1
03/18/2006 (10:56 am)
@Joe

Looks like it's in the Resource area now! :)

I think that sometimes, easier to evaluate resources make it thru faster. Plus, it has been crunch time to the Game Developer Conference.
#2
03/18/2006 (12:26 pm)
Hey Joe,

We just approved a bunch of resources last night.. there's a long line left to approve. Sorry you've been waiting on yours... we gotta approve resources faster. Want to give the newly approved resources a day or so in the limelight. But this is very cool, and it's up on the front page now (someone else approved it, thanks!). :)

Anyway, nice work, this is great!
#3
12/19/2006 (11:54 pm)
FYI people, I pretty much gave up on this ;) It makes very little sense when there is a perfectly good GUI system built into the engine. I thought it was cool that it worked, but, it's actually more work to make a GUI in IUP than it is using the Torque GUIs...! Yeah sometimes I do things like this just to see if I can do it, and I end up wasting time. Bad me.