Ui::drawSubtitleTimed: Difference between revisions

From RAGE Multiplayer Wiki
No edit summary
mNo edit summary
 
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">mp.game.ui.drawSubtitleTimed(time, p1);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.ui.drawSubtitleTimed(time, drawImmediately);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''time:''' int
*'''time:''' int
*'''p1:''' Boolean
*'''drawImmediately:''' Boolean
===Return value===
===Return value===
*'''Undefined'''
*'''Undefined'''

Latest revision as of 07:18, 24 February 2019

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, drawImmediately);

Required Arguments

  • time: int
  • drawImmediately: Boolean

Return value

  • Undefined

Example

// todo

See also