Ui::setTextWrap

From RAGE Multiplayer Wiki
Revision as of 14:54, 20 May 2017 by StreetGT (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

It sets the text in a specified box and wraps the text if it exceeds the boundries. Both values are for X axis. Useful when positioning text set to center or aligned to the right.

start - left boundry on screen position (0.0 - 1.0)
end - right boundry on screen position (0.0 - 1.0)

Syntax

mp.game.ui.setTextWrap(start, end);

Required Arguments

  • start: float
  • end: float

Return value

  • Undefined

Example

// todo

See also