setUserActionText: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Changes action texts. |= Description
| Changes user added action menu item text. |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 16: Line 16:
|p2= [index, text, textDefault, textToolTip]: [[Array]]  |= PARAMETER2  
|p2= [index, text, textDefault, textToolTip]: [[Array]]  |= PARAMETER2  


|p3= index: [[Number]] |= PARAMETER3  
|p3= index: [[Number]] - Action id returned by [[addAction]] |= PARAMETER3  


|p4= text: [[String]] |= PARAMETER4  
|p4= text: [[String]] - Normal text or [[Structured Text]] |= PARAMETER4  


|p5= textDefault: [[String]]  |= PARAMETER5  
|p5= textDefault: [[String]]  |= PARAMETER5  
Line 27: Line 27:




|x1= <code>player setUserActionText [0, "Hello"]</code>|= EXAMPLE1  
|x1= <code>_id = [[player]] [[addAction]] ["Hello", ""];
[[player]] [[setUserActionText]] [_id, "Good Bye"]</code>|= EXAMPLE1  


____________________________________________________________________________________________
____________________________________________________________________________________________


| |= SEEALSO  
| [[addAction]] |= SEEALSO  


|  |= MPBEHAVIOUR  
|  |= MPBEHAVIOUR  

Revision as of 03:24, 24 August 2013

Hover & click on the images for description

Description

Description:
Changes user added action menu item text.
Groups:
Uncategorised

Syntax

Syntax:
unit setUserActionText [index, text, textDefault, textToolTip]
Parameters:
unit: Object
[index, text, textDefault, textToolTip]: Array
index: Number - Action id returned by addAction
text: String - Normal text or Structured Text
textDefault: String
textToolTip: String
Return Value:
Nothing

Examples

Example 1:
_id = player addAction ["Hello", ""]; player setUserActionText [_id, "Good Bye"]

Additional Information

See also:
addAction

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

Notes

Bottom Section