BIS fnc textTiles: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (seeAlso edited) |
Lou Montana (talk | contribs) (page refactor) |
||
Line 8: | Line 8: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | Show animated text with background tiles. Can be used to display mission name. |= Description | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | [''content'', ''position'', ''tileSize'', ''duration'', ''fadeInOutTime'', ''tileTransparency''] spawn [[BIS_fnc_textTiles]] |= Syntax | ||
|p1= |= Parameter 1 | |p1= content: [[String]] (picture path) or [[Structured Text]] |= Parameter 1 | ||
|p2= position: [[Boolean]] optional, default [0,0,1,1] (true = "mission" area in layout options, false = full screen) or [[Array]] (format [X, Y, Width, Height]) |= Parameter 2 | |||
|p3= tileSize: [[Number]] or [[Array]] optional, default 10 ([10,10]) (format [Width, Height]) |= Parameter 3 | |||
|p4= duration: [[Number]] optional, default 5 (in seconds) |= Parameter 4 | |||
|p5= fadeInOutTime: [[Number]] or [[Array]] [fadeIn, fadeOut] optional, default 0 (in seconds) |= Parameter 5 | |||
|p6= tileTransparency: [[Number]] optional, default 0.3 (in range 0..1) |= Parameter 6 | |||
| |= Return value | | [[Boolean]] |= Return value | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code><nowiki>[</nowiki>[[parseText]] | |x1= <code><nowiki>[</nowiki>[[parseText]] "<t font='PuristaBold' size='1.6'>MyMission</t><br />by Username", [[true]], [[nil]], 7, 0.7, 0] [[spawn]] [[BIS_fnc_textTiles]]</code> |= | ||
|x2= <code>["path\to\image.paa"] [[spawn]] [[BIS_fnc_textTiles]]</code> |= | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Revision as of 23:53, 23 January 2018
Description
- Description:
- Show animated text with background tiles. Can be used to display mission name.
- Execution:
- call
- Groups:
- Uncategorised
Syntax
- Syntax:
- [content, position, tileSize, duration, fadeInOutTime, tileTransparency] spawn BIS_fnc_textTiles
- Parameters:
- content: String (picture path) or Structured Text
- position: Boolean optional, default [0,0,1,1] (true = "mission" area in layout options, false = full screen) or Array (format [X, Y, Width, Height])
- tileSize: Number or Array optional, default 10 ([10,10]) (format [Width, Height])
- duration: Number optional, default 5 (in seconds)
- fadeInOutTime: Number or Array [fadeIn, fadeOut] optional, default 0 (in seconds)
- tileTransparency: Number optional, default 0.3 (in range 0..1)
- Return Value:
- Boolean
Examples
- Example 1:
[parseText "<t font='PuristaBold' size='1.6'>MyMission</t><br />by Username", true, nil, 7, 0.7, 0] spawn BIS_fnc_textTiles
- Example 2:
["path\to\image.paa"] spawn BIS_fnc_textTiles
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