Skip to content

Using Custom World Map Icons

Sera edited this page May 11, 2017 · 4 revisions

alt text

How to use

Graphics

Put the icons in your Textures folder for your mod

In the factions def,find these fields:

<homeIconPath></homeIconPath>
<expandingIconTexture></expandingIconTexture>

<expandingIconTexture> is the texture which shows normally on the world map, and <homeIconPath> is the texture that appears when you zoom into the map.

If your icon texture is named colony.png and is in the icon folder in your Textures folder, the filled in field would look like this:

<expandingIconTexture>icon/colony</expandingIconTexture>

Remember: file paths are case sensitive.

Colours

If you want your texture to be coloured in specific colours utilize this field

   <colorSpectrum>
      <li>(R,G,B)</li>
      <li>(R,G,B)</li>
      <li>(R,G,B)</li>
    </colorSpectrum>

With R,G,B being the Red, Green and Blue colour values (a number which ranges from 0-255).

If you want to find out the RGB values of a certain colour, use this W3Schools color picker.

For example if want my factions to be Chartreuse RGB(127,255,0) and Coral RGB(255,127,80), the xml would look like this

   <colorSpectrum>
      <li>(127,255,0)</li>
      <li>(255,127,80)</li>
    </colorSpectrum>

This will result in the icons being coloured at random from a spectrum between those two colours.

alt text alt text alt text alt text alt text

Pre-made icons

The following textures are free to use in any mods, no credit required

alt text alt text alt text alt text alt text alt text alt text alt text alt textalt text

alt text alt text alt text alt text alt text alt text alt text alt text alt text alt text

alt text alt textalt text alt text alt text alt text alt text alt text alt text alt text

alt text alt text alt text alt text alt text alt text alt text alt text alt text alt text

alt text alt text alt text alt text alt text alt text alt text alt text alt text alt text

alt text alt text alt text alt text alt text alt text alt text alt text alt text alt text

alt text alt text alt text alt text alt text alt text alt text alt text alt text alt text

alt text alt text alt text alt text alt text alt text alt text alt text alt text alt text

alt text alt text alt text alt text alt text alt text alt text alt text alt text alt text

alt text alt text alt text alt text alt text alt text alt text alt text alt text alt text

Credits

Author: Sera

Pre-made Icons: Rimshare Edited by Sera

Icons Source: game-icons.net