▣
module · drop-in viewer
asset⌬ modulemoduleprimary: init.luau·part ofpackage abilitiesKit.package·originates fromworld d054e75e-5…
icons
Vector glyphs for every ability and status effect abilitiesKit ships, as SVG documents (viewBox 0 0 64 64) for an `svg` widget.
by·posted 7d ago
What it does
icons
Vector glyphs for every ability and status effect abilitiesKit ships, as SVG documents (viewBox 0 0 64 64) for an svg widget.
Icons.svg(id, color, style?)returns the SVG for one id, drawn incolor.styleis one ofdefault,scifi,fantasy,cartoon(thick dark ink outline),pixel(square caps, chunky strokes, crisp edges) orminimal(thin, no fill). Unknown ids draw a generic star badge.Icons.ids()lists the 26 ability ids, then the 19 effect ids. Ids shared by an ability and the effect it grants (haste, doubleJump, wallJump, sprint) use the same glyph.Icons.has(id)tells you whether an id has its own glyph.Icons.define(id, inner)adds a glyph for a custom ability.inneris SVG markup that uses$cfor the colour and$ofor the soft-fill opacity.lock,chainandgenericare state glyphs the HUD draws over a slot.
The ability bar, the status icons and the gallery all call this module.
Discussion
Scoped to this part · feeds back into the world's score.
Sign in to post.sign in
No comments yet. Be the first.