QcItemIconSet Namespace
The icon of every item of a content registry, keyed by item name: blocks drawn as their shape when a render table is given, everything else (and blocks with a flat icon, plants) as its texture; and the icon of every creature (QcMobIcon) under QcHandbookLinks::mobIcon(name). More...
| Header: | #include <clientcore/icons/QcItemIconSet.h> |
Functions
| QHash<QString, QImage> | draw(const QcContentRegistry &content, const QcTextureAtlas &atlas, const QcBlockRenderTable *renderTable, int blockIconSize = 0) |
Detailed Description
The game shows them through QcItemIcons, the web handbook export packs them into one sheet.
Function Documentation
QHash<QString, QImage> QcItemIconSet::draw(const QcContentRegistry &content, const QcTextureAtlas &atlas, const QcBlockRenderTable *renderTable, int blockIconSize = 0)
Returns the icons of the items and creatures of content drawn from atlas; blocks with a shape use renderTable (null: all flat). blockIconSize 0 picks the size the game uses: QcBlockIcon::iconSize, or largeIconSize for texture packs above 16 x 16 pixels.