image: Difference between revisions
Jump to navigation
Jump to search
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...) |
Lou Montana (talk | contribs) m (Text replacement - ">Posted on March ([0-9]{2})[ a-zA-Z]*, ([0-9]{4})" to ">Posted on $2-03-$1") |
||
(33 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=command | ||
| arma1 | |game1= arma1 | ||
|version1= 1.00 | |||
|1.00 | |game2= arma2 | ||
|version2= 1.00 | |||
|game3= arma2oa | |||
|version3= 1.50 | |||
|game4= tkoh | |||
|version4= 1.00 | |||
|game5= arma3 | |||
|version5= 0.50 | |||
|gr1= Strings | |gr1= Strings | ||
Line 11: | Line 22: | ||
|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. | |descr= Creates a structured text containing the given image. Use [[setAttributes]] to set additional [[Structured_Text#Attributes | attributes]] on the image. | ||
| | |s1= [[image]] filename | ||
|p1= filename: [[String]] | |p1= filename: [[String]] | ||
| [[Structured Text]] | |r1= [[Structured Text]] | ||
|x1 = < | |x1= <sqf>hint composeText ["Image: ", image "\a3\Data_f\Flags\flag_Altis_co.paa"];</sqf> | ||
|x2 = < | |x2= <sqf>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</sqf> | ||
|seealso= [[setAttributes]] [[parseText]] [[text]] [[composeText]] [[lineBreak]] | |||
}} | }} | ||
<dl class="command_description"> | <dl class="command_description"> | ||
<dd class="notedate">Posted on | <dt><dt> | ||
<dt class="note">[[User:Spooner|Spooner]] | <dd class="notedate">Posted on 2009-03-21</dd> | ||
<dt class="note">[[User:Spooner|Spooner]]</dt> | |||
<dd class="note">Although there is a dedicated [[image]] command, [[parseText]] gives more options: | <dd class="note">Although there is a dedicated [[image]] command, [[parseText]] gives more options: | ||
< | <sqf>_imageText = parseText "<img size='5' color='#ff0000' image='fish.paa'/>"</sqf> | ||
</dl> | </dl> | ||
Latest revision as of 23:06, 13 May 2023
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:
- 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:
- setAttributes parseText text composeText lineBreak
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
Categories:
- Scripting Commands
- Introduced with Armed Assault version 1.00
- ArmA: Armed Assault: New Scripting Commands
- ArmA: Armed Assault: Scripting Commands
- Arma 2: Scripting Commands
- Arma 2: Operation Arrowhead: Scripting Commands
- Take On Helicopters: Scripting Commands
- Arma 3: Scripting Commands
- Command Group: Strings
- Command Group: GUI Control
- Command Group: Structured Text