BIS fnc WLSmoothText: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
(Page filling)
Line 1: Line 1:
{{Function|= Comments
{{Function|Comments=


| arma3 |Game name=
| arma3 |Game name=
Line 5: Line 5:
|1.86|Game version=
|1.86|Game version=


<!---|arg= local |Multiplayer Arguments=--->
|eff= local |Multiplayer Effects=


<!---|eff= local |Multiplayer Effects=--->
| Display given text smoothly. |Description=


| <pre>/*
| [text, nbOfLines, duration, color, outline] [[call]] [[BIS_fnc_WLSmoothText]]|Syntax=
Author: Josef Zemánek


Parameters: 0 - Text (String)
|p1= text: [[String]] - text to display |Parameter 1=
1 - Max number of lines to be shown at the same time (Number)
2 - On-screen duration (Number)
3 - Text color (Array [R,G,B,A])
4 - Text outline (Bool)


Description: Eye-candy text effect.
|p2= nbOfLines: [[Number]] - (Optional, default 3) maximum number of lines to be shown at the same time |Parameter 2=
*/</pre>{{placeholder}}<!-- Remove this after fill-in --> |Description=


|[] call [[BIS_fnc_WLSmoothText]]|Syntax=
|p3= duration: [[Number]] - (Optional, default 5) on-screen duration |Parameter 3=


|p1= parameter: Datatype - (Optional, default defValue) description |Parameter 1=
|p4= color: [[Color]] - (Optional, default [1,1,1,1]) text color |Parameter 4=


|Datatype - description|Return value=
|p5= outline: [[Boolean]] - (Optional, default [[true]]) [[true]] to outline the text, [[false]] not to |Parameter 5=


|x1= <code>[toUpper format ["Hello hidden fx"],2,3,[1,0,0,1],true] spawn BIS_fnc_WLSmoothText; //no sounds, letters appear in a smooth transition</code>|Example 1=  
| [[Nothing]] |Return value=


|exec= call |Execution=
|x1= <code>["Hello, hidden FX", 2, 3, [1,0,0,1], [[true]]] [[spawn]] [[BIS_fnc_WLSmoothText]]; {{cc|no sounds, letters appear in a smooth transition}}</code> |Example 1=


| |See also=
|exec= spawn |Execution=
 
| [[Arma 3 Notification]], [[BIS_fnc_titleText]], [[BIS_fnc_typeText]], [[BIS_fnc_typeText2]] |See also=
}}
}}


[[Category:Function Group: Misc|{{uc:WLSmoothText}}]]
[[Category:Function Group: GUI|{{uc:WLSmoothText}}]]
[[Category:Functions|{{uc:WLSmoothText}}]]
[[Category:Functions|{{uc:WLSmoothText}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:WLSmoothText}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:WLSmoothText}}]]

Revision as of 23:29, 30 August 2019

Hover & click on the images for description

Description

Description:
Display given text smoothly.
Execution:
spawn
Groups:
Uncategorised

Syntax

Syntax:
[text, nbOfLines, duration, color, outline] call BIS_fnc_WLSmoothText
Parameters:
text: String - text to display
nbOfLines: Number - (Optional, default 3) maximum number of lines to be shown at the same time
duration: Number - (Optional, default 5) on-screen duration
color: Color - (Optional, default [1,1,1,1]) text color
outline: Boolean - (Optional, default true) true to outline the text, false not to
Return Value:
Nothing

Examples

Example 1:
["Hello, hidden FX", 2, 3, [1,0,0,1], true] spawn BIS_fnc_WLSmoothText; // no sounds, letters appear in a smooth transition

Additional Information

See also:
Arma 3 NotificationBIS_fnc_titleTextBIS_fnc_typeTextBIS_fnc_typeText2

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