CIV4ColorVals

Summary

CIV4ColorVals.xml defines the colours for the colour tags used by the interface. These include the progress bars in the city screen and the civilization colour themes. The colour values are in RGBA format.

Single-Line Tags

Text Tags

  • Type = This is the name of the colour and indicates where it is used.

Floating-Point Tags

  • fRed = This is the amount of red in the colour from 0.0 for no red to 1.0 for full saturation.
  • fGreen = This is the amount of green in the colour from 0.0 for no green to 1.0 for full saturation.
  • fBlue = This is the amount of blue in the colour from 0.0 for no blue to 1.0 for full saturation.
  • fAlpha = This is the colour's opacity with 1.0 opaque and 0.0 transparent. This value is always set to 1.0.

Example

<ColorVal>
    <Type>COLOR_PLAYER_NAVY_BLUE</Type>
    <fRed>0.0</fRed>
    <fGreen>0.2</fGreen>
    <fBlue>0.6</fBlue>
    <fAlpha>1.0</fAlpha>
</ColorVal>
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License