Difference between revisions of "BIS fnc importImageLinks"

From Bohemia Interactive Community
Jump to navigation Jump to search
m (GVI 1.00 --> 1.08 http://dev.arma3.com/post/spotrep-00016)
(Page filling)
Line 1: Line 1:
 
 
{{Function|= Comments
 
{{Function|= Comments
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
Line 8: Line 7:
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
| <pre>/*
+
| Imports CfgVehicles image links from Community Wiki (https://community.bistudio.com/).
 
+
# Run the script. It will copy a text into clipboard
Description:
+
# Open your [[Special:MyPage/Sandbox|Sandbox]] and paste the text into edit field
Imports CfgVehicles image links from Community Wiki (https://community.bistudio.com/)
+
# '''Preview''' the page (don't save it)
 
+
# Copy the resulting text and use it in your scripts
1) Run the script. It will copy a text into clipboard
 
2) Start a new Community Wiki page and paste the text into edit field
 
3) Preview the page (don't save it)
 
4) Copy the resulting text and use it in your scripts
 
 
 
Parameter(s):
 
NONE
 
  
Returns:
+
Result is to the following format:
BOOL
+
<code>_imagesCfgVehicles {{=}} [
*/
+
"papercar","{{filepath:Arma3 CfgVehicles PaperCar.jpg}}",
 +
"firesectortarget","{{filepath:Arma3 CfgVehicles FireSectorTarget.jpg}}",
 +
"building","{{filepath:Arma3 CfgVehicles Building.jpg}}",
 +
(…)
 +
];</code>
  
</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
+
{{Important|
 +
Be wary that '''this function is CPU-demanding''' and may lock your computer for 5-10 seconds!}} |= Description
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
| <!-- [] call [[BIS_fnc_importImageLinks]]; --> |= Syntax
+
| call [[BIS_fnc_importImageLinks]]; |= Syntax
  
|p1= |= Parameter 1
+
| [[Boolean]] - [[true]] when done |= Return value
 
 
| |= Return value
 
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
|x1= <code></code> |=  
+
|x1= <code>[[call]] [[BIS_fnc_importImageLinks]];</code> |= Example 1
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
| |= See also
+
| [[Special:Upload|Upload a File on the Wiki]] |= See also
 
 
 
}}
 
}}
  

Revision as of 00:03, 7 May 2018

Introduced with Arma 3 version 1.081.08
Hover & click on the images for descriptions

Description

Description:
Imports CfgVehicles image links from Community Wiki (https://community.bistudio.com/).
  1. Run the script. It will copy a text into clipboard
  2. Open your Sandbox and paste the text into edit field
  3. Preview the page (don't save it)
  4. Copy the resulting text and use it in your scripts
Result is to the following format: _imagesCfgVehicles = [ "papercar","https://community.bistudio.com/wikidata/images/8/85/Arma3_CfgVehicles_PaperCar.jpg", "firesectortarget","", "building","", (…) ];
Be wary that this function is CPU-demanding and may lock your computer for 5-10 seconds!

Syntax

Syntax:
call BIS_fnc_importImageLinks;
Return Value:
Boolean - true when done

Examples

Example 1:
call BIS_fnc_importImageLinks;

Additional Information

Execution:
call
See also:
Upload a File on the Wiki

Notes

i
Only post proven facts here. Report bugs on the feedback tracker. Use the Talk page or the Forums for discussions.

Notes

Bottom Section