Skip to content

MapIconDefinition ​

Inherits: Resource

One icon of the map icon catalog (UI settings > Map icons): a picture with a name that things on the map point at (a quest giver, a blacksmith, an ore node, a town ...). The pictures that come with the toolkit are white glyphs with a dark outline (assets/ui/map_icons, SVG): the game lays a colour on them, so one picture serves every faction and state.

Properties ​

StringNameid&""
Stringdisplay_name""
Stringcategory""
Texture2Dtexture
ColortintColor.WHITE
booltinted_by_factionfalse
boolon_minimaptrue
boolon_world_maptrue

Property descriptions ​

StringName id = &"" ​

The name things point at (lower case, no spaces: quest_available, blacksmith, enemy_boss). The id of a toolkit icon cannot be changed, only what it looks like

String display_name = "" ​

The name shown in the editor

String category = "" ​

The group it is listed in (Quests, Services, Professions, Gathering, Creatures, Places, Travel, Loot, Player)

Texture2D texture ​

The picture (SVG or any image). White shapes are tinted, so draw it white with an outline

Color tint = Color.WHITE ​

The colour laid on the picture (white leaves it as drawn). When the icon is tinted by faction this is only used for what has no faction

bool tinted_by_faction = false ​

The colour comes from the faction of whoever it marks (friendly, neutral, hostile colours of the settings) instead of the tint above

bool on_minimap = true ​

Shown on the mini map

bool on_world_map = true ​

Shown on the world map