setUserActionText: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) (removed redundand params (not available in A3)) |
Lou Montana (talk | contribs) m (Text replacement - "<sqf>([^↵][^\/]*↵[^\/]*)<\/sqf>" to "<sqf> $1 </sqf>") |
||
(49 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=command | ||
| arma3 |= | |game1= arma3 | ||
|version1= 0.50 | |||
| | |arg= global | ||
| | |eff= local | ||
| | |gr1= Interaction | ||
| Changes user added action menu item text. | |descr= [[File:setUserActionText.jpg|right|350px]] Changes user added action (see [[addAction]]) menu item text. <br><br> | ||
| | |s1= object [[setUserActionText]] [actionIndex, textMenu, textWindowBackground, textWindowForeground] | ||
|p1= | |p1= object: [[Object]] - object the action is added to | ||
|p2= [ | |p2= actionIndex: [[Number]] - action id returned by [[addAction]] | ||
|p3= | |p3= textMenu: [[String]] or [[Structured Text]] - text title shown in scroll action menu | ||
|p4= | |p4= textWindowBackground: [[String]] or [[Structured Text]] - (Optional, default "") background text | ||
|p4since= arma3 1.62 | |||
| [[ | |p5= textWindowForeground: [[String]] or [[Structured Text]] - (Optional, default "") foreground text | ||
|p5since= arma3 1.62 | |||
|r1= [[Nothing]] | |||
|x1= < | |x1= <sqf> | ||
_id = player addAction ["Hello", ""]; | |||
player setUserActionText [_id, "Good Bye"]; | |||
</sqf> | |||
|x2= <sqf> | |||
_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>" | |||
]; | |||
</sqf> | |||
| [[addAction]] | |seealso= [[actionIDs]] [[actionParams]] [[addAction]] [[inGameUISetEventHandler]] [[showHUD]] [[inputAction]] [[removeAction]] [[removeAllActions]] [[action]] | ||
}} | }} | ||
Latest revision as of 11:34, 3 September 2024
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:
- Example 2:
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