icons.module
README.md
icons (productionKit)
Resource icons as vector art for svg widgets: wheat, wood, ore, planks, metal, bread, power, research, soldiers, archers, knights and coins, plus a lettered disc in the resource's catalog colour for any resource a game adds (Icons.define(id, innerSvg) gives one real art). Icons.svg(id) returns the SVG string, Icons.node(id, size) a ready widget node. Also the status palette (Icons.STATUS: working, starved, full, idle, paused, storing), Icons.statusText(status, missing) ("Needs 2 Wood", "Storage full", "Working") and Icons.statusNode(status, size), a small glyph per status. The status lines are read from locales/en/productionkit_ui.json (section status) in the player's language, and a lettered disc takes the first letter of the resource's translated name. Used by productionKit's displays and screens, and by any game screen that shows the kit's resources. Emoji are avoided on purpose: the UI fonts have no colour emoji, so they draw as empty boxes.