Drag'n'Drop build order

Drag'n'Drop build order

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

Moderator: Moderators

Post Reply
User avatar
Ling_Lover
Posts: 100
Joined: 26 Sep 2006, 11:50

Drag'n'Drop build order

Post by Ling_Lover »

Well, I've just read something interesting on this site:
http://ton-of-clay.blogspot.com/2006/09 ... tream.html
that i found in the EE thread...

now, they mention the idea of having drag'n'drop build orders by the small boxes you can see at the bottom of the screen... as in, you can change what order the units are building in, and the buildings (and their order being built) is shown down the bottom...

so, is it possible to do this with the LUA UI?

if it is... can someone show me how?
trepan
Former Engine Dev
Posts: 1200
Joined: 17 Nov 2005, 00:52

Post by trepan »

so, is it possible to do this with the LUA UI?

Yes.
(note that re-arranging queues could be bandwidth intensive)

if it is... can someone show me how?

You might want to wait until 0.74b3 is released with its default LuaUI
files. I won't have much time to help anyone until that's been completed.
If you don't already know Lua, then now is a good time to learn ;)

P.S. The spring network protocol is not very friendly for this kind of
queue manipulation. You might be able to play some tricks with the
ALT and RIGHT modifiers (depending on the unit types), but a full
queue rebuild will be necessary in some cases.
User avatar
Ling_Lover
Posts: 100
Joined: 26 Sep 2006, 11:50

Post by Ling_Lover »

i dont really know LUA, but i've been modifying one of your gui files with resonable results...

but i do use ASP which seems to be similar in structure to Lua...

i'm just not sure about how to access the information i need, or set the information (build queues)
Post Reply

Return to “Lua Scripts”