{"name":"BIS_fnc_typeText2","operator":null,"title":"BIS fnc typeText2","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_typeText2","revid":349484,"updated":"2023-11-08T17:09:03Z","groups":["GUI"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.00"}],"since":{"game":"arma3","name":"Arma 3","version":"1.00"},"arma3_since":"1.00","branch":null,"locality":{"argument":null,"effect":"local","server_exec":false},"exec":"spawn","description":"Types a structured text on the screen, letter by letter, cursor blinking. Note that line returns are manual, unlike BIS_fnc_typeText.","syntaxes":[{"syntax":"[stringLines, posX, posY, alignBottom, rootFormat, abortParams, abortCond, playSounds] call BIS_fnc_typeText2","since":null,"effect":null,"exec":null,"params":[{"name":"stringLines","type":null,"optional":true,"default":"`\"\"`","description":"Array of Strings - array containing lines of text with same structured text formatting.\n- Array of Array of Strings [text, format, color]\n  - text: String - \n  - format: String - (Optional, default `\"align = 'center' size = '0.7'\"`) a linebreak is defined as \"<br/>\" **and this only!**\n  - color: String - (Optional, default `\"#ffffff\"`)","types":[],"since":null,"text":"stringLines:\n- Array of Strings - array containing lines of text with same structured text formatting.\n- Array of Array of Strings [text, format, color]\n  - text: String - (Optional, default `\"\"`)\n  - format: String - (Optional, default `\"align = 'center' size = '0.7'\"`) a linebreak is defined as \"<br/>\" **and this only!**\n  - color: String - (Optional, default `\"#ffffff\"`)"},{"name":"posX","type":"Number","optional":true,"default":"0","description":null,"types":["Number"],"since":null,"text":"posX: Number - (Optional, default 0)"},{"name":"posY","type":"Number","optional":true,"default":"0","description":null,"types":["Number"],"since":null,"text":"posY: Number - (Optional, default 0)"},{"name":"alignBottom","type":"Boolean","optional":true,"default":"true","description":null,"types":["Boolean"],"since":null,"text":"alignBottom: Boolean - (Optional, default true)"},{"name":"rootFormat","type":"String","optional":true,"default":"`\"<t>%1</t>\"`","description":null,"types":["String"],"since":null,"text":"rootFormat: String - (Optional, default `\"<t>%1</t>\"`)"},{"name":"abortParams","type":"Array","optional":true,"default":"`[]`","description":null,"types":["Array"],"since":null,"text":"abortParams: Array - (Optional, default `[]`)"},{"name":"abortCond","type":"Code","optional":true,"default":"`{ false }`","description":null,"types":["Code"],"since":null,"text":"abortCond: Code - (Optional, default `{ false }`)"},{"name":"playSounds","type":"Boolean","optional":true,"default":"true","description":null,"types":["Boolean"],"since":null,"text":"playSounds: Boolean - (Optional, default true)"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"}}],"examples":[{"text":"```sqf\n[\n    [\n        [\"CAMP ROGAIN, \", \"align = 'center' shadow = '1' size = '0.7' font='PuristaBold'\"],\n        [\"RESUPPLY POINT\", \"align = 'center' shadow = '1' size = '0.7'\", \"#aaaaaa\"],\n        [\"\", \"<br/>\"], // line break\n        [\"10 MINUTES LATER...\", \"align = 'center' shadow = '1' size = '1.0'\"]\n    ]\n] spawn BIS_fnc_typeText2;\n```","code":["[\n\t[\n\t\t[\"CAMP ROGAIN, \", \"align = 'center' shadow = '1' size = '0.7' font='PuristaBold'\"],\n\t\t[\"RESUPPLY POINT\", \"align = 'center' shadow = '1' size = '0.7'\", \"#aaaaaa\"],\n\t\t[\"\", \"<br/>\"], // line break\n\t\t[\"10 MINUTES LATER...\", \"align = 'center' shadow = '1' size = '1.0'\"]\n\t]\n] spawn BIS_fnc_typeText2;"]},{"text":"```sqf\n[\n    [\"Hello there\"],\n    safeZoneX, safeZoneH / 2,\n    true,\n    \"<t font='PuristaBold'>%1</t>\",\n    [],\n    { false },\n    true\n] spawn BIS_fnc_typeText2;\n```","code":["[\n\t[\"Hello there\"],\n\tsafeZoneX, safeZoneH / 2,\n\ttrue,\n\t\"<t font='PuristaBold'>%1</t>\",\n\t[],\n\t{ false },\n\ttrue\n] spawn BIS_fnc_typeText2;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["BIS_fnc_dynamicText","BIS_fnc_infoText","BIS_fnc_textTiles","BIS_fnc_typeText","BIS_fnc_EXP_camp_SITREP"],"notes":[],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: GUI","Functions","Functions: Local Effect","Introduced with Arma 3 version 1.00"],"docblock":null,"filled_from_docblock":[]}