DialogControls-Map: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(not anywhere)
m (Text replacement - "float" to "Float ")
(19 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{| border="1" align="left" cellpadding="3" cellspacing="0" |
{| class="wikitable sortable" width="100%" border="1" align="left" cellpadding="3" cellspacing="0" |
! colspan="3" bgcolor="#bbbbff" | Properties
! colspan="3" bgcolor="#bbbbff" | Properties
|-
|-
Line 9: Line 9:
| class
| class
| focused marker, members: '''color, size'''
| focused marker, members: '''color, size'''
|-
| '''LineMarker'''
| class
| user drawn polyline marker, members: '''lineWidthThin, lineWidthThick, lineDistanceMin, lineLengthMin'''
|-
| '''Legend'''
| class
| legend properties, members: '''x, y, w, h, font, sizeEx, colorBackground, color'''
|-
|-
| '''CustomMark'''
| '''CustomMark'''
Line 18: Line 26:
| map object type properties for command sign, members: '''icon, color, size, coefMin, coefMax, importance'''
| map object type properties for command sign, members: '''icon, color, size, coefMin, coefMax, importance'''
|-
|-
| '''Legend'''
| '''Waypoint'''
| class
| map object type properties, members: '''icon, color, size, coefMin, coefMax, importance'''
|-
| '''WaypointCompleted'''
| class
| map object type properties, members: '''icon, color, size, coefMin, coefMax, importance'''
|-
| '''Tree'''
| class
| map object type properties, members: '''icon, color, size, coefMin, coefMax, importance'''
|-
| '''SmallTree'''
| class
| map object type properties, members: '''icon, color, size, coefMin, coefMax, importance'''
|-
| '''Bush'''
| class
| map object type properties, members: '''icon, color, size, coefMin, coefMax, importance'''
|-
| '''Cross'''
| class
| map object type properties, members: '''icon, color, size, coefMin, coefMax, importance'''
|-
| '''Rock'''
| class
| map object type properties, members: '''icon, color, size, coefMin, coefMax, importance'''
|-
| '''Bunker'''
| class
| map object type properties, members: '''icon, color, size, coefMin, coefMax, importance'''
|-
| '''Fortress'''
| class
| map object type properties, members: '''icon, color, size, coefMin, coefMax, importance'''
|-
| '''Fountain'''
| class
| map object type properties, members: '''icon, color, size, coefMin, coefMax, importance'''
|-
| '''ViewTower'''
| class
| map object type properties, members: '''icon, color, size, coefMin, coefMax, importance'''
|-
| '''Lighthouse'''
| class
| map object type properties, members: '''icon, color, size, coefMin, coefMax, importance'''
|-
| '''Quay'''
| class
| map object type properties, members: '''icon, color, size, coefMin, coefMax, importance'''
|-
| '''BusStop'''
| class
| map object type properties, members: '''icon, color, size, coefMin, coefMax, importance'''
|-
| '''Transmitter'''
| class
| map object type properties, members: '''icon, color, size, coefMin, coefMax, importance'''
|-
| '''Stack'''
| class
| map object type properties, members: '''icon, color, size, coefMin, coefMax, importance'''
|-
| '''Watertower'''
| class
| map object type properties, members: '''icon, color, size, coefMin, coefMax, importance'''
|-
| '''Church'''
| class
| map object type properties, members: '''icon, color, size, coefMin, coefMax, importance'''
|-
| '''Chapel'''
| class
| map object type properties, members: '''icon, color, size, coefMin, coefMax, importance'''
|-
| '''Fuelstation'''
| class
| map object type properties, members: '''icon, color, size, coefMin, coefMax, importance'''
|-
| '''Hospital'''
| class
| class
| legend properties, members: '''x, y, w, h, font, sizeEx, colorBackground, color'''
| map object type properties, members: '''icon, color, size, coefMin, coefMax, importance'''
|-
|-
| '''Waypoint'''
| '''Ruin'''
| class
| class
| map object type properties, members: '''x, y, w, h, font, sizeEx, colorBackground, color'''
| map object type properties, members: '''icon, color, size, coefMin, coefMax, importance'''
|-
|-
| '''WaypointCompleted'''
| '''Tourism'''
| class
| class
| map object type properties, members: '''x, y, w, h, font, sizeEx, colorBackground, color'''
| map object type properties, members: '''icon, color, size, coefMin, coefMax, importance'''
|-
|-
| '''colorCountlines'''
| '''colorCountlines'''
Line 131: Line 219:
|-
|-
| '''maxSatelliteAlpha'''
| '''maxSatelliteAlpha'''
| float
| [[Float]]
| satellite map fading
| maximum alpha of satellite map
|-
|-
| '''alphaFadeStartScale'''
| '''alphaFadeStartScale'''
| float
| [[Float]]
| satellite map fading
| scale at which satellite map starts appearing
|-
|-
| '''alphaFadeEndScale'''
| '''alphaFadeEndScale'''
| float
| [[Float]]
| satellite map fading
| scale at which satellite map is fully rendered
|-
|-
| '''moveOnEdges'''
| '''moveOnEdges'''
| boolean
| [[Boolean]]
| {{Feature arma3 | Not implemented}}
| {{Feature arma3 | Not implemented}}
|-
|-
| '''ptsPerSquareSea'''
| '''ptsPerSquareSea'''
| floats
| [[Float]] s
| seas
| relief texture quality (0 - disable relief)
|-
|-
| '''ptsPerSquareTxt'''
| '''ptsPerSquareTxt'''
| floats
| [[Float]] s
| textures
| textures
|-
|-
| '''ptsPerSquareCln'''
| '''ptsPerSquareCln'''
| floats
| [[Float]] s
| count-lines
| count-lines
|-
|-
| '''ptsPerSquareExp'''
| '''ptsPerSquareExp'''
| floats
| [[Float]] s
| exposure
| exposure
|-
|-
| '''ptsPerSquareCost'''
| '''ptsPerSquareCost'''
| floats
| [[Float]] s
| cost
| cost
|-
|-
| '''ptsPerSquareFor'''
| '''ptsPerSquareFor'''
| floats
| [[Float]] s
| forests
| forests
|-
|-
| '''ptsPerSquareForEdge'''
| '''ptsPerSquareForEdge'''
| floats
| [[Float]] s
| forest edges
| forest edges
|-
|-
| '''ptsPerSquareRoad'''
| '''ptsPerSquareRoad'''
| floats
| [[Float]] s
| roads 3 lines (center and 2x border)
| roads 3 lines (center and 2x border)
|-
|-
| '''ptsPerSquareRoadSimple'''
| '''ptsPerSquareRoadSimple'''
| floats
| [[Float]] s
| roads 1 line
| roads 1 line
|-
|-
| '''ptsPerSquareMainRoad'''
| '''ptsPerSquareMainRoad'''
| floats
| [[Float]] s
| main roads 3 lines (center and 2x border) {{Warning | currently omitted, probably bug }}
| main roads 3 lines (center and 2x border)
|-
|-
| '''ptsPerSquareMainRoadSimple'''
| '''ptsPerSquareMainRoadSimple'''
| floats
| [[Float]] s
| main roads 1 line
| main roads 1 line
|-
|-
| '''ptsPerSquareObj'''
| '''ptsPerSquareObj'''
| floats
| [[Float]] s
| other objects
| other objects
|-
|-
| '''showCountourInterval'''
| '''showCountourInterval'''
| boolean
| [[Boolean]]
| countour interval
| countour interval
|-
| '''showMarkers'''
| [[Boolean]]
| show map markers
|-
| '''showTacticalPing'''
| [[Boolean]]
| show tactical ping
|-
|-
| '''fontLabel'''
| '''fontLabel'''
Line 247: Line 343:
|-
|-
| '''mapOrientation'''
| '''mapOrientation'''
| integer
| [[Integer]]
| 0 - default North; 1 - map rotates with player/vehicle direction; 2 - map rotates with camera weapon direction. (Applicable to CT_MAP and available since Arma 3 v1.67)
| 0 - North; 1 - map rotates with player/vehicle direction; 2 - map rotates with camera weapon direction. Default: 0. (Applicable to CT_MAP and CT_MAP_MAIN and available since Arma 3 v1.67)
|-
|-
| '''drawObjects'''
| '''drawObjects'''
| boolean
| [[Boolean]]
| Should units be drawn on this map
| Should units be drawn on this map. Default: [[true]]
|-
| '''drawLocations'''
| [[Boolean]]
| Should the locations/location names be drawn on this map. Default: [[true]]. (Available since Arma 3 v1.95.146027)
|-
| '''drawShaded'''
| [[Float]]
| ?
|-
| '''widthPowerLines'''
| [[Integer]]
| ?
|-
| '''widthRailWay'''
| [[Integer]]
| ?
|-
| '''scaleMin'''
| [[Float]]
| ?
|-
| '''scaleMax'''
| [[Float]]
| ?
|-
| '''scaleDefault'''
| [[Float]]
| ?
|-
|-
|}<br clear="all">
|}<br clear="all">
===ActiveMarker class===
===ActiveMarker class===
{| border="1" align="left" cellpadding="3" cellspacing="0" |
{|class="wikitable" width="30%" border="1" align="left" cellpadding="3" cellspacing="0" |
! colspan="3" bgcolor="#bbbbff" | Properties
! colspan="3" bgcolor="#bbbbff" | Properties
|-
|-
Line 268: Line 392:
|-
|-
| '''size'''
| '''size'''
| integer
| [[Integer]]
| note not sizeEx
| note not sizeEx
|-
|-
|}<br clear="all">
|}<br clear="all">
===Command class===
===Command class===
{| border="1" align="left" cellpadding="3" cellspacing="0" |
{|class="wikitable" width="30%"  border="1" align="left" cellpadding="3" cellspacing="0" |
! colspan="3" bgcolor="#bbbbff" | Properties
! colspan="3" bgcolor="#bbbbff" | Properties
|-
|-
Line 285: Line 409:
|-
|-
| '''size'''
| '''size'''
| integer
| [[Integer]]
| note not sizeEx
| note not sizeEx
|-
|-
Line 293: Line 417:
|-
|-
| '''importance'''
| '''importance'''
| integer
| [[Integer]]
|  
|  
|-
|-
| '''coefMin/Max'''
| '''coefMin/Max'''
| floats
| [[Float]] s
| probably
| probably
|-
|-
|}<br clear="all">
|}<br clear="all">
===Example===
 
<code><nowiki>
{{Important | '''CT_MAP''' type 100 does not show any markers or objects even though both are enabled with <tt>drawObjects</tt> and <tt>showMarkers</tt>, '''CT_MAP_MAIN''' type 101 works as expected with these params.}}
 
*'''Example Config:'''
<syntaxhighlight lang=cpp>
 
#define CT_MAP_MAIN 101
#define CT_MAP_MAIN 101
#define ST_PICTURE 48
#define ST_PICTURE 48
Line 308: Line 436:
class RscMapControl
class RscMapControl
{
{
  access = 0;
access = 0;
  idc = -1;
idc = -1;
  type = CT_MAP_MAIN;
type = CT_MAP_MAIN;
  style = ST_PICTURE;
style = ST_PICTURE;


  x = 0.10;
x = 0.10;
  y = 0.10;
y = 0.10;
  w = 0.80;
w = 0.80;
  h = 0.60;
h = 0.60;


  colorBackground[] = {1.00, 1.00, 1.00, 1.00};
colorBackground[] = { 1.00, 1.00, 1.00, 1.00 };
  colorText[] = {0.00, 0.00, 0.00, 1.00};
colorText[] = { 0.00, 0.00, 0.00, 1.00 };
  colorSea[] = {0.56, 0.80, 0.98, 0.50};
colorSea[] = { 0.56, 0.80, 0.98, 0.50 };
  colorForest[] = {0.60, 0.80, 0.20, 0.50};
colorForest[] = { 0.60, 0.80, 0.20, 0.50 };
  colorRocks[] = {0.50, 0.50, 0.50, 0.50};
colorRocks[] = { 0.50, 0.50, 0.50, 0.50 };
  colorCountlines[] = {0.65, 0.45, 0.27, 0.50};
colorCountlines[] = { 0.65, 0.45, 0.27, 0.50 };
  colorMainCountlines[] = {0.65, 0.45, 0.27, 1.00};
colorMainCountlines[] = { 0.65, 0.45, 0.27, 1.00 };
  colorCountlinesWater[] = {0.00, 0.53, 1.00, 0.50};
colorCountlinesWater[] = { 0.00, 0.53, 1.00, 0.50 };
  colorMainCountlinesWater[] = {0.00, 0.53, 1.00, 1.00};
colorMainCountlinesWater[] = { 0.00, 0.53, 1.00, 1.00 };
  colorForestBorder[] = {0.40, 0.80, 0.00, 1.00};
colorForestBorder[] = { 0.40, 0.80, 0.00, 1.00 };
  colorRocksBorder[] = {0.50, 0.50, 0.50, 1.00};
colorRocksBorder[] = { 0.50, 0.50, 0.50, 1.00 };
  colorPowerLines[] = {0.00, 0.00, 0.00, 1.00};
colorPowerLines[] = { 0.00, 0.00, 0.00, 1.00 };
  colorNames[] = {0.00, 0.00, 0.00, 1.00};
colorNames[] = { 0.00, 0.00, 0.00, 1.00 };
  colorInactive[] = {1.00, 1.00, 1.00, 0.50};
colorInactive[] = { 1.00, 1.00, 1.00, 0.50 };
  colorLevels[] = {0.00, 0.00, 0.00, 1.00};
colorLevels[] = { 0.00, 0.00, 0.00, 1.00 };


  font = "TahomaB";
font = "TahomaB";
  sizeEx = 0.040000;
sizeEx = 0.040000;


  fontLabel = "TahomaB";
fontLabel = "TahomaB";
  sizeExLabel = 0.02;
sizeExLabel = 0.02;
  fontGrid = "TahomaB";
fontGrid = "TahomaB";
  sizeExGrid = 0.02;
sizeExGrid = 0.02;
  fontUnits = "TahomaB";
fontUnits = "TahomaB";
  sizeExUnits = 0.02;
sizeExUnits = 0.02;
  fontNames = "TahomaB";
fontNames = "TahomaB";
  sizeExNames = 0.02;
sizeExNames = 0.02;
  fontInfo = "TahomaB";
fontInfo = "TahomaB";
  sizeExInfo = 0.02;
sizeExInfo = 0.02;
  fontLevel = "TahomaB";
fontLevel = "TahomaB";
  sizeExLevel = 0.02;
sizeExLevel = 0.02;


  stickX[] = {0.20, {"Gamma", 1.00, 1.50} };
ptsPerSquareSea = 6;
  stickY[] = {0.20, {"Gamma", 1.00, 1.50} };
ptsPerSquareTxt = 8;
  ptsPerSquareSea = 6;
ptsPerSquareCLn = 8;
  ptsPerSquareTxt = 8;
ptsPerSquareExp = 8;
  ptsPerSquareCLn = 8;
ptsPerSquareCost = 8;
  ptsPerSquareExp = 8;
ptsPerSquareFor = "4.0f";
  ptsPerSquareCost = 8;
ptsPerSquareForEdge = "10.0f";
  ptsPerSquareFor = "4.0f";
ptsPerSquareRoad = 2;
  ptsPerSquareForEdge = "10.0f";
ptsPerSquareObj = 10;
  ptsPerSquareRoad = 2;
  ptsPerSquareObj = 10;


  text = "\ca\ui\data\map_background2_co.paa";
text = "\ca\ui\data\map_background2_co.paa";
  showCountourInterval=2;
showCountourInterval = 2;
  scaleDefault = 0.1;
scaleDefault = 0.1;
  onMouseButtonClick = "";
onMouseButtonClick = "";
  onMouseButtonDblClick = "";
onMouseButtonDblClick = "";


  class ActiveMarker {
class ActiveMarker
    color[] = {0.30, 0.10, 0.90, 1.00};
{
    size = 50;
color[] = { 0.30, 0.10, 0.90, 1.00 };
  };
size = 50;
  class Bunker {
};
    icon = "\ca\ui\data\map_bunker_ca.paa";
class Bunker
    color[] = {0.00, 0.35, 0.70, 1.00};
{
    size = 14;
icon = "\ca\ui\data\map_bunker_ca.paa";
    importance = "1.5 * 14 * 0.05";
color[] = { 0.00, 0.35, 0.70, 1.00 };
    coefMin = 0.25;
size = 14;
    coefMax = 4.00;
importance = "1.5 * 14 * 0.05";
  };
coefMin = 0.25;
  class Bush {
coefMax = 4.00;
    icon = "\ca\ui\data\map_bush_ca.paa";
};
    color[] = {0.55, 0.64, 0.43, 1.00};
class Bush
    size = 14;
{
    importance = "0.2 * 14 * 0.05";
icon = "\ca\ui\data\map_bush_ca.paa";
    coefMin = 0.25;
color[] = { 0.55, 0.64, 0.43, 1.00 };
    coefMax = 4.00;
size = 14;
  };
importance = "0.2 * 14 * 0.05";
  class BusStop {
coefMin = 0.25;
    icon = "\ca\ui\data\map_busstop_ca.paa";
coefMax = 4.00;
    color[] = {0.00, 0.00, 1.00, 1.00};
};
    size = 10;
class BusStop
    importance = "1 * 10 * 0.05";
{
    coefMin = 0.25;
icon = "\ca\ui\data\map_busstop_ca.paa";
    coefMax = 4.00;
color[] = { 0.00, 0.00, 1.00, 1.00 };
  };
size = 10;
  class Command {
importance = "1 * 10 * 0.05";
    icon = "#(argb,8,8,3)color(1,1,1,1)";
coefMin = 0.25;
    color[] = {0.00, 0.00, 0.00, 1.00};
coefMax = 4.00;
    size = 18;
};
    importance = 1.00;
class Command
    coefMin = 1.00;
{
    coefMax = 1.00;
icon = "#(argb,8,8,3)color(1,1,1,1)";
  };
color[] = { 0.00, 0.00, 0.00, 1.00 };
  class Cross {
size = 18;
    icon = "\ca\ui\data\map_cross_ca.paa";
importance = 1.00;
    color[] = {0.00, 0.35, 0.70, 1.00};
coefMin = 1.00;
    size = 16;
coefMax = 1.00;
    importance = "0.7 * 16 * 0.05";
};
    coefMin = 0.25;
class Cross
    coefMax = 4.00;
{
  };
icon = "\ca\ui\data\map_cross_ca.paa";
  class Fortress {
color[] = { 0.00, 0.35, 0.70, 1.00 };
    icon = "\ca\ui\data\map_bunker_ca.paa";
size = 16;
    color[] = {0.00, 0.35, 0.70, 1.00};
importance = "0.7 * 16 * 0.05";
    size = 16;
coefMin = 0.25;
    importance = "2 * 16 * 0.05";
coefMax = 4.00;
    coefMin = 0.25;
};
    coefMax = 4.00;
class Fortress
  };
{
  class Fuelstation {
icon = "\ca\ui\data\map_bunker_ca.paa";
    icon = "\ca\ui\data\map_fuelstation_ca.paa";
color[] = { 0.00, 0.35, 0.70, 1.00 };
    color[] = {1.00, 0.35, 0.35, 1.00};
size = 16;
    size = 16;
importance = "2 * 16 * 0.05";
    importance = "2 * 16 * 0.05";
coefMin = 0.25;
    coefMin = 0.75;
coefMax = 4.00;
    coefMax = 4.00;
};
  };
class Fuelstation
  class Fountain {
{
    icon = "\ca\ui\data\map_fountain_ca.paa";
icon = "\ca\ui\data\map_fuelstation_ca.paa";
    color[] = {0.00, 0.35, 0.70, 1.00};
color[] = { 1.00, 0.35, 0.35, 1.00 };
    size = 12;
size = 16;
    importance = "1 * 12 * 0.05";
importance = "2 * 16 * 0.05";
    coefMin = 0.25;
coefMin = 0.75;
    coefMax = 4.00;
coefMax = 4.00;
  };
};
  class Hospital {
class Fountain
    icon = "\ca\ui\data\map_hospital_ca.paa";
{
    color[] = {0.78, 0.00, 0.05, 1.00};
icon = "\ca\ui\data\map_fountain_ca.paa";
    size = 16;
color[] = { 0.00, 0.35, 0.70, 1.00 };
    importance = "2 * 16 * 0.05";
size = 12;
    coefMin = 0.50;
importance = "1 * 12 * 0.05";
    coefMax = 4;
coefMin = 0.25;
  };
coefMax = 4.00;
  class Chapel {
};
    icon = "\ca\ui\data\map_chapel_ca.paa";
class Hospital
    color[] = {0.00, 0.35, 0.70, 1.00};
{
    size = 16;
icon = "\ca\ui\data\map_hospital_ca.paa";
    importance = "1 * 16 * 0.05";
color[] = { 0.78, 0.00, 0.05, 1.00 };
    coefMin = 0.90;
size = 16;
    coefMax = 4.00;
importance = "2 * 16 * 0.05";
  };
coefMin = 0.50;
  class Church {
coefMax = 4;
    icon = "\ca\ui\data\map_church_ca.paa";
};
    color[] = {0.00, 0.35, 0.70, 1.00};
class Chapel
    size = 16;
{
    importance = "2 * 16 * 0.05";
icon = "\ca\ui\data\map_chapel_ca.paa";
    coefMin = 0.90;
color[] = { 0.00, 0.35, 0.70, 1.00 };
    coefMax = 4.00;
size = 16;
  };
importance = "1 * 16 * 0.05";
  class Lighthouse {
coefMin = 0.90;
    icon = "\ca\ui\data\map_lighthouse_ca.paa";
coefMax = 4.00;
    color[] = {0.78, 0.00, 0.05, 1.00};
};
    size = 20;
class Church
    importance = "3 * 16 * 0.05";
{
    coefMin = 0.90;
icon = "\ca\ui\data\map_church_ca.paa";
    coefMax = 4.00;
color[] = { 0.00, 0.35, 0.70, 1.00 };
  };
size = 16;
  class Quay {
importance = "2 * 16 * 0.05";
    icon = "\ca\ui\data\map_quay_ca.paa";
coefMin = 0.90;
    color[] = {0.00, 0.35, 0.70, 1.00};
coefMax = 4.00;
    size = 16;
};
    importance = "2 * 16 * 0.05";
class Lighthouse
    coefMin = 0.50;
{
    coefMax = 4.00;
icon = "\ca\ui\data\map_lighthouse_ca.paa";
  };
color[] = { 0.78, 0.00, 0.05, 1.00 };
  class Rock {
size = 20;
    icon = "\ca\ui\data\map_rock_ca.paa";
importance = "3 * 16 * 0.05";
    color[] = {0.35, 0.35, 0.35, 1.00};
coefMin = 0.90;
    size = 12;
coefMax = 4.00;
    importance = "0.5 * 12 * 0.05";
};
    coefMin = 0.25;
class Quay
    coefMax = 4.00;
{
  };
icon = "\ca\ui\data\map_quay_ca.paa";
  class Ruin {
color[] = { 0.00, 0.35, 0.70, 1.00 };
    icon = "\ca\ui\data\map_ruin_ca.paa";
size = 16;
    color[] = {0.78, 0.00, 0.05, 1.00};
importance = "2 * 16 * 0.05";
    size = 16;
coefMin = 0.50;
    importance = "1.2 * 16 * 0.05";
coefMax = 4.00;
    coefMin = 1.00;
};
    coefMax = 4.00;
class Rock
  };
{
  class Stack {
icon = "\ca\ui\data\map_rock_ca.paa";
    icon = "\ca\ui\data\map_stack_ca.paa";
color[] = { 0.35, 0.35, 0.35, 1.00 };
    color[] = {0.00, 0.35, 0.70, 1.00};
size = 12;
    size = 20;
importance = "0.5 * 12 * 0.05";
    importance = "2 * 16 * 0.05";
coefMin = 0.25;
    coefMin = 0.90;
coefMax = 4.00;
    coefMax = 4.00;
};
  };
class Ruin
  class Tree {
{
    icon = "\ca\ui\data\map_tree_ca.paa";
icon = "\ca\ui\data\map_ruin_ca.paa";
    color[] = {0.55, 0.64, 0.43, 1.00};
color[] = { 0.78, 0.00, 0.05, 1.00 };
    size = 12;
size = 16;
    importance = "0.9 * 16 * 0.05";
importance = "1.2 * 16 * 0.05";
    coefMin = 0.25;
coefMin = 1.00;
    coefMax = 4.00;
coefMax = 4.00;
  };
};
  class SmallTree {
class Stack
    icon = "\ca\ui\data\map_smalltree_ca.paa";
{
    color[] = {0.55, 0.64, 0.43, 1.00};
icon = "\ca\ui\data\map_stack_ca.paa";
    size = 12;
color[] = { 0.00, 0.35, 0.70, 1.00 };
    importance = "0.6 * 12 * 0.05";
size = 20;
    coefMin = 0.25;
importance = "2 * 16 * 0.05";
    coefMax = 4.00;
coefMin = 0.90;
  };
coefMax = 4.00;
  class Tourism {
};
    icon = "\ca\ui\data\map_tourism_ca.paa";
class Tree
    color[] = {0.78, 0.00, 0.05, 1.00};
{
    size = 16;
icon = "\ca\ui\data\map_tree_ca.paa";
    importance = "1 * 16 * 0.05";
color[] = { 0.55, 0.64, 0.43, 1.00 };
    coefMin = 0.70;
size = 12;
    coefMax = 4.00;
importance = "0.9 * 16 * 0.05";
  };
coefMin = 0.25;
  class Transmitter {
coefMax = 4.00;
    icon = "\ca\ui\data\map_transmitter_ca.paa";
};
    color[] = {0.00, 0.35, 0.70, 1.00};
class SmallTree
    size = 20;
{
    importance = "2 * 16 * 0.05";
icon = "\ca\ui\data\map_smalltree_ca.paa";
    coefMin = 0.90;
color[] = { 0.55, 0.64, 0.43, 1.00 };
    coefMax = 4.00;
size = 12;
  };
importance = "0.6 * 12 * 0.05";
  class ViewTower {
coefMin = 0.25;
    icon = "\ca\ui\data\map_viewtower_ca.paa";
coefMax = 4.00;
    color[] = {0.00, 0.35, 0.70, 1.00};
};
    size = 16;
class Tourism
    importance = "2.5 * 16 * 0.05";
{
    coefMin = 0.50;
icon = "\ca\ui\data\map_tourism_ca.paa";
    coefMax = 4.00;
color[] = { 0.78, 0.00, 0.05, 1.00 };
  };
size = 16;
  class Watertower {
importance = "1 * 16 * 0.05";
    icon = "\ca\ui\data\map_watertower_ca.paa";
coefMin = 0.70;
    color[] = {0.00, 0.35, 0.70, 1.00};
coefMax = 4.00;
    size = 32;
};
    importance = "1.2 * 16 * 0.05";
class Transmitter
    coefMin = 0.90;
{
    coefMax = 4.00;
icon = "\ca\ui\data\map_transmitter_ca.paa";
  };
color[] = { 0.00, 0.35, 0.70, 1.00 };
  class Waypoint {
size = 20;
    icon = "\ca\ui\data\map_waypoint_ca.paa";
importance = "2 * 16 * 0.05";
    color[] = {0.00, 0.00, 0.00, 1.00};
coefMin = 0.90;
    size = 24;
coefMax = 4.00;
    importance = 1.00;
};
    coefMin = 1.00;
class ViewTower
    coefMax = 1.00;
{
  };
icon = "\ca\ui\data\map_viewtower_ca.paa";
  class WaypointCompleted {
color[] = { 0.00, 0.35, 0.70, 1.00 };
    icon = "\ca\ui\data\map_waypoint_completed_ca.paa";
size = 16;
    color[] = {0.00, 0.00, 0.00, 1.00};
importance = "2.5 * 16 * 0.05";
    size = 24;
coefMin = 0.50;
    importance = 1.00;
coefMax = 4.00;
    coefMin = 1.00;
};
    coefMax = 1.00;
class Watertower
  };
{
icon = "\ca\ui\data\map_watertower_ca.paa";
color[] = { 0.00, 0.35, 0.70, 1.00 };
size = 32;
importance = "1.2 * 16 * 0.05";
coefMin = 0.90;
coefMax = 4.00;
};
class Waypoint
{
icon = "\ca\ui\data\map_waypoint_ca.paa";
color[] = { 0.00, 0.00, 0.00, 1.00 };
size = 24;
importance = 1.00;
coefMin = 1.00;
coefMax = 1.00;
};
class WaypointCompleted
{
icon = "\ca\ui\data\map_waypoint_completed_ca.paa";
color[] = { 0.00, 0.00, 0.00, 1.00 };
size = 24;
importance = 1.00;
coefMin = 1.00;
coefMax = 1.00;
};
};
};
 
</syntaxhighlight>
</nowiki></code>


[[Category:Dialogs|MAP]]
[[Category:Dialogs|MAP]]

Revision as of 16:46, 8 June 2020

Properties
Name Type Remark
ActiveMarker class focused marker, members: color, size
LineMarker class user drawn polyline marker, members: lineWidthThin, lineWidthThick, lineDistanceMin, lineLengthMin
Legend class legend properties, members: x, y, w, h, font, sizeEx, colorBackground, color
CustomMark class icon for the custom mark, members: icon, color, size, coefMin, coefMax, importance
Command class map object type properties for command sign, members: icon, color, size, coefMin, coefMax, importance
Waypoint class map object type properties, members: icon, color, size, coefMin, coefMax, importance
WaypointCompleted class map object type properties, members: icon, color, size, coefMin, coefMax, importance
Tree class map object type properties, members: icon, color, size, coefMin, coefMax, importance
SmallTree class map object type properties, members: icon, color, size, coefMin, coefMax, importance
Bush class map object type properties, members: icon, color, size, coefMin, coefMax, importance
Cross class map object type properties, members: icon, color, size, coefMin, coefMax, importance
Rock class map object type properties, members: icon, color, size, coefMin, coefMax, importance
Bunker class map object type properties, members: icon, color, size, coefMin, coefMax, importance
Fortress class map object type properties, members: icon, color, size, coefMin, coefMax, importance
Fountain class map object type properties, members: icon, color, size, coefMin, coefMax, importance
ViewTower class map object type properties, members: icon, color, size, coefMin, coefMax, importance
Lighthouse class map object type properties, members: icon, color, size, coefMin, coefMax, importance
Quay class map object type properties, members: icon, color, size, coefMin, coefMax, importance
BusStop class map object type properties, members: icon, color, size, coefMin, coefMax, importance
Transmitter class map object type properties, members: icon, color, size, coefMin, coefMax, importance
Stack class map object type properties, members: icon, color, size, coefMin, coefMax, importance
Watertower class map object type properties, members: icon, color, size, coefMin, coefMax, importance
Church class map object type properties, members: icon, color, size, coefMin, coefMax, importance
Chapel class map object type properties, members: icon, color, size, coefMin, coefMax, importance
Fuelstation class map object type properties, members: icon, color, size, coefMin, coefMax, importance
Hospital class map object type properties, members: icon, color, size, coefMin, coefMax, importance
Ruin class map object type properties, members: icon, color, size, coefMin, coefMax, importance
Tourism class map object type properties, members: icon, color, size, coefMin, coefMax, importance
colorCountlines color array color of countlines
colorMainCountlines color array color of thicker countlines
colorCountlinesWater color array color of countlines in sea
colorMainCountlinesWater color array color of thicker countlines in sea
colorForest color array color of forest
colorForestBorder color array color of borders of forest
colorInactive color array color modifier for inactive objects
colorLevels color array color of height levels
colorNames color array color of geographic names (towns, villages, mounts etc.)
colorTracks color array color of tracks
colorRoads color array color of roads
colorMainRoads color array color of main roads
colorTracksFill color array color of tracks
colorRoadsFill color array color of roads
colorMainRoadsFill color array color of main roads
colorGrid color array color of grid texts
colorGridMap color array color of grid lines
colorTrails color array color of Trails
colorTrailsFill color array color of Trails
colorOutside color array color outside the map area
colorPowerLines color array color of power lines
colorRailWay color array color of railway
colorRocks color array color of rocky area
colorRocksBorder color array color of borders of rocky area
colorSea color array color of sea
maxSatelliteAlpha Float maximum alpha of satellite map
alphaFadeStartScale Float scale at which satellite map starts appearing
alphaFadeEndScale Float scale at which satellite map is fully rendered
moveOnEdges Boolean Template:Feature arma3
ptsPerSquareSea Float s relief texture quality (0 - disable relief)
ptsPerSquareTxt Float s textures
ptsPerSquareCln Float s count-lines
ptsPerSquareExp Float s exposure
ptsPerSquareCost Float s cost
ptsPerSquareFor Float s forests
ptsPerSquareForEdge Float s forest edges
ptsPerSquareRoad Float s roads 3 lines (center and 2x border)
ptsPerSquareRoadSimple Float s roads 1 line
ptsPerSquareMainRoad Float s main roads 3 lines (center and 2x border)
ptsPerSquareMainRoadSimple Float s main roads 1 line
ptsPerSquareObj Float s other objects
showCountourInterval Boolean countour interval
showMarkers Boolean show map markers
showTacticalPing Boolean show tactical ping
fontLabel fonts font used for labels
sizeExLabel fonts font size
fontGrid fonts font used for grid texts
sizeExGrid fonts font size
fontUnits fonts font used for id of selected units
sizeExUnits fonts font size
fontNames fonts font used for geographic names
sizeExNames fonts font size
fontInfo fonts font used for enemy info
sizeExInfo fonts font size
fontLevel fonts font used for natural ground levels
sizeExLevel fonts font size
mapOrientation Integer 0 - North; 1 - map rotates with player/vehicle direction; 2 - map rotates with camera weapon direction. Default: 0. (Applicable to CT_MAP and CT_MAP_MAIN and available since Arma 3 v1.67)
drawObjects Boolean Should units be drawn on this map. Default: true
drawLocations Boolean Should the locations/location names be drawn on this map. Default: true. (Available since Arma 3 v1.95.146027)
drawShaded Float ?
widthPowerLines Integer ?
widthRailWay Integer ?
scaleMin Float ?
scaleMax Float ?
scaleDefault Float ?


ActiveMarker class

Properties
Name Type Remark
color color array
size Integer note not sizeEx


Command class

Properties
Name Type Remark
color color array
size Integer note not sizeEx
icon argb
importance Integer
coefMin/Max Float s probably


CT_MAP type 100 does not show any markers or objects even though both are enabled with drawObjects and showMarkers, CT_MAP_MAIN type 101 works as expected with these params.
  • Example Config:
#define CT_MAP_MAIN 101
#define ST_PICTURE 48

class RscMapControl
{
	access = 0;
	idc = -1;
	type = CT_MAP_MAIN;
	style = ST_PICTURE;

	x = 0.10;
	y = 0.10;
	w = 0.80;
	h = 0.60;

	colorBackground[] = { 1.00, 1.00, 1.00, 1.00 };
	colorText[] = { 0.00, 0.00, 0.00, 1.00 };
	colorSea[] = { 0.56, 0.80, 0.98, 0.50 };
	colorForest[] = { 0.60, 0.80, 0.20, 0.50 };
	colorRocks[] = { 0.50, 0.50, 0.50, 0.50 };
	colorCountlines[] = { 0.65, 0.45, 0.27, 0.50 };
	colorMainCountlines[] = { 0.65, 0.45, 0.27, 1.00 };
	colorCountlinesWater[] = { 0.00, 0.53, 1.00, 0.50 };
	colorMainCountlinesWater[] = { 0.00, 0.53, 1.00, 1.00 };
	colorForestBorder[] = { 0.40, 0.80, 0.00, 1.00 };
	colorRocksBorder[] = { 0.50, 0.50, 0.50, 1.00 };
	colorPowerLines[] = { 0.00, 0.00, 0.00, 1.00 };
	colorNames[] = { 0.00, 0.00, 0.00, 1.00 };
	colorInactive[] = { 1.00, 1.00, 1.00, 0.50 };
	colorLevels[] = { 0.00, 0.00, 0.00, 1.00 };

	font = "TahomaB";
	sizeEx = 0.040000;

	fontLabel = "TahomaB";
	sizeExLabel = 0.02;
	fontGrid = "TahomaB";
	sizeExGrid = 0.02;
	fontUnits = "TahomaB";
	sizeExUnits = 0.02;
	fontNames = "TahomaB";
	sizeExNames = 0.02;
	fontInfo = "TahomaB";
	sizeExInfo = 0.02;
	fontLevel = "TahomaB";
	sizeExLevel = 0.02;

	ptsPerSquareSea = 6;
	ptsPerSquareTxt = 8;
	ptsPerSquareCLn = 8;
	ptsPerSquareExp = 8;
	ptsPerSquareCost = 8;
	ptsPerSquareFor = "4.0f";
	ptsPerSquareForEdge = "10.0f";
	ptsPerSquareRoad = 2;
	ptsPerSquareObj = 10;

	text = "\ca\ui\data\map_background2_co.paa";
	showCountourInterval = 2;
	scaleDefault = 0.1;
	onMouseButtonClick = "";
	onMouseButtonDblClick = "";

	class ActiveMarker
	{
		color[] = { 0.30, 0.10, 0.90, 1.00 };
		size = 50;
	};
	class Bunker
	{
		icon = "\ca\ui\data\map_bunker_ca.paa";
		color[] = { 0.00, 0.35, 0.70, 1.00 };
		size = 14;
		importance = "1.5 * 14 * 0.05";
		coefMin = 0.25;
		coefMax = 4.00;
	};
	class Bush
	{
		icon = "\ca\ui\data\map_bush_ca.paa";
		color[] = { 0.55, 0.64, 0.43, 1.00 };
		size = 14;
		importance = "0.2 * 14 * 0.05";
		coefMin = 0.25;
		coefMax = 4.00;
	};
	class BusStop
	{
		icon = "\ca\ui\data\map_busstop_ca.paa";
		color[] = { 0.00, 0.00, 1.00, 1.00 };
		size = 10;
		importance = "1 * 10 * 0.05";
		coefMin = 0.25;
		coefMax = 4.00;
	};
	class Command
	{
		icon = "#(argb,8,8,3)color(1,1,1,1)";
		color[] = { 0.00, 0.00, 0.00, 1.00 };
		size = 18;
		importance = 1.00;
		coefMin = 1.00;
		coefMax = 1.00;
	};
	class Cross
	{
		icon = "\ca\ui\data\map_cross_ca.paa";
		color[] = { 0.00, 0.35, 0.70, 1.00 };
		size = 16;
		importance = "0.7 * 16 * 0.05";
		coefMin = 0.25;
		coefMax = 4.00;
	};
	class Fortress
	{
		icon = "\ca\ui\data\map_bunker_ca.paa";
		color[] = { 0.00, 0.35, 0.70, 1.00 };
		size = 16;
		importance = "2 * 16 * 0.05";
		coefMin = 0.25;
		coefMax = 4.00;
	};
	class Fuelstation
	{
		icon = "\ca\ui\data\map_fuelstation_ca.paa";
		color[] = { 1.00, 0.35, 0.35, 1.00 };
		size = 16;
		importance = "2 * 16 * 0.05";
		coefMin = 0.75;
		coefMax = 4.00;
	};
	class Fountain
	{
		icon = "\ca\ui\data\map_fountain_ca.paa";
		color[] = { 0.00, 0.35, 0.70, 1.00 };
		size = 12;
		importance = "1 * 12 * 0.05";
		coefMin = 0.25;
		coefMax = 4.00;
	};
	class Hospital
	{
		icon = "\ca\ui\data\map_hospital_ca.paa";
		color[] = { 0.78, 0.00, 0.05, 1.00 };
		size = 16;
		importance = "2 * 16 * 0.05";
		coefMin = 0.50;
		coefMax = 4;
	};
	class Chapel
	{
		icon = "\ca\ui\data\map_chapel_ca.paa";
		color[] = { 0.00, 0.35, 0.70, 1.00 };
		size = 16;
		importance = "1 * 16 * 0.05";
		coefMin = 0.90;
		coefMax = 4.00;
	};
	class Church
	{
		icon = "\ca\ui\data\map_church_ca.paa";
		color[] = { 0.00, 0.35, 0.70, 1.00 };
		size = 16;
		importance = "2 * 16 * 0.05";
		coefMin = 0.90;
		coefMax = 4.00;
	};
	class Lighthouse
	{
		icon = "\ca\ui\data\map_lighthouse_ca.paa";
		color[] = { 0.78, 0.00, 0.05, 1.00 };
		size = 20;
		importance = "3 * 16 * 0.05";
		coefMin = 0.90;
		coefMax = 4.00;
	};
	class Quay
	{
		icon = "\ca\ui\data\map_quay_ca.paa";
		color[] = { 0.00, 0.35, 0.70, 1.00 };
		size = 16;
		importance = "2 * 16 * 0.05";
		coefMin = 0.50;
		coefMax = 4.00;
	};
	class Rock
	{
		icon = "\ca\ui\data\map_rock_ca.paa";
		color[] = { 0.35, 0.35, 0.35, 1.00 };
		size = 12;
		importance = "0.5 * 12 * 0.05";
		coefMin = 0.25;
		coefMax = 4.00;
	};
	class Ruin
	{
		icon = "\ca\ui\data\map_ruin_ca.paa";
		color[] = { 0.78, 0.00, 0.05, 1.00 };
		size = 16;
		importance = "1.2 * 16 * 0.05";
		coefMin = 1.00;
		coefMax = 4.00;
	};
	class Stack
	{
		icon = "\ca\ui\data\map_stack_ca.paa";
		color[] = { 0.00, 0.35, 0.70, 1.00 };
		size = 20;
		importance = "2 * 16 * 0.05";
		coefMin = 0.90;
		coefMax = 4.00;
	};
	class Tree
	{
		icon = "\ca\ui\data\map_tree_ca.paa";
		color[] = { 0.55, 0.64, 0.43, 1.00 };
		size = 12;
		importance = "0.9 * 16 * 0.05";
		coefMin = 0.25;
		coefMax = 4.00;
	};
	class SmallTree
	{
		icon = "\ca\ui\data\map_smalltree_ca.paa";
		color[] = { 0.55, 0.64, 0.43, 1.00 };
		size = 12;
		importance = "0.6 * 12 * 0.05";
		coefMin = 0.25;
		coefMax = 4.00;
	};
	class Tourism
	{
		icon = "\ca\ui\data\map_tourism_ca.paa";
		color[] = { 0.78, 0.00, 0.05, 1.00 };
		size = 16;
		importance = "1 * 16 * 0.05";
		coefMin = 0.70;
		coefMax = 4.00;
	};
	class Transmitter
	{
		icon = "\ca\ui\data\map_transmitter_ca.paa";
		color[] = { 0.00, 0.35, 0.70, 1.00 };
		size = 20;
		importance = "2 * 16 * 0.05";
		coefMin = 0.90;
		coefMax = 4.00;
	};
	class ViewTower
	{
		icon = "\ca\ui\data\map_viewtower_ca.paa";
		color[] = { 0.00, 0.35, 0.70, 1.00 };
		size = 16;
		importance = "2.5 * 16 * 0.05";
		coefMin = 0.50;
		coefMax = 4.00;
	};
	class Watertower
	{
		icon = "\ca\ui\data\map_watertower_ca.paa";
		color[] = { 0.00, 0.35, 0.70, 1.00 };
		size = 32;
		importance = "1.2 * 16 * 0.05";
		coefMin = 0.90;
		coefMax = 4.00;
	};
	class Waypoint
	{
		icon = "\ca\ui\data\map_waypoint_ca.paa";
		color[] = { 0.00, 0.00, 0.00, 1.00 };
		size = 24;
		importance = 1.00;
		coefMin = 1.00;
		coefMax = 1.00;
	};
	class WaypointCompleted
	{
		icon = "\ca\ui\data\map_waypoint_completed_ca.paa";
		color[] = { 0.00, 0.00, 0.00, 1.00 };
		size = 24;
		importance = 1.00;
		coefMin = 1.00;
		coefMax = 1.00;
	};
};