Skip to content

Edit your Mod Indicator and Icon

wofsauge edited this page Jan 15, 2022 · 1 revision

Change the Display name of your Mod

On default, the name of your mod is detected by the name you gave the mod when calling the RegisterMod() function.

You can set your own name by calling the following function:

EID:setModIndicatorName(newName)

-- Example
EID:setModIndicatorName("My mod name")

Change the Icon of your Mod

You can add an icon for your mod, which will be displayes next to your mods name. You can use any Markup Icon to be displayed there.

To define your own Markup icon, refer to this tutorial: https://github.com/wofsauge/External-Item-Descriptions/wiki/Adding-Markup

Then just call this function to set the icon.

EID:setModIndicatorIcon(iconMarkup)

-- Example:
EID:setModIndicatorIcon("Heart") -- will set the icon of your mod to the "Heart" icon