Description
Changes user added action (see addAction) menu item text.
Syntax
object setUserActionText [actionIndex, textMenu, textWindowBackground, textWindowForeground]
Parameters:
object: Object - object the action is added toactionIndex: Number - action id returned by addActiontextMenu: String or Structured Text - text title shown in scroll action menutextWindowBackground: String or Structured Text - (Optional, default "") background text (since arma3 1.62)textWindowForeground: String or Structured Text - (Optional, default "") foreground text (since arma3 1.62)
Returns: Nothing
Examples
Example 1
_id = player addAction ["Hello", ""];
player setUserActionText [_id, "Good Bye"];
Example 2
_id = billboard addAction ["Some Action", {}];
billboard setUserActionText [
_id,
"Some Action",
"<t color='#ff0000'>Background-----------------</t>
Multiline
Multiline
Multiline
. . .",
"<t color='#00ff00'>-----------------Foreground</t>"
];
See also
actionIDs · actionParams · addAction · inGameUISetEventHandler · showHUD · inputAction · removeAction · removeAllActions · action