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 [2014/04/15 17:26] filip.jonckers |
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|| | ||
- | |||
- | |||
^Element|color|| | ^Element|color|| | ||
^Attribute^Format^Remarks^ | ^Attribute^Format^Remarks^ | ||
Line 15: | Line 13: | ||
|g|byte|RGB color code (0-255)| | |g|byte|RGB color code (0-255)| | ||
|b|byte|RGB color code (0-255)| | |b|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| | ||
- | <HTML> | ||
- | <p style="border:1px dashed #C11B17;color:#C11B17;"> | ||
- | RULE: Always use id's and text values in English! | ||
- | <br> | ||
- | Remember that any user can and will use the FIR definition, not only your local division members!! | ||
- | <br> | ||
- | Keep it user friendly... Thank You! | ||
- | </p> | ||
- | </HTML> | ||
+ | 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" 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]] | ||