{"name":"BIS_fnc_AAN","operator":null,"title":"BIS fnc AAN","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_AAN","revid":328448,"updated":"2022-07-13T16:04:00Z","groups":["GUI"],"status":"ok","replaced_by":[],"games":[{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.50"},{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.50"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":"spawn","description":"Add an AAN overlay to the screen, with one headline and a rolling text on the bottom.","syntaxes":[{"syntax":"[headline, rollingText] spawn BIS_fnc_AAN","since":null,"effect":null,"exec":null,"params":[{"name":"headline","type":"Structured Text","optional":false,"default":null,"description":"main title, shown in bigger size","types":["Structured Text"],"since":null,"text":"headline: Structured Text - main title, shown in bigger size"},{"name":"rollingText","type":"Structured Text","optional":false,"default":null,"description":"bottom text under *headline* scrolling right to left","types":["Structured Text"],"since":null,"text":"rollingText: Structured Text - bottom text under *headline* scrolling right to left"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"}}],"examples":[{"text":"```sqf\n[\n    parseText \"<t size='2'>AAN live in Takistan</t>\",\n    parseText \"Weather coming up hot and steamy - Takistan shelled again from border area\"\n] spawn BIS_fnc_AAN;\n```","code":["[\n\tparseText \"<t size='2'>AAN live in Takistan</t>\",\n\tparseText \"Weather coming up hot and steamy - Takistan shelled again from border area\"\n] spawn BIS_fnc_AAN;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["parseText","BIS_fnc_showAANArticle"],"notes":[{"user":"Triteyker-","date":"2014-09-28T19:42:00Z","text":"Maximum size (added with  parameters) for the headline is 2 if you want another, size 1 text under it. Size 2.5 to 3 seems to be the max size for the headline if you don't want it to disappear.\n\nRolling text size has to be 1 or else it disappears entirely. Time in the bottom right is ingame time (see setDate). Do note that this function cannot center on an object, and additional camera work is required to achieve such effects. It merely adds an overlay to the screen, and the player retains control even with the overlay active."},{"user":"Jaffa","date":"2015-08-05T22:38:00Z","text":"To remove the overlay you must close the display from the BIS_AAN UI Namespace variable.\ni.e. \n\n```sqf\n(uiNamespace getVariable \"BIS_AAN\") closeDisplay 1;\n```"}],"categories":["Arma 2: Operation Arrowhead: Functions","Arma 2: Operation Arrowhead: New Functions","Arma 3: Functions","Function Group: GUI","Functions","Introduced with Arma 2: Operation Arrowhead version 1.50","Take On Helicopters: Functions"],"docblock":null,"filled_from_docblock":[]}