setUserActionText: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^ ]*)<\/code>" to "$1$2</code>") |
Lou Montana (talk | contribs) m (Text replacement - "\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^ ]*)<\/code>" to "$1$2</code>") |
||
Line 29: | Line 29: | ||
|x1= <code>_id = [[player]] [[addAction]] ["Hello", ""]; | |x1= <code>_id = [[player]] [[addAction]] ["Hello", ""]; | ||
player | player setUserActionText [_id, "Good Bye"];</code> | ||
|x2= <code>_id = billboard [[addAction]] ["Some Action", {}]; | |x2= <code>_id = billboard [[addAction]] ["Some Action", {}]; |
Revision as of 11:33, 12 May 2022
Description
- Description:
- Changes user added action (see addAction) menu item text.
- Groups:
- Interaction
Syntax
- Syntax:
- object setUserActionText [actionIndex, textMenu, textWindowBackground, textWindowForeground]
- Parameters:
- object: Object - object the action is added to
- actionIndex: Number - action id returned by addAction
- textMenu: String or Structured Text - Text title shown in scroll action menu
- since 1.62
- textWindowBackground: String or Structured Text - (Optional, default "") background text
- since 1.62
- textWindowForeground: String or Structured Text - (Optional, default "") foreground text
- Return Value:
- 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><br>Multiline<br>Multiline<br>Multiline<br>. . .", "<t color='#00ff00'>-----------------Foreground</t>" ];
Additional Information
- See also:
- actionIDs actionParams addAction inGameUISetEventHandler showHUD inputAction removeAction removeAllActions action
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note