{"name":"BIS_fnc_displayColorGet","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","games":{"tkoh":"1.00","arma3":"0.50"},"since":"tkoh 1.00","arma3_since":"0.50","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| **Arma 3 v1.99**<br>\\| Tag \\| Variable \\| Description \\|<br>\\|---\\|---\\|---\\|<br>\\| \"IGUI\" \\| \"BCG_RGB\" \\| Backgrounds \\|<br>\\| \"IGUI\" \\| \"TEXT_RGB\" \\| Active Elements \\|<br>\\| \"IGUI\" \\| \"WARNING_RGB\" \\| Warnings \\|<br>\\| \"IGUI\" \\| \"ERROR_RGB\" \\| Errors \\|<br>\\| \"IGUI\" \\| \"TACTPING_RGB\" \\| Tactical Ping \\|<br>\\| \"GUI\" \\| \"BCG_RGB\" \\| Backgrounds \\|<br>\\| \"GUI\" \\| \"TITLETEXT_RGB\" \\| Title Text \\|<br>\\| \"Map\" \\| \"BLUFOR\" \\| BLUFOR \\|<br>\\| \"Map\" \\| \"OPFOR\" \\| OPFOR \\|<br>\\| \"Map\" \\| \"Independent\" \\| Independent \\|<br>\\| \"Map\" \\| \"Civilian\" \\| Civilian \\|<br>\\| \"Map\" \\| \"Unknown\" \\| Unknown \\|<br>\\| \"Subtitles\" \\| \"Background\" \\| Subtitle background \\|<br>\\| \"Subtitles\" \\| \"Text\" \\| Subtitle text \\| | **Take On Helicopters v1.00**<br>\\| Tag \\| Variable \\| Description \\|<br>\\|---\\|---\\|---\\|<br>\\| \"IGUI\" \\| \"IGUI_TEXT_RGB\" \\| HUD color **RGB** \\|<br>\\| \"IGUI\" \\| \"IGUI_TEXT_COLOR\" \\| HUD color **RGBA** \\|<br>\\| \"GUI\" \\| \"BCG_RGB\" \\| menu background **RGB** \\|<br>\\| \"GUI\" \\| \"GUI_BCG_COLOR\" \\| menu background **RGBA** \\|<br>\\| \"GUI\" \\| \"GUI_BCG_MEDIUM_RGB\" \\| button background **RGB** (darker version of GUI_BCG_RGB) \\|<br>\\| \"GUI\" \\| \"GUI_BCG_MEDIUM_COLOR\" \\| button background **RGBA** \\|<br>\\| \"GUI\" \\| \"GUI_BCG_ACTIVE_RGB\" \\| active button background color (e.g. focused buttons) **RGB** \\| |","syntaxes":[{"syntax":"[tag, variable] call BIS_fnc_displayColorGet","params":[{"name":"tag","type":"String","description":"tag defined in CfgUIDefault","type_expr":"String"},{"name":"variable","type":"String","description":"variable defined in \"CfgUIColors\" >> Variables","type_expr":"String"}],"returns":{"type":"Array","type_expr":"Array","description":"in format Color (RGBA)"}},{"syntax":"init call BIS_fnc_displayColorGet","params":[{"name":"init","type":"Boolean","description":"when used, function will initialize all color presets","type_expr":"Boolean"}],"returns":{"type":"Nothing","type_expr":"Nothing"}}],"examples":[{"code":["[\"GUI\", \"BCG_RGB\"] call BIS_fnc_displayColorGet;//Returns menu color"]}],"see_also":["Color","BIS_fnc_colorRGBtoHTML","BIS_fnc_colorRGBAtoHTML","BIS_fnc_colorRGBAtoTexture"]}