BIS_fnc_displayColorGet

From Bohemia Interactive Community
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Hover & click on the images for description

Description

Description:
Loads custom color settings from CfgUIDefault. If variables are not stored in profileNamespace yet, the function will declare them.
Arma 3 v1.99
Tag Variable Description
"IGUI" "BCG_RGB" Backgrounds
"TEXT_RGB" Active Elements
"WARNING_RGB" Warnings
"ERROR_RGB" Errors
"TACTPING_RGB" Tactical Ping
"GUI" "BCG_RGB" Backgrounds
"TITLETEXT_RGB" Title Text
"Map" "BLUFOR" BLUFOR
"OPFOR" OPFOR
"Independent" Independent
"Civilian" Civilian
"Unknown" Unknown
"Subtitles" "Background" Subtitle background
"Text" Subtitle text
Take On Helicopters v1.00
Tag Variable Description
"IGUI" "IGUI_TEXT_RGB" HUD color RGB
"IGUI_TEXT_COLOR" HUD color RGBA
"GUI" "BCG_RGB" menu background RGB
"GUI_BCG_COLOR" menu background RGBA
"GUI_BCG_MEDIUM_RGB" button background RGB (darker version of GUI_BCG_RGB)
"GUI_BCG_MEDIUM_COLOR" button background RGBA
"GUI_BCG_ACTIVE_RGB" active button background color (e.g. focused buttons) RGB
Execution:
call
Groups:
GUI

Syntax

Syntax:
[tag, variable] call BIS_fnc_displayColorGet
Parameters:
tag: String - tag defined in CfgUIDefault
variable: String - variable defined in "CfgUIColors" >> Variables
Return Value:
Array - in format Color (RGBA)

Alternative Syntax

Syntax:
init call BIS_fnc_displayColorGet
Parameters:
init: Boolean - when used, function will initialize all color presets
Return Value:
Nothing

Examples

Example 1:
["GUI", "BCG_RGB"] call BIS_fnc_displayColorGet;//Returns menu color

Additional Information

See also:
Color (RGBA) BIS_fnc_colorRGBtoHTML BIS_fnc_colorRGBAtoHTML BIS_fnc_colorRGBAtoTexture

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note