Ui::setTextGxtEntry: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
(yay)
Line 1: Line 1:
get's line count<br><br><br>int GetLineCount(char *text, float x, float y)<br> {<br> _SET_TEXT_ENTRY_FOR_LINE_COUNT('STRING');<br>                ADD_TEXT_COMPONENT_SUBSTRING_PLAYER_NAME(text);<br> return _GET_TEXT_SCREEN_LINE_COUNT(x, y);<br> }
get's line count<br><br><br>int GetLineCount(char *text, float x, float y)<br> {<br> _SET_TEXT_ENTRY_FOR_LINE_COUNT('STRING');<br>                ADD_TEXT_COMPONENT_SUBSTRING_PLAYER_NAME(text);<br> return _GET_TEXT_SCREEN_LINE_COUNT(x, y);<br> }
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">ui.setTextGxtEntry(entry);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.ui.setTextGxtEntry(entry);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''entry:''' String
*'''entry:''' String
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

get's line count


int GetLineCount(char *text, float x, float y)
{
_SET_TEXT_ENTRY_FOR_LINE_COUNT('STRING');
ADD_TEXT_COMPONENT_SUBSTRING_PLAYER_NAME(text);
return _GET_TEXT_SCREEN_LINE_COUNT(x, y);
}

Syntax

mp.game.ui.setTextGxtEntry(entry);

Required Arguments

  • entry: String

Return value

  • Undefined

Example

// todo

See also