BIS fnc dynamicText: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "\[\[[cC]ategory:[fF]unctions\|\{\{uc:[a-z A-Z_]*\}\}\]\]" to "") |
m (That nowiki stuff was unnecessary) |
||
(15 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{RV|type=function | {{RV|type=function | ||
| arma2oa | |game1= arma2oa | ||
|version1= 1.50 | |||
|1.00 | |game2= tkoh | ||
|version2= 1.00 | |||
|game3= arma3 | |||
|version3= 0.50 | |||
|gr1= GUI | |gr1= GUI | ||
| | |eff= local | ||
| [text, x, y, duration, fadeInTime, deltaY, rscLayer] spawn [[BIS_fnc_dynamicText]] | |descr= Shows dynamic opening credits or any type of text.<br> | ||
[[File:BIS_fnc_dynamicText_v2.gif|left|400px]] | |||
|s1= [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) | |p2= x: [[Number]] or [[Array]] - (Optional, default -1) | ||
* [[Number]] - Position in x | |||
* [[Array]] | |||
** 0: Position in x | |||
** 1: Width of the control | |||
|p3= y: [[Number]] - (Optional, default -1) | |p3= y: [[Number]] or [[Array]] - (Optional, default -1) | ||
* [[Number]] - Position in y | |||
* [[Array]] | |||
** 0: Position in y | |||
** 1: Height of the control | |||
|p4= duration: [[Number]] - (Optional, default 4) display duration | |p4= duration: [[Number]] - (Optional, default 4) display duration | ||
Line 28: | Line 43: | ||
''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]] - | |p7= rscLayer: [[Number]] - resource layer | ||
| [[Nothing]] | |r1= [[Nothing]] | ||
|x1= < | |x1= <sqf>["<t color='#ff0000' size='.8'>Warning!<br />Stop doing what you are doing</t>",-1,-1,4,1,0,789] spawn BIS_fnc_dynamicText;</sqf> | ||
|exec= spawn | |exec= spawn | ||
| [[BIS_fnc_infoText]] | |seealso= [[BIS_fnc_infoText]] [[BIS_fnc_textTiles]] [[BIS_fnc_typeText]] [[BIS_fnc_typeText2]] [[BIS_fnc_EXP_camp_SITREP]] | ||
}} | }} | ||
Latest revision as of 18:13, 21 October 2022
Description
Syntax
- Syntax:
- [text, x, y, duration, fadeInTime, deltaY, rscLayer] spawn BIS_fnc_dynamicText
- Parameters:
- text: String - text to display
- x: Number or Array - (Optional, default -1)
- y: Number or Array - (Optional, default -1)
- 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 - 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
- See also:
- BIS_fnc_infoText BIS_fnc_textTiles BIS_fnc_typeText BIS_fnc_typeText2 BIS_fnc_EXP_camp_SITREP
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