Skip to content

[Modding] Adding custom icons

LieutenantMaster edited this page Oct 1, 2023 · 4 revisions

You can add your own icons which you can access by their name (must be unique!) in various systems like the map markers, notifications and market for categories/traders by overriding ExpansionIcons::Generate (don't forget to call super or you'll break icons elsewhere):

This file need to be inside 3_Game

modded class ExpansionIcons
{
    override void Generate()
    {
        super.Generate();

        //! "<Name>, "<Localisation>", "<Path>"
        AddIcon("My Icon 1", "", "Path/To/Your/Icon1");
        AddIcon("My Icon 2", "", "Path/To/Your/Icon2");
        //! Etc.
    }
}

Note that localisation is currently not used, so just leave it empty.

Clone this wiki locally