This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
ivac2:firdef_mapcolors_xml [2015/05/31 16:40] splendor.bouman [mapcolors.xml] |
ivac2:firdef_mapcolors_xml [2017/04/08 14:27] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | [[ivac2:firdef_toc|Back]] | ||
- | |||
====== mapcolors.xml ====== | ====== mapcolors.xml ====== | ||
The **mapcolors.xml** file is used define a RGB color for each of the color codes used in the maps using the **color=** attribute. | The **mapcolors.xml** file is used define a RGB color for each of the color codes used in the maps using the **color=** attribute. | ||
The colors are defined per FIR definition and allow you to define a look and feel as close as possible to the local real life ATM system. | The colors are defined per FIR definition and allow you to define a look and feel as close as possible to the local real life ATM system. | ||
+ | |||
+ | The ''mapcolors.xml'' file is located in the ''fir/theme/(theme_name)'' directory | ||
^Root Element|colors|| | ^Root Element|colors|| | ||
Line 14: | Line 14: | ||
|b|byte|RGB color code (0-255)| | |b|byte|RGB color code (0-255)| | ||
|a|byte|RGB color code (0-255)| | |a|byte|RGB color code (0-255)| | ||
+ | |brt|string|Value of Brightness group| | ||
|text|string|text to display for this color in the color editor| | |text|string|text to display for this color in the color editor| | ||
- | |||
- | |||
Note: If no Alpha value is specified, 255 (100% opacity) is used | Note: If no Alpha value is specified, 255 (100% opacity) is used | ||
- | ==== example ==== | + | ==== Example ==== |
<code XML> | <code XML> | ||
<colors> | <colors> | ||
- | <color id="fir_bdry" r="15" g="15" b="15" a="120" text="FIR boundary" /> | + | <color id="fir_bdry" r="15" g="15" b="15" a="120" text="FIR boundary" brt="airspace"/> |
- | <color id="airspace_low" r="50" g="50" b="50" text="Airspace low" /> | + | <color id="airspace_low" r="50" g="50" b="50" text="Airspace low" brt="airspace" /> |
- | <color id="ebbr_ap_bdry" r="65" g="112" b="40" text="EBBR ground boundary" /> | + | <color id="ebbr_ap_bdry" r="65" g="112" b="40" text="EBBR ground boundary" brt="airspace" /> |
</colors> | </colors> | ||
</code> | </code> | ||
+ | ---- | ||
+ | |||
+ | [[ivac2:firdef|Back]] | ||