image: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) (see also) |
m (template:command argument fix) |
||
Line 7: | Line 7: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Creates a structured text containing the given image. Use [[setAttributes]] to set additional [[Structured_Text#Attributes | attributes]] on the image. |= | | Creates a structured text containing the given image. Use [[setAttributes]] to set additional [[Structured_Text#Attributes | attributes]] on the image. |DESCRIPTION= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| '''image''' filename |= | | '''image''' filename |SYNTAX= | ||
|p1= filename: [[String]] |= | |p1= filename: [[String]] |PARAMETER1= | ||
| [[Structured Text]] |= | | [[Structured Text]] |RETURNVALUE= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|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> |EXAMPLE1= | ||
|x2 = <code>[[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</code> |= | |x2 = <code>[[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</code> |EXAMPLE2= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[setAttributes]], [[parseText]], [[text]], [[composeText]], [[lineBreak]] |= | | [[setAttributes]], [[parseText]], [[text]], [[composeText]], [[lineBreak]] |SEEALSO= | ||
}} | }} |
Revision as of 14:41, 7 April 2019
Description
- Description:
- Creates a structured text containing the given image. Use setAttributes to set additional attributes on the image.
- Groups:
- Uncategorised
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
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
- 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'/>"