Difference between revisions of "Vn ms fnc sfx typeText"
Jump to navigation
Jump to search
(Created page with "{{Function |v= 1.00 |author=Wyqer, veteran29 |a= |e= |g1= sfx |d= <pre>Types a structured text on the screen, letter by letter. Parameter [_lines]: [_lines] -...") |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 17: | Line 17: | ||
2: time to wait after line [NUMBER, defaults to 1]</pre> | 2: time to wait after line [NUMBER, defaults to 1]</pre> | ||
− | |s= [] call [[vn_ms_fnc_sfx_typeText]]; | + | |s= [_lines,_posX,_posY,_rootFormat] call [[vn_ms_fnc_sfx_typeText]]; |
|p1n=_lines | |p1n=_lines | ||
Line 43: | Line 43: | ||
|x1= <code>[ | |x1= <code>[ | ||
− | + | [ | |
− | + | ["Operation: ", "<t align = 'left' shadow = '1' size = '1' font='tt2020style_e_vn_bold'>%1</t>"], | |
− | + | ["Eldest Son"], | |
− | + | ["12th May 1969. 1600h"], | |
− | + | ["SOG CCN, FOB 1, Phu Bai, South Vietnam"], | |
− | + | [" "], | |
− | + | ["Target AO: ", "<t align = 'left' shadow = '1' size = '1' font='tt2020style_e_vn_bold'>%1</t>"], | |
− | + | ["Whiskey 4"] | |
− | + | ] | |
− | + | ] spawn vn_ms_fnc_sfx_typeText;</code> | |
}} | }} |
Latest revision as of 22:43, 4 May 2022
← back to Functions | Introduced in S.O.G. Prairie Fire v1.00 by Wyqer, veteran29 |
|
Description
Types a structured text on the screen, letter by letter. Parameter [_lines]: [_lines] - Multidimensional array of lines to write [ARRAY, defaults to []] 0: text to display [STRING, defaults to ""] 1: structured text formatting [STRING, defaults to "<t align = 'left' shadow = '1' size = '0.7'>%1</t><br/>"] 2: time to wait after line [NUMBER, defaults to 1]
Syntax
- Syntax
- [_lines,_posX,_posY,_rootFormat] call vn_ms_fnc_sfx_typeText;
- Parameters
- _lines: Array - (Optional, default
[]
) Multidimensional array of lines to write - _posX: NUMBER, ARRAY - (Optional, default
0
) Display position X, or X and W if an array - _posY: NUMBER, ARRAY - (Optional, default
0
) Display position Y, or Y and H if an array - _rootFormat: String - (Optional, default
"<t font='tt2020style_e_vn'>%1</t>"
) Default structured text wrapper template around each line - Return value
- Script (Handle) - Script handle to typing text
Examples
- Example 1
[ [ ["Operation: ", "<t align = 'left' shadow = '1' size = '1' font='tt2020style_e_vn_bold'>%1</t>"], ["Eldest Son"], ["12th May 1969. 1600h"], ["SOG CCN, FOB 1, Phu Bai, South Vietnam"], [" "], ["Target AO: ", "<t align = 'left' shadow = '1' size = '1' font='tt2020style_e_vn_bold'>%1</t>"], ["Whiskey 4"] ] ] spawn vn_ms_fnc_sfx_typeText;