{"name":"BIS_fnc_GUIhint","title":"BIS fnc GUIhint","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_GUIhint","revid":364353,"updated":"2024-05-06T10:37:04Z","groups":["GUI"],"status":"ok","games":{"tkoh":"1.00","arma3":"0.50"},"since":"tkoh 1.00","arma3_since":"0.50","description":"Creates advanced hintC dialog","syntaxes":[{"syntax":"[param0] call BIS_fnc_GUIhint","params":[{"name":"param0","type":"Array","type_expr":"Array","optional":true,"description":"[text,picture]\n         text: STRING - hint text\n         picture: STRING - picture\n    [item1,item2...] - Listbox item ARRAYs in format\n        [itemText,itemDescription,picture,icon]\n             itemText: STRING - Text displayed in listbox\n             itemDescription (Optional): STRING - text displayed after clicking on item\n             picture (Optional): STRING - picture displayed after clicking on item\n             icon (Optional): STRING - icon displayed in listbox left from text\n_this select 1 (Optional): STRING - hint header\n_this select 2 (Optional): ARRAY - [STRING,CODE,NUMBER] - text on left button (when \"\", button is hidden), code executed upon clicking and fade out delay. If only text is present, button is disabled.\n_this select 3 (Optional): ARRAY - [STRING,CODE,NUMBER] - STRING - text on right button and code executed upon clicking\n_this select 4 (Optional): ARRAY - [STRING,CODE,NUMBER] - STRING - text on middle button and code executed upon clicking\n_this select 5 (Optional): NUMBER or ARRAY - width or [width,height] of picture (in grid coordinates). Width > 17 means only picture is used.","text":"0: ARRAY in format\n    [text,picture]\n         text: STRING - hint text\n         picture: STRING - picture\n    [item1,item2...] - Listbox item ARRAYs in format\n        [itemText,itemDescription,picture,icon]\n             itemText: STRING - Text displayed in listbox\n             itemDescription (Optional): STRING - text displayed after clicking on item\n             picture (Optional): STRING - picture displayed after clicking on item\n             icon (Optional): STRING - icon displayed in listbox left from text\n_this select 1 (Optional): STRING - hint header\n_this select 2 (Optional): ARRAY - [STRING,CODE,NUMBER] - text on left button (when \"\", button is hidden), code executed upon clicking and fade out delay. If only text is present, button is disabled.\n_this select 3 (Optional): ARRAY - [STRING,CODE,NUMBER] - STRING - text on right button and code executed upon clicking\n_this select 4 (Optional): ARRAY - [STRING,CODE,NUMBER] - STRING - text on middle button and code executed upon clicking\n_this select 5 (Optional): NUMBER or ARRAY - width or [width,height] of picture (in grid coordinates). Width > 17 means only picture is used.","source":"docblock"}],"returns":{"type":"Array","type_expr":"Array","description":"[endState(,lbId)]\n     endState: NUMBER - 1 when clicked on right button, -1 when clicked on left button, 0 when escaped\n     lbId: NUMBER - selected listbox item (when listbox was used)","text":"ARRAY - [endState(,lbId)]\n     endState: NUMBER - 1 when clicked on right button, -1 when clicked on left button, 0 when escaped\n     lbId: NUMBER - selected listbox item (when listbox was used)","source":"docblock"},"inferred":true}],"see_also":["BIS_fnc_GUImessage"],"docblock":{"text":"Description:\nCreates advanced hintC dialog\n\nParameter(s):\n_this select 0: ARRAY in format\n    [text,picture]\n         text: STRING - hint text\n         picture: STRING - picture\n    [item1,item2...] - Listbox item ARRAYs in format\n        [itemText,itemDescription,picture,icon]\n             itemText: STRING - Text displayed in listbox\n             itemDescription (Optional): STRING - text displayed after clicking on item\n             picture (Optional): STRING - picture displayed after clicking on item\n             icon (Optional): STRING - icon displayed in listbox left from text\n_this select 1 (Optional): STRING - hint header\n_this select 2 (Optional): ARRAY - [STRING,CODE,NUMBER] - text on left button (when \"\", button is hidden), code executed upon clicking and fade out delay. If only text is present, button is disabled.\n_this select 3 (Optional): ARRAY - [STRING,CODE,NUMBER] - STRING - text on right button and code executed upon clicking\n_this select 4 (Optional): ARRAY - [STRING,CODE,NUMBER] - STRING - text on middle button and code executed upon clicking\n_this select 5 (Optional): NUMBER or ARRAY - width or [width,height] of picture (in grid coordinates). Width > 17 means only picture is used.\n\nReturns:\nARRAY - [endState(,lbId)]\n     endState: NUMBER - 1 when clicked on right button, -1 when clicked on left button, 0 when escaped\n     lbId: NUMBER - selected listbox item (when listbox was used)"},"filled_from_docblock":["description","params","syntax","returns"]}