BIS fnc dynamicText: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " \| *(x[0-9]|p[0-9]{1,2}|descr|game[0-9]|version[0-9]|s[0-9]|exec|r[0-9]|arg|eff|branch|serverExec|gr[0-9]|mp|pr|seealso) +=" to " |$1=")
mNo edit summary
Line 21: Line 21:
|p1= text: [[String]] - text to display
|p1= text: [[String]] - text to display


|p2= x: [[Number]] - (Optional, default -1) X coordinates
|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) Y coordinates
|p3= y: [[Number]] - (Optional, default -1) Y coordinates

Revision as of 00:34, 11 June 2021

{{RV|type=function

|game1= arma2oa |version1= 1.50

|game2= tkoh |version2= 1.00

|game3= arma3 |version3= 0.50

|gr1= GUI

|eff= local

|descr= Shows dynamic opening credits or any type of text.

BIS fnc dynamicText v2.gif

|s1= [text, x, y, duration, fadeInTime, deltaY, rscLayer] spawn BIS_fnc_dynamicText

|p1= text: String - text to display

|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) Y coordinates

|p4= duration: Number - (Optional, default 4) display duration

|p5= fadeInTime: Number - (Optional, default 1) fade-in time

|p6= 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.

|p7= rscLayer: Number - resource layer

|r1= Nothing

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

|exec= spawn

|seealso= BIS_fnc_infoText, BIS_fnc_textTiles, BIS_fnc_typeText, BIS_fnc_typeText2, BIS_fnc_EXP_camp_SITREP }}