Ui::setTextJustification: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
(yay)
Line 1: Line 1:
Types -<br>0: Center-Justify<br>1: Left-Justify<br>2: Right-Justify<br><br>Right-Justify requires SET_TEXT_WRAP, otherwise it will draw to the far right of the screen
Types -<br>0: Center-Justify<br>1: Left-Justify<br>2: Right-Justify<br><br>Right-Justify requires SET_TEXT_WRAP, otherwise it will draw to the far right of the screen
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">ui.setTextJustification(justifyType);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.ui.setTextJustification(justifyType);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''justifyType:''' int
*'''justifyType:''' int
Line 8: Line 8:
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
todo
// todo
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Ui_function_c}}
{{Ui_s_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Revision as of 21:33, 6 May 2017

Types -
0: Center-Justify
1: Left-Justify
2: Right-Justify

Right-Justify requires SET_TEXT_WRAP, otherwise it will draw to the far right of the screen

Syntax

mp.game.ui.setTextJustification(justifyType);

Required Arguments

  • justifyType: int

Return value

  • Undefined

Example

// todo

See also