Ui::setTextWrap: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
No edit summary
 
Line 14: Line 14:
{{Ui_s_function_c}}
{{Ui_s_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:UI API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Latest revision as of 14:54, 20 May 2017

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