Log inGet started
Package

iconBaker.module

Newest version

README.md

farmLifeKit.iconBaker

Authoring tool (not used at runtime) that bakes the farm's item icons into farmLifeKit.package/icons: every cropsKit seed and crop render lifted and keyed off its black background onto a cream card (green rim for seeds, orange for harvests), a drawn ticket for each tool upgrade (tier colour, tool pictogram, tier pips, an up arrow), and fiber and stone bundles.

-- luau script, run from the shell
local Baker = require("@root::farmLifeKit.iconBaker")
print(#Baker.bakeAll())
  • Baker.bakeAll(): bake everything, returns the folders written.
  • Baker.fromRender(textureFolder, ring), Baker.ticket(tool, tier), Baker.material("stone" | "fiber"): one icon as an RGBA buffer.
  • Baker.save(name, buf): write it as the texture farmLifeKit.icons.<name>.

farmLifeKit.icons puts the baked icons on the items at runtime.