CfgMarkerColors – Arma 3

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Text replacement - "syntaxhighlight lang="c"" to "syntaxhighlight lang="cpp"")
 
(13 intermediate revisions by 3 users not shown)
Line 1: Line 1:
[[Category:Arma 3]]
{{ConfigPage|start}}
[[Category:AI]]
An overview of the CfgMarkerColors class.


==Colours==
{{ConfigPage|abc}}
{|class ='wikitable'
== Alphabetical Order ==
=== C ===
==== color ====
[[TokenNameValueTypes#Array|Array]]
 
<syntaxhighlight lang="cpp">
color[] = {0,0,0,1}; //Color in format RGBA
</syntaxhighlight>
 
=== N ===
==== name ====
[[TokenNameValueTypes#String|String]]
 
<syntaxhighlight lang="cpp">
name = "Default"; //Name used as display name in UIs
</syntaxhighlight>
 
=== S ===
==== scope ====
[[TokenNameValueTypes#Integer|Integer]]
 
<syntaxhighlight lang="cpp">
scope = 1; //Accessibility 1=public, 0=private
</syntaxhighlight>
{{ConfigPage|end}}
 
 
= Marker Color Classes =
 
{| class ="wikitable"
|-
|-
! Config Name !! RGBA
! Config Name !! RGBA
Line 58: Line 87:
|-
|-
|Color5_FD_F || [0.690196,0.25098,0.654902,1]
|Color5_FD_F || [0.690196,0.25098,0.654902,1]
|-
|Color6_FD_F || [0.352941,0.34902,0.352941,1]
|}
|}


==Export Function==
{{Wiki|extractionScript}}
<code>private _columnDesc_1 = param [0,"",[""]];
{{GameCategory|arma3|Reference Lists}}
private _columnDesc_2 = param [1,"",[""]];
private _lb = toString [0x0D, 0x0A];//[Carriage Return, new line]
 
private _output = "{|class ='wikitable'" + _lb + format ["|-%1! %2 !! %3",_lb,_columnDesc_1,_columnDesc_2];
 
{
private _colour = getArray (_x >> "color") call BIS_fnc_colorConfigToRGBA;
private _colourName = configName _x;
_output = _output + format ["%1|-%1|%2 || %3",_lb,_colourName,_colour];
 
} forEach configProperties [configFile >> "CfgMarkerColors"];
 
_output = _output + _lb + "|}";
 
copyToClipboard _output;</code>

Latest revision as of 16:31, 11 February 2024

An overview of the CfgMarkerColors class.

Alphabetical Order

C

color

Array

color[] = {0,0,0,1}; //Color in format RGBA

N

name

String

name = "Default"; //Name used as display name in UIs

S

scope

Integer

scope = 1; //Accessibility 1=public, 0=private


Marker Color Classes

Config Name RGBA
Default [0,0,0,1]
ColorBlack [0,0,0,1]
ColorGrey [0.5,0.5,0.5,1]
ColorRed [0.9,0,0,1]
ColorBrown [0.5,0.25,0,1]
ColorOrange [0.85,0.4,0,1]
ColorYellow [0.85,0.85,0,1]
ColorKhaki [0.5,0.6,0.4,1]
ColorGreen [0,0.8,0,1]
ColorBlue [0,0,1,1]
ColorPink [1,0.3,0.4,1]
ColorWhite [1,1,1,1]
ColorWEST [0,0.3,0.6,1]
ColorEAST [0.5,0,0,1]
ColorGUER [0,0.5,0,1]
ColorCIV [0.4,0,0.5,1]
ColorUNKNOWN [0.7,0.6,0,1]
colorBLUFOR [0,0.3,0.6,1]
colorOPFOR [0.5,0,0,1]
colorIndependent [0,0.5,0,1]
colorCivilian [0.4,0,0.5,1]
Color1_FD_F [0.694118,0.2,0.223529,1]
Color2_FD_F [0.678431,0.74902,0.513726,1]
Color3_FD_F [0.941176,0.509804,0.192157,1]
Color4_FD_F [0.403922,0.545098,0.607843,1]
Color5_FD_F [0.690196,0.25098,0.654902,1]
Color6_FD_F [0.352941,0.34902,0.352941,1]
Extraction script can be found on the Biki Export Scripts page.