IconsRes

This class uses RPDL files for icons repository, for each icons have group where declared default config such as size of icon, gaps etc.

Constructors

this
this(ImagesRes imagesRes)

Create icons resources, this constructor get imagesRes as argument for getting textures for icons.

Members

Functions

addIcons
void addIcons(string group, string fileName)

Add new icons group, file with icons declarations must placed in res/ui/icons folder.

getIcon
Icon getIcon(string group, string name)

Retrieve icon information from group by icon name.

getIconsConfig
IconsConfig getIconsConfig(string group)

Retrieve icon config from group.

getTextureForIcons
Texture2D getTextureForIcons(string group)

Get texture instance for particular group icons.

getTextureForIcons
Texture2D getTextureForIcons(Icon icon)

Get texture instance for particular icon.

Variables

paths
Paths paths;
Undocumented in source.

Meta