Skip to content

[Modding] Adding custom icons

lava76 edited this page Oct 25, 2021 · 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 and market for categories/traders by overriding ExpansionIcons::Generate (don't forget to call super or you'll break icons elsewhere):

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

        //! "<Name>, "<LocalizedName>", "<Path>"
        AddIcon("My Icon 1", "My Icon 1", "Path/To/Your/Icon1");
        AddIcon("My Icon 2", "My Icon 2", "Path/To/Your/Icon2");
        //! Etc.
    }
}
Clone this wiki locally