Ui::displayHelpTextFromStringLabel: Difference between revisions

From RAGE Multiplayer Wiki
No edit summary
Line 11: Line 11:
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
// todo
mp.game.ui.setTextComponentFormat('STRING');
mp.game.ui.addTextComponentSubStringPlayerName('Hit ~INPUT_CONTEXT~ to do something');
mp.game.ui.displayHelpTextFromStringLabel(0, true, true, -1);
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Ui_s_function_c}}
{{Ui_s_function_c}}

Revision as of 12:09, 26 August 2018

shape goes from -1 to 50 (may be more).
p0 is always 0.

Example:
void FloatingHelpText1(char* text)
{
BEGIN_TEXT_COMMAND_DISPLAY_HELP('STRING');
ADD_TEXT_COMPONENT_SUBSTRING_PLAYER_NAME(text);
END_TEXT_COMMAND_DISPLAY_HELP (0, 0, 1, -1);
}

Image:
- imgbin.org/images/26209.jpg

more inputs/icons: (scroll to line 377 and below)
- pastebin.com/nqNYWMSB

Used to be known as _DISPLAY_HELP_TEXT_FROM_STRING_LABEL

Syntax

mp.game.ui.displayHelpTextFromStringLabel(p0, loop, beep, shape);

Required Arguments

  • p0: unknown (to be checked)
  • loop: Boolean
  • beep: Boolean
  • shape: int

Return value

  • Undefined

Example

mp.game.ui.setTextComponentFormat('STRING');
mp.game.ui.addTextComponentSubStringPlayerName('Hit ~INPUT_CONTEXT~ to do something');
mp.game.ui.displayHelpTextFromStringLabel(0, true, true, -1);

See also