Ui::drawSubtitleTimed: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
(yay)
Line 1: Line 1:
Draws the subtitle at middle center of the screen.<br><br>int duration = time in milliseconds to show text on screen before disappearing<br><br>drawImmediately = If true, the text will be drawn immediately, if false, the text will be drawn after the previous subtitle has finished<br><br>Used to be known as _DRAW_SUBTITLE_TIMED
Draws the subtitle at middle center of the screen.<br><br>int duration = time in milliseconds to show text on screen before disappearing<br><br>drawImmediately = If true, the text will be drawn immediately, if false, the text will be drawn after the previous subtitle has finished<br><br>Used to be known as _DRAW_SUBTITLE_TIMED
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">ui.drawSubtitleTimed(time, p1);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.ui.drawSubtitleTimed(time, p1);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''time:''' int
*'''time:''' int
Line 9: Line 9:
==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

Draws the subtitle at middle center of the screen.

int duration = time in milliseconds to show text on screen before disappearing

drawImmediately = If true, the text will be drawn immediately, if false, the text will be drawn after the previous subtitle has finished

Used to be known as _DRAW_SUBTITLE_TIMED

Syntax

mp.game.ui.drawSubtitleTimed(time, p1);

Required Arguments

  • time: int
  • p1: Boolean

Return value

  • Undefined

Example

// todo

See also