image: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " \{\{GameCategory *\| *arma1 *\| *(New )?Scripting Commands\}\}" to "")
m (Text replacement - "\|p1= *([^ ]+) +\| *(\[\[.+) +\|x1=" to "|p1= $1 |r1= $2 |x1=")
Line 26: Line 26:
|s1=  '''image''' filename
|s1=  '''image''' filename


|p1= filename: [[String]]
|p1= filename: [[String]]


| [[Structured Text]]
|r1= [[Structured Text]]


|x1= <code>[[hint]] [[composeText]] ["Image: ", [[image]] "\a3\Data_f\Flags\flag_Altis_co.paa"];</code>
|x1= <code>[[hint]] [[composeText]] ["Image: ", [[image]] "\a3\Data_f\Flags\flag_Altis_co.paa"];</code>

Revision as of 04:27, 13 June 2021

Hover & click on the images for description

Description

Description:
Description needed
Groups:
StringsGUI ControlStructured Text

Syntax

Syntax:
image filename
Parameters:
filename: String
Return Value:
Structured Text

Examples

Example 1:
hint composeText ["Image: ", image "\a3\Data_f\Flags\flag_Altis_co.paa"];
Example 2:
hint str (composeText ["Image: ", image "\a3\Data_f\Flags\flag_Altis_co.paa"] == parseText "Image: <img image='\a3\Data_f\Flags\flag_Altis_co.paa'/>"); // true

Additional Information

See also:
setAttributesparseTexttextcomposeTextlineBreak

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
Posted on March 21, 2009
Spooner
Although there is a dedicated image command, parseText gives more options: _imageText = parseText "<img size='5' color='#ff0000' image='fish.paa'/>"