Перейти к содержанию

Ui::setTextWrap

Материал из RAGE MP Wiki Archive
Версия от 14:54, 20 мая 2017; imported>StreetGT
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

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

<syntaxhighlight lang="javascript">mp.game.ui.setTextWrap(start, end);</syntaxhighlight>

Required Arguments

  • start: float
  • end: float

Return value

  • Undefined

Example

<syntaxhighlight lang="javascript"> // todo </syntaxhighlight>

See also