/tg/ Station 13 - Modules - TypesVar Details - Proc Details

spritesheet

Vars

load_immediatelyIf this asset should be fully loaded on new Defaults to false so we can process this stuff nicely
to_generateList of arguments to pass into queuedInsert Exists so we can queue icon insertion, mostly for stuff like preferences

Procs

ModifyInsertedA simple proc handing the Icon for you to modify before it gets turned into an asset.
get_background_urlReturns the URL to put in the background:url of the CSS asset
icon_size_idReturns the size class (ex design32x32) for a given sprite's icon

Var Details

load_immediately

If this asset should be fully loaded on new Defaults to false so we can process this stuff nicely

to_generate

List of arguments to pass into queuedInsert Exists so we can queue icon insertion, mostly for stuff like preferences

Proc Details

ModifyInserted

A simple proc handing the Icon for you to modify before it gets turned into an asset.

Arguments:

get_background_url

Returns the URL to put in the background:url of the CSS asset

icon_size_id

Returns the size class (ex design32x32) for a given sprite's icon

Arguments: