Skip to content

Icons ​

The icon library is every small picture of the game: the icons of items, abilities, effects, quests and the interface. Assets > Icons shows them as a grid, by category, and imports new ones.

An icon is an image file named by its number: 12.png is icon 12. The number is its id, and it is what the rest of the game stores; the icon pickers show the grid and save the number. A folder is a category (weapons, potions, abilities) and only organises the grid: an id is unique across all categories, and the game finds the file in whichever category it is in.

Icons live in res://src/data/icons/<category>/<id>.png. The demo has two categories, one for items and one for abilities.

The editor ​

ControlWhat it does
The gridEvery icon of the chosen category, or of all
CategoryA drop-down with each category and its count
Search, RefreshFilter; read the folders again
ImportChoose image files and a category. The files are copied in and numbered, starting from the first free id, and the list shows the new ids
Settings > Add New CategoryMakes a category folder (weapons, items)
Settings > Remove CategoryDeletes a category folder. It asks for confirmation and says how many icons go with it
The labelThe selected icon, its id and its category
The countHow many icons are shown

Tips ​

  • Import icons once and use the ids: renaming or deleting an icon file breaks every item or ability that points to it, and the editor then shows "ID n (Not Found)" for that id.
  • Number new icons from the first free id: Import does this for you. Do not give two files the same number in different categories.

See also ​