{"name":"BIS_fnc_displayColorGet","operator":null,"title":"BIS fnc displayColorGet","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_displayColorGet","revid":349349,"updated":"2023-11-08T14:53:31Z","groups":["GUI"],"status":"ok","replaced_by":[],"games":[{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Loads custom color settings from CfgUIDefault.\n\nIf variables are not stored in profileNamespace yet, the function will declare them.\n\n|  |  |\n|---|---|\n| \\|  \\|  \\|  \\|  \\|<br>\\|---\\|---\\|---\\|---\\|<br>\\| + Arma 3 v1.99 \\| Tag \\| Variable \\| Description \\|<br>\\| \"IGUI\" \\| \"BCG_RGB\" \\| Backgrounds \\|  \\|<br>\\| \"TEXT_RGB\" \\| Active Elements \\|  \\|  \\|<br>\\| \"WARNING_RGB\" \\| Warnings \\|  \\|  \\|<br>\\| \"ERROR_RGB\" \\| Errors \\|  \\|  \\|<br>\\| \"TACTPING_RGB\" \\| Tactical Ping \\|  \\|  \\|<br>\\| \"GUI\" \\| \"BCG_RGB\" \\| Backgrounds \\|  \\|<br>\\| \"TITLETEXT_RGB\" \\| Title Text \\|  \\|  \\|<br>\\| \"Map\" \\| \"BLUFOR\" \\| BLUFOR \\|  \\|<br>\\| \"OPFOR\" \\| OPFOR \\|  \\|  \\|<br>\\| \"Independent\" \\| Independent \\|  \\|  \\|<br>\\| \"Civilian\" \\| Civilian \\|  \\|  \\|<br>\\| \"Unknown\" \\| Unknown \\|  \\|  \\|<br>\\| \"Subtitles\" \\| \"Background\" \\| Subtitle background \\|  \\|<br>\\| \"Text\" \\| Subtitle text \\|  \\|  \\| | \\|  \\|  \\|  \\|  \\|<br>\\|---\\|---\\|---\\|---\\|<br>\\| + Take On Helicopters v1.00 \\| Tag \\| Variable \\| Description \\|<br>\\| \"IGUI\" \\| \"IGUI_TEXT_RGB\" \\| HUD color **RGB** \\|  \\|<br>\\| \"IGUI_TEXT_COLOR\" \\| HUD color **RGBA** \\|  \\|  \\|<br>\\| \"GUI\" \\| \"BCG_RGB\" \\| menu background **RGB** \\|  \\|<br>\\| \"GUI_BCG_COLOR\" \\| menu background **RGBA** \\|  \\|  \\|<br>\\| \"GUI_BCG_MEDIUM_RGB\" \\| button background **RGB** (darker version of GUI_BCG_RGB) \\|  \\|  \\|<br>\\| \"GUI_BCG_MEDIUM_COLOR\" \\| button background **RGBA** \\|  \\|  \\|<br>\\| \"GUI_BCG_ACTIVE_RGB\" \\| active button background color (e.g. focused buttons) **RGB** \\|  \\|  \\| |","syntaxes":[{"syntax":"[tag, variable] call BIS_fnc_displayColorGet","since":null,"effect":null,"exec":null,"params":[{"name":"tag","type":"String","optional":false,"default":null,"description":"tag defined in CfgUIDefault","types":["String"],"since":null,"text":"tag: String - tag defined in CfgUIDefault"},{"name":"variable","type":"String","optional":false,"default":null,"description":"variable defined in \"CfgUIColors\" >> Variables","types":["String"],"since":null,"text":"variable: String - variable defined in \"CfgUIColors\" >> Variables"}],"returns":{"type":"Array","types":["Array"],"description":"in format Color (RGBA)","text":"Array - in format Color (RGBA)"}},{"syntax":"init call BIS_fnc_displayColorGet","since":null,"effect":null,"exec":null,"params":[{"name":"init","type":"Boolean","optional":false,"default":null,"description":"when used, function will initialize all color presets","types":["Boolean"],"since":null,"text":"init: Boolean - when used, function will initialize all color presets"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"}}],"examples":[{"text":"```sqf\n[\"GUI\", \"BCG_RGB\"] call BIS_fnc_displayColorGet;//Returns menu color\n```","code":["[\"GUI\", \"BCG_RGB\"] call BIS_fnc_displayColorGet;//Returns menu color"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["Color","BIS_fnc_colorRGBtoHTML","BIS_fnc_colorRGBAtoHTML","BIS_fnc_colorRGBAtoTexture"],"notes":[],"categories":["Arma 3: Functions","Function Group: GUI","Functions","Introduced with Take On Helicopters version 1.00","Take On Helicopters: Functions","Take On Helicopters: New Functions"],"docblock":null,"filled_from_docblock":[]}