/tg/ Station 13 - Modules - Types — Var Details - Proc Details

art_stylesheet

Art too big for tgui's bundle, which every window loads and the lobby inlines: textures and fonts sent as asset files, with a stylesheet written when the asset registers that names them by the URLs the asset transport gives them. Each texture becomes a custom property on scope, property_prefix and its file's name without the extension, and each font a face. A page loads the stylesheet as soon as it hears of it (loadMappings).

The URLs are written in because Chrome resolves a relative url() in a custom property against the stylesheet that uses it, not the one that declares it.

Vars

fontsThe fonts, by file name: list(family, weight, file).
name_prefixWhat the files' asset names start with.
property_prefixWhat the textures' custom properties start with.
scopeThe selector the stylesheet declares the textures on.
shared_namesFiles another art asset also sends, by file name: the asset name it gives them, which they keep here, so a client fetches and keeps each such file once.
stylesheetThe stylesheet's asset name.
texturesThe textures, by file name.

Procs

asset_nameThe asset name one of the asset's files goes by.
asset_urlThe URL the asset transport gives one of the asset's files, by its asset name.

Var Details

fonts

The fonts, by file name: list(family, weight, file).

name_prefix

What the files' asset names start with.

property_prefix

What the textures' custom properties start with.

scope

The selector the stylesheet declares the textures on.

shared_names

Files another art asset also sends, by file name: the asset name it gives them, which they keep here, so a client fetches and keeps each such file once.

stylesheet

The stylesheet's asset name.

textures

The textures, by file name.

Proc Details

asset_name

The asset name one of the asset's files goes by.

asset_url

The URL the asset transport gives one of the asset's files, by its asset name.