GameSetup

GameSetup

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

Moderator: Moderators

Post Reply
trepan
Former Engine Dev
Posts: 1200
Joined: 17 Nov 2005, 00:52

GameSetup

Post by trepan »

Draw you own game setup information.
Change the status colors, font sizes, locations.
Add extra player information like country and rank (not shown).

Image

The call-in:

Code: Select all

GameSetup(state, playerStates = { [playerID] = "playerState" }) ->
  bool luaWillDraw[, number readyX1, number readyY1, number readyX2, number readyY2]

playerState = "missing" | "notready" | "ready"
trepan
Former Engine Dev
Posts: 1200
Joined: 17 Nov 2005, 00:52

Post by trepan »

Changed to:

Code: Select all

GameSetup(string "state", bool inReady, playerStates = { [playerID] = "playerState" }) ->
  bool luaWillDraw, bool outReady

playerState = "missing" | "notready" | "ready"
inReady = the user is ready
outReady = make the user ready (if startPos is assigned)
Post Reply

Return to “Lua Scripts”