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)
m (Text replacement - " |r1=[[" to " |r1= [[")
 
(22 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 +
{{RV|type=function
  
{{Function|= Comments
+
|game1= arma3
____________________________________________________________________________________________
+
|version1= 1.08
  
| arma3 |= Game name
+
|gr1= Diagnostic
  
|1.08|= Game version
+
|descr= Imports CfgVehicles image links from Community Wiki (https://community.bistudio.com/).
____________________________________________________________________________________________
+
# Run the script. It will copy a text into clipboard
 +
# Open your [[Special:MyPage/Sandbox|Sandbox]] and paste the text into edit field
 +
# '''Preview''' the page (don't save it)
 +
# Copy the resulting text and use it in your scripts
  
| <pre>/*
+
Result is to the following format:
 +
<code>_imagesCfgVehicles {{=}} [
 +
"papercar","{{filepath:Arma3 CfgVehicles PaperCar.jpg}}",
 +
"firesectortarget","{{filepath:Arma3 CfgVehicles FireSectorTarget.jpg}}",
 +
"building","{{filepath:Arma3 CfgVehicles Building.jpg}}",
 +
(…)
 +
];</code>
  
Description:
+
{{Feature|important|
Imports CfgVehicles image links from Community Wiki (https://community.bistudio.com/)
+
Be wary that '''this function is CPU-demanding''' and may lock your computer for 5-10 seconds!}}
  
1) Run the script. It will copy a text into clipboard
+
|s1= call [[BIS_fnc_importImageLinks]];
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):
+
|r1= [[Boolean]] - [[true]] when done
NONE
 
  
Returns:
+
|x1= <code>[[call]] [[BIS_fnc_importImageLinks]];</code>
BOOL
 
*/
 
 
 
</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
 
____________________________________________________________________________________________
 
 
 
| <!-- [] call [[BIS_fnc_importImageLinks]]; --> |= Syntax
 
 
 
|p1= |= Parameter 1
 
 
 
| |= Return value
 
____________________________________________________________________________________________
 
 
 
|x1= <code></code> |=
 
____________________________________________________________________________________________
 
 
 
| |= See also
 
  
 +
|seealso= [[Special:Upload|Upload a File on the Wiki]]
 
}}
 
}}
 
<h3 style="display:none">Notes</h3>
 
<dl class="command_description">
 
<!-- Note Section BEGIN -->
 
 
<!-- Note Section END -->
 
</dl>
 
 
<h3 style="display:none">Bottom Section</h3>
 
[[Category:Function Group: Diagnostic|{{uc:importImageLinks}}]]
 
[[Category:Functions|{{uc:importImageLinks}}]]
 
[[Category:{{Name|arma3}}: Functions|{{uc:importImageLinks}}]]
 

Latest revision as of 22:25, 7 August 2021

Hover & click on the images for description

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!
Execution:
call
Groups:
Diagnostic

Syntax

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

Examples

Example 1:
call BIS_fnc_importImageLinks;

Additional Information

See also:
Upload a File on the Wiki

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