image: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...) |
||
Line 1: | Line 1: | ||
{{Command | {{Command | ||
| arma1 | | arma1 | ||
|1.00 | |1.00 | ||
|gr1= Strings | |gr1= Strings | ||
|gr2= GUI Control | |gr2= GUI Control | ||
|gr3= Structured Text | |gr3= Structured Text | ||
| 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. | ||
| '''image''' filename | | '''image''' filename | ||
|p1= filename: [[String]] | |p1= filename: [[String]] | ||
| [[Structured Text]] | | [[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> | ||
|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> | ||
| [[setAttributes]], [[parseText]], [[text]], [[composeText]], [[lineBreak]] | | [[setAttributes]], [[parseText]], [[text]], [[composeText]], [[lineBreak]] | ||
}} | }} |
Revision as of 00:42, 18 January 2021
Description
- Description:
- Creates a structured text containing the given image. Use setAttributes to set additional attributes on the image.
- 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
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'/>"
Bottom Section
Categories:
- Scripting Commands
- Introduced with Armed Assault version 1.00
- ArmA: Armed Assault: New Scripting Commands
- ArmA: Armed Assault: Scripting Commands
- Command Group: Strings
- Command Group: GUI Control
- Command Group: Structured Text
- Arma 2: Scripting Commands
- Arma 3: Scripting Commands
- Take On Helicopters: Scripting Commands