REDNODE / DOCS

Ink styles

Example apps / ink-styles / v0.1.1

Node modneeds codeware

A gallery of the ink API's layout and look words on the HUD: every text style and tone, the plain and the game look, align, grow, gap, pad and icons, with buttons that change them live.

Simulated game starting
Mod log

    The preview draws the colors and sizes close to the game's; icons show as dashed boxes, since their atlases are in the game's archives.

    How it works

    A text style (title, label, value and the rest) and a tone (normal, accent, danger and the rest) give a widget the game's own look: its style sheet, its sizes and weights, and its colors by name, so the game keeps them exact.

    In a column or row, align lines the children up across it, grow shares out the space left, and gap and pad space them. Changing a container's gap or align changes its children too.

    ink.image({ icon }) takes one of the game's icons by its TweakDB record: REDnode reads its atlas and part.

    What it uses

    ink.text style tone look align grow gap pad ink.image icon node.set

    Try this

    Use it

    Copy the files into red4ext/plugins/REDnode/apps/ink-styles/ in the game folder, or start your own package from them: change id and name in the manifest first. The whole folder is on GitHub.