BIS fnc displayColorGet: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (description formatting and fixed typo)
m (see also, example formatting)
Line 9: Line 9:
| Loads custom [[Interface_Colors|color settings]] from CfgUIDefault.
| Loads custom [[Interface_Colors|color settings]] from CfgUIDefault.


If variables are not stored in [[profileNamespace]] yet, the function will declare them.
If variables are not stored in [[profileNamespace]] yet, the function will declare them.<br>


Available variables ({{arma3}} v1.99):<br><br>
'''Available variables ({{arma3}} v1.99)''':<br>


*"IGUI"
*"IGUI"
Line 21: Line 21:


*"GUI"
*"GUI"
** "BCG_RGB" (Background)
** "BCG_RGB" (Backgrounds)
** "TITLETEXT_RGB"(Title Text)
** "TITLETEXT_RGB" (Title Text)


*"Map"
*"Map"
Line 37: Line 37:
____________________________________________________________________________________________
____________________________________________________________________________________________


| [tag,variable] call BIS_fnc_displayColorGet; |SYNTAX=
| [tag,variable] call [[BIS_fnc_displayColorGet]] |SYNTAX=


|p1= tag: [[String]] - Tag defined in CfgUIDefault |PARAMETER1=
|p1= tag: [[String]] - Tag defined in CfgUIDefault |PARAMETER1=
Line 46: Line 46:


____________________________________________________________________________________________
____________________________________________________________________________________________
|s2= init call BIS_fnc_displayColorGet; |SYNTAX2=
|s2= init call [[BIS_fnc_displayColorGet]]; |SYNTAX2=


|p21= init: [[Boolean]] - when used, function will initialize all color presets |PARAMETER21=
|p21= init: [[Boolean]] - when used, function will initialize all color presets |PARAMETER21=
Line 53: Line 53:
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <code>["GUI","BCG_RGB"] call BIS_fnc_displayColorGet;</code>
|x1= <code>["GUI","BCG_RGB"] [[call]] [[BIS_fnc_displayColorGet]];//Returns menu color</code>|EXAMPLE1=
Returns menu color|EXAMPLE1=
____________________________________________________________________________________________
____________________________________________________________________________________________


| |SEEALSO=
| [[Color]], [[BIS_fnc_colorRGBtoHTML]], [[BIS_fnc_colorRGBAtoHTML]], [[BIS_fnc_colorRGBAtoTexture]] |SEEALSO=


}}
}}

Revision as of 12:29, 26 July 2020

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.
Available variables (Arma 3 v1.99):
  • "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"
    • "OPFOR"
    • "Independent"
    • "Civilian"
    • "Unknown"
  • "Subtitles"
    • "Background"
    • "Text"
Execution:
call
Groups:
Uncategorised

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

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:
ColorBIS_fnc_colorRGBtoHTMLBIS_fnc_colorRGBAtoHTMLBIS_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

Notes

Bottom Section