BIS fnc displayColorGet: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) (Fix formatting, Add TKOH values) |
Lou Montana (talk | contribs) m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *V([a-z ])" to "$1 - v$2") |
||
(26 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=function | ||
| | |game1= tkoh | ||
|version1= 1.00 | |||
| | |game2= arma3 | ||
|version2= 0.50 | |||
| Loads custom [[User Interface Colors|color settings]] from CfgUIDefault. | |gr1= GUI | ||
|descr= Loads custom [[User 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. | ||
{{{!}} | {{{!}} | ||
{{!}} style | {{!}} style="vertical-align: top; width: 50%" {{!}} | ||
<!-- A3 --> | <!-- A3 --> | ||
{{{!}} class | {{{!}} class="wikitable" | ||
{{!}}+ {{arma3}} v1.99 | {{!}}+ {{arma3}} v1.99 | ||
! | ! Tag !! Variable !! Description | ||
{{!}}- | |||
! rowspan="5" {{!}} "IGUI" | |||
{{!}}"BCG_RGB" {{!}}{{!}} Backgrounds | {{!}}"BCG_RGB" {{!}}{{!}} Backgrounds | ||
{{!}}- | {{!}}- | ||
Line 27: | Line 31: | ||
{{!}} "TACTPING_RGB" {{!}}{{!}} Tactical Ping | {{!}} "TACTPING_RGB" {{!}}{{!}} Tactical Ping | ||
{{!}}- | {{!}}- | ||
! rowspan | ! rowspan="2" {{!}} "GUI" | ||
{{!}} "BCG_RGB" {{!}}{{!}} Backgrounds | {{!}} "BCG_RGB" {{!}}{{!}} Backgrounds | ||
{{!}}- | {{!}}- | ||
{{!}} "TITLETEXT_RGB" {{!}}{{!}} Title Text | {{!}} "TITLETEXT_RGB" {{!}}{{!}} Title Text | ||
{{!}}- | {{!}}- | ||
! rowspan | ! rowspan="5" {{!}} "Map" | ||
{{!}} "BLUFOR" {{!}}{{!}} BLUFOR | {{!}} "BLUFOR" {{!}}{{!}} BLUFOR | ||
{{!}}- | {{!}}- | ||
Line 43: | Line 47: | ||
{{!}} "Unknown" {{!}}{{!}} Unknown | {{!}} "Unknown" {{!}}{{!}} Unknown | ||
{{!}}- | {{!}}- | ||
! rowspan | ! rowspan="2" {{!}} "Subtitles" | ||
{{!}} "Background" {{!}}{{!}} Subtitle background | {{!}} "Background" {{!}}{{!}} Subtitle background | ||
{{!}}- | {{!}}- | ||
Line 49: | Line 53: | ||
{{!}}} | {{!}}} | ||
{{!}} style | {{!}} style="vertical-align: top; width: 50%" {{!}} | ||
<!-- TKOH --> | <!-- TKOH --> | ||
{{{!}} class | {{{!}} class="wikitable" | ||
{{!}}+ {{tkoh}} v1.00 | {{!}}+ {{tkoh}} v1.00 | ||
! | ! Tag !! Variable !! Description | ||
{{!}}- | |||
! rowspan="2" {{!}} "IGUI" | |||
{{!}}"IGUI_TEXT_RGB" {{!}}{{!}} HUD color '''RGB''' | {{!}}"IGUI_TEXT_RGB" {{!}}{{!}} HUD color '''RGB''' | ||
{{!}}- | {{!}}- | ||
{{!}} "IGUI_TEXT_COLOR" {{!}}{{!}} HUD color '''RGBA''' | {{!}} "IGUI_TEXT_COLOR" {{!}}{{!}} HUD color '''RGBA''' | ||
{{!}}- | {{!}}- | ||
! rowspan | ! rowspan="5" {{!}} "GUI" | ||
{{!}} "BCG_RGB" {{!}}{{!}} menu background '''RGB''' | {{!}} "BCG_RGB" {{!}}{{!}} menu background '''RGB''' | ||
{{!}}- | {{!}}- | ||
Line 71: | Line 77: | ||
{{!}}} | {{!}}} | ||
| [tag, variable] call [[BIS_fnc_displayColorGet]] | |s1= [tag, variable] call [[BIS_fnc_displayColorGet]] | ||
|p1= tag: [[String]] - | |p1= tag: [[String]] - tag defined in [[User Interface Colors|CfgUIDefault]] | ||
|p2= variable: [[String]] - | |p2= variable: [[String]] - variable defined in "CfgUIColors" >> Variables | ||
| [[Array]] - in format [[Color]] | |r1= [[Array]] - in format [[Color|Color (RGBA)]] | ||
|s2= init call [[BIS_fnc_displayColorGet]] | |s2= init call [[BIS_fnc_displayColorGet]] | ||
|p21= init: [[Boolean]] - when used, function will initialize all color presets | |p21= init: [[Boolean]] - when used, function will initialize all color presets | ||
|r2= [[Nothing]] | |r2= [[Nothing]] | ||
| [[Color]] | |x1= <sqf>["GUI", "BCG_RGB"] call BIS_fnc_displayColorGet;//Returns menu color</sqf> | ||
|seealso= [[Color|Color (RGBA)]] [[BIS_fnc_colorRGBtoHTML]] [[BIS_fnc_colorRGBAtoHTML]] [[BIS_fnc_colorRGBAtoTexture]] | |||
}} | }} | ||
Latest revision as of 15:53, 8 November 2023
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:
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