[Request] Lua script helper library

[Request] Lua script helper library

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

Post Reply
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

[Request] Lua script helper library

Post by AF »

Ok we can do all this fancy stuff btu there's no simple way to draw a rectangle or a circle or a sphere etc, all these openGL things the average user sees as jargonese.

I'm not asking for a windowing kit or a do everything library, just something to wrap up basic actions like 'draw rectangle on map here' ' draw text at xyz size I colour J' ' Draw image Y on world at XYZ of size IJ' ' Draw icon on screen at position XY' etc.....

A user should be able to create a very simple UI widget without needing to know a single thing about openGL.
User avatar
TheFatController
Balanced Annihilation Developer
Posts: 1177
Joined: 10 Dec 2006, 18:46

Post by TheFatController »

That would be awesome
User avatar
SinbadEV
Posts: 6475
Joined: 02 May 2005, 03:56

Post by SinbadEV »

Since we're code begzoring anyways, let me say what I want.

Basically what I'm looking for would be for a simple LUA XML parser (or similar definition file) that would allow the definition of GUI elements and display game variables and trigger script procedures... this framework would the be accessible using a simple parent-child object model in LUA and could have as much or as little code attached to it as needed...

but just making it as easy as, a "shape" object with top, left, height, width, and some way to capture mouseoverXY/mousedownXY/mouseupXY would be enough to get most of us marginally interested in learning to script LUA started.
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Post by imbaczek »

XML is an overkill, just use tables for the same effect.
User avatar
jcnossen
Former Engine Dev
Posts: 2440
Joined: 05 Jun 2005, 19:13

Post by jcnossen »

Its easier to just use lua to specify data.. and more flexible too. If you dont use anything but tables within the definition files then people who dont know lua can understand it as well.
Post Reply

Return to “Lua Scripts”