calling ui commands

calling ui commands

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

Moderator: Moderators

Post Reply
AnimateDream
Posts: 7
Joined: 30 Sep 2010, 03:40

calling ui commands

Post by AnimateDream »

So how exactly would I go about calling these guys http://springrts.com/wiki/UI_commands
from lua scripts?
User avatar
Niobium
Posts: 456
Joined: 07 Dec 2008, 02:35

Re: calling ui commands

Post by Niobium »

From the wiki:

Code: Select all

Spring.SendCommands
 ( string command1 [, string command2 [ ... ] ] ) -> nil
 ( {string command1, string command2, ...} ) -> nil
i.e. Spring.SendCommands("water 4")
AnimateDream
Posts: 7
Joined: 30 Sep 2010, 03:40

Re: calling ui commands

Post by AnimateDream »

Thank you Niobium. I didn't notice it in the wiki before. :oops:

My attention was initially drawn to Spring.SendLuaUIMsg by the name which I of course found had nothing to do with what I needed.
Post Reply

Return to “Lua Scripts”