-
Notifications
You must be signed in to change notification settings - Fork 0
Using Custom World Map Icons
Example: Apini playable race mod
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.
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.
Author: Sera
Pre-made Icons: Rimshare Edited by Sera
Icons Source: game-icons.net