menuPicture: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (2nd syntax, example and see also)
m (fixed wrong syntax)
Line 9: Line 9:
| Returns picture set into item on given path. |DESCRIPTION=
| Returns picture set into item on given path. |DESCRIPTION=


| [[menuPicture]] idc |SYNTAX=
| [[menuPicture]] [idc, path] |SYNTAX=


|p1= idc: [[Number]] |PARAMETER1=
|p1= idc: [[Number]] |PARAMETER1=
|p2= path: [[Array]] |PARAMETER2=


| [[String]] |RETURNVALUE=
| [[String]] |RETURNVALUE=


|s2= [[menuPicture]] control |Alternative Syntax=
|s2= control  [[menuPicture]] path |Alternative Syntax=


|p21= control: [[Control]] |Alternative Parameter 1=
|p21= control: [[Control]] |Alternative Parameter 1=
|p22= path: [[Array]] |Alternative Parameter 2=


|r2=  [[String]] |Alternative Return Value=
|r2=  [[String]] |Alternative Return Value=


|x1=  <Code>_picturePath = [[menuPicture]] ([[findDisplay]] 313 [[displayCtrl]] 120);</code>|EXAMPLE1=
|x1=  <Code>_picturePath = ([[findDisplay]] 313 [[displayCtrl]] 120) [[menuPicture]] [0, 1];</code>|EXAMPLE1=
 


| [[menuSetPicture]] |SEEALSO=
| [[menuSetPicture]] |SEEALSO=

Revision as of 10:15, 19 October 2020

Hover & click on the images for description

Description

Description:
Returns picture set into item on given path.
Groups:
GUI Control - Menu

Syntax

Syntax:
menuPicture [idc, path]
Parameters:
idc: Number
path: Array
Return Value:
String

Alternative Syntax

Syntax:
control menuPicture path
Parameters:
control: Control
path: Array
Return Value:
String

Examples

Example 1:
_picturePath = (findDisplay 313 displayCtrl 120) menuPicture [0, 1];

Additional Information

See also:
menuSetPicture

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