BIS fnc dynamicText: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|seealso= ([^ ]+)(\]\]|\}\}), *(\[\[|\{\{)" to "|seealso= $1$2 $3")
m (That nowiki stuff was unnecessary)
 
(3 intermediate revisions by one other user not shown)
Line 15: Line 15:


|descr= Shows dynamic opening credits or any type of text.<br>
|descr= Shows dynamic opening credits or any type of text.<br>
[[File:BIS fnc dynamicText_v2.gif|left|400px]]
[[File:BIS_fnc_dynamicText_v2.gif|left|400px]]


|s1= [text, x, y, duration, fadeInTime, deltaY, rscLayer] spawn [[BIS_fnc_dynamicText]]
|s1= [text, x, y, duration, fadeInTime, deltaY, rscLayer] spawn [[BIS_fnc_dynamicText]]
Line 47: Line 47:
|r1= [[Nothing]]
|r1= [[Nothing]]


|x1= <code>["<nowiki><t color='#ff0000' size='.8'>Warning!<br />Stop doing what you are doing</t></nowiki>",-1,-1,4,1,0,789] spawn [[BIS_fnc_dynamicText]];</code>
|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


|seealso= [[BIS_fnc_infoText]] [[BIS_fnc_textTiles]] [[BIS_fnc_typeText]] [[BIS_fnc_typeText2]], [[BIS_fnc_EXP_camp_SITREP]]
|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

Hover & click on the images for description

Description

Description:
Shows dynamic opening credits or any type of text.
BIS fnc dynamicText v2.gif
Execution:
spawn
Groups:
GUI

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)
  • Number - Position in x
  • Array
    • 0: Position in x
    • 1: Width of the control
y: Number or Array - (Optional, default -1)
  • Number - Position in y
  • Array
    • 0: Position in y
    • 1: Height of the control
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
duration and the absolute deltaY value will influence the movement speed.
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