Ui::displayHelpTextFromStringLabel: Difference between revisions

From RAGE Multiplayer Wiki
Line 12: Line 12:
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
mp.game.ui.setTextComponentFormat('STRING');
mp.game.ui.setTextComponentFormat('STRING');
mp.game.ui.addTextComponentSubStringPlayerName('Hit ~INPUT_CONTEXT~ to do something');
mp.game.ui.addTextComponentSubstringPlayerName('Hit ~INPUT_CONTEXT~ to do something');
mp.game.ui.displayHelpTextFromStringLabel(0, true, true, -1);
mp.game.ui.displayHelpTextFromStringLabel(0, true, true, -1);
</syntaxhighlight>
</syntaxhighlight>

Revision as of 12:22, 28 September 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