BIS fnc displayColorGet: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl>" to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("server" o...) |
||
Line 1: | Line 1: | ||
{{Function | {{Function | ||
| TKOH | | TKOH | ||
|1.00 | |1.00 | ||
|gr1= GUI | |gr1= GUI | ||
| Loads custom [[User Interface Colors|color settings]] from CfgUIDefault. | | Loads custom [[User Interface Colors|color settings]] from CfgUIDefault. | ||
Line 75: | Line 75: | ||
{{!}}} | {{!}}} | ||
| | | [tag, variable] call [[BIS_fnc_displayColorGet]] | ||
| | |p1= tag: [[String]] - Tag defined in [[User Interface Colors|CfgUIDefault]] | ||
| [[ | |p2= variable: [[String]] - Variable defined in "CfgUIColors" >> Variables | ||
|s2= init call [[BIS_fnc_displayColorGet]]; | | [[Array]] - in format [[Color|Color (RGBA)]] | ||
|s2= init call [[BIS_fnc_displayColorGet]]; | |||
|p21= init: [[Boolean]] - when used, function will initialize all color presets |PARAMETER21= | |p21= init: [[Boolean]] - when used, function will initialize all color presets |PARAMETER21= | ||
|r2= [[Nothing]] | |r2= [[Nothing]] | ||
|x1= <code>["GUI", "BCG_RGB"] [[call]] [[BIS_fnc_displayColorGet]];//Returns menu color</code> | |x1= <code>["GUI", "BCG_RGB"] [[call]] [[BIS_fnc_displayColorGet]];//Returns menu color</code> | ||
| [[Color|Color (RGBA)]], [[BIS_fnc_colorRGBtoHTML]], [[BIS_fnc_colorRGBAtoHTML]], [[BIS_fnc_colorRGBAtoTexture]] | | [[Color|Color (RGBA)]], [[BIS_fnc_colorRGBtoHTML]], [[BIS_fnc_colorRGBAtoHTML]], [[BIS_fnc_colorRGBAtoTexture]] | ||
}} | }} | ||
Revision as of 23:03, 17 January 2021
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
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