- Documentation
- Text displays
Category
Text displays
All Lua functions and events in the Text displays category, on the server and the client.
Server functions 20
textCreates a text display: a set of texts drawn on the screens of chosen players, controlled entirely from the server (no client script). You add texts to it (Create Display textDisplayAddText) and observers - the players who see it (textDisplayAddObserver). Useful for simple messages, timers and scores.textCreates a text for a text display. The position is relative to the screen: 0 = left/top edge, 1 = right/bottom, so the text looks the same at any resolution. The text appears only after being added to a display.Create Text Item textRemoves a text display; it disappears from all observers' screens.Destroy Display textRemoves a text item (from all displays as well).Destroy Text Item textShows a display to a player (adds them to the observers).Display Add Observer textAdds a text item to a display; all the display's observers will see it.Display Add Text textReturns the players who see a display.Display Get Observers textChecks whether a player sees a display.Display Is Observer textHides a display from a player.Display Remove Observer textRemoves a text item from a display (the item still exists and can be added again).Display Remove Text textReturns a text item's colour.Item Get Color textReturns a text item's position (0-1 relative to the screen).Item Get Position textReturns a text item's priority (Item Get Priority "low","medium","high").textReturns a text item's scale.Item Get Scale textReturns a text item's text.Item Get Text textChanges a text item's colour.Item Set Color textMoves a text item (position 0-1 relative to the screen).Item Set Position textChanges a text item's priority:Item Set Priority "high"for fast-changing texts (counters),"low"for static ones.textChanges a text item's scale (size).Item Set Scale textChanges a text item's text for all observers (e.g. a countdown).Item Set Text