BIS fnc dynamicText: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl>" to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("server" o...) |
||
Line 1: | Line 1: | ||
{{Function | {{Function | ||
| arma2oa | | arma2oa | ||
|1.00 | |1.00 | ||
|gr1= GUI | |gr1= GUI | ||
| Shows dynamic opening credits or any type of text. | | Shows dynamic opening credits or any type of text. | ||
[[File:BIS fnc dynamicText_v2.gif|left|400px]] | [[File:BIS fnc dynamicText_v2.gif|left|400px]] | ||
| [text, x, y, duration, fadeInTime, deltaY, rscLayer] spawn [[BIS_fnc_dynamicText]] | | [text, x, y, duration, fadeInTime, deltaY, rscLayer] spawn [[BIS_fnc_dynamicText]] | ||
|p1= text: [[String]] - text to display | |p1= text: [[String]] - text to display | ||
|p2= x: [[Number]] - (Optional, default -1) X coordinates | |p2= x: [[Number]] - (Optional, default -1) X coordinates | ||
|p3= y: [[Number]] - (Optional, default -1) Y coordinates) | |p3= y: [[Number]] - (Optional, default -1) Y coordinates) | ||
|p4= duration: [[Number]] - (Optional, default 4) display duration | |p4= duration: [[Number]] - (Optional, default 4) display duration | ||
|p5= fadeInTime: [[Number]] - (Optional, default 1) fade-in time | |p5= fadeInTime: [[Number]] - (Optional, default 1) fade-in time | ||
|p6= deltaY: [[Number]] - (Optional, default 0) Y position delta: | |p6= deltaY: [[Number]] - (Optional, default 0) Y position delta: | ||
Line 26: | Line 26: | ||
* > 0: Text will move down | * > 0: Text will move down | ||
* < 0: Text will move up | * < 0: Text will move up | ||
''duration'' and the absolute ''deltaY'' value will influence the movement speed. | ''duration'' and the absolute ''deltaY'' value will influence the movement speed. | ||
|p7= rscLayer: [[Number]] - (Optional, default) resource layer | |p7= rscLayer: [[Number]] - (Optional, default) resource layer | ||
| [[Nothing]] | | [[Nothing]] | ||
|x1= <code>["<t color='#ff0000' size = '.8'>Warning!<nowiki><br /></nowiki>Stop doing what you are doing</t>",-1,-1,4,1,0,789] spawn [[BIS_fnc_dynamicText]];</code> | |x1= <code>["<t color='#ff0000' size = '.8'>Warning!<nowiki><br /></nowiki>Stop doing what you are doing</t>",-1,-1,4,1,0,789] spawn [[BIS_fnc_dynamicText]];</code> | ||
|exec= spawn |Execution= | |exec= spawn |Execution= | ||
| [[BIS_fnc_infoText]], [[BIS_fnc_textTiles]], [[BIS_fnc_typeText]], [[BIS_fnc_typeText2]], [[BIS_fnc_EXP_camp_SITREP]] | | [[BIS_fnc_infoText]], [[BIS_fnc_textTiles]], [[BIS_fnc_typeText]], [[BIS_fnc_typeText2]], [[BIS_fnc_EXP_camp_SITREP]] | ||
}} | }} | ||
Revision as of 23:01, 17 January 2021
Description
Syntax
- Syntax:
- [text, x, y, duration, fadeInTime, deltaY, rscLayer] spawn BIS_fnc_dynamicText
- Parameters:
- text: String - text to display
- x: Number - (Optional, default -1) X coordinates
- y: Number - (Optional, default -1) Y coordinates)
- duration: Number - (Optional, default 4) display duration
- fadeInTime: Number - (Optional, default 1) fade-in time
- deltaY: Number - (Optional, default 0) Y position delta:
- = 0: Text will not move
- > 0: Text will move down
- < 0: Text will move up
- rscLayer: Number - (Optional, default) resource layer
- Return Value:
- Nothing
Examples
- Example 1:
["<t color='#ff0000' size = '.8'>Warning!<br />Stop doing what you are doing</t>",-1,-1,4,1,0,789] spawn BIS_fnc_dynamicText;
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