Frostdev

KilnAPI reference Guide

localScreen (instance registry)

Generated from schema/registry/localScreen.json by tools/registrygen/registrygen.py: edit the schema, never this page.

Full-screen effects on this client's picture (kiln.screen: exposure, contrast, saturation, tint, vignette, a fill colour). Client-owned (owner decision 12): it lives only in the game client's own Gate, a write or action applies there and is never sent; a server refuses it (gate:client_owned).

  • Key: world (one value per world); side: client; version 0.1.0, experimental (KILNX032)
  • Values are live: a write applies at the Gate's next turn (one-time, owned by the mod), a hold is re-applied at its cadence until released. Kiln.Gate: LocalScreen.<Field>; refs: localScreen[<key>].<field>.
Field Type Holds Cadence Saved Notes
playing int 0..64 - - session read-only; Effects playing now (fading out counts).
ready bool - - session read-only; The pass exists: the next frame with an effect draws it.
Action Arguments What it does
play strength (number, optional, 0..1), fadeIn (number, optional, 0..60), seconds (number, optional, -1..3600), fadeOut (number, optional, 0..60), exposure (number, optional, -8..8), contrast (number, optional, 0.05..4), saturation (number, optional, 0..4), gamma (number, optional, 0.1..5), temperature (number, optional, -1..1), tint (json, optional), vignette (json, optional), vignetteRadius (number, optional, 0..1), vignetteSoftness (number, optional, 0.001..2), fill (json, optional), order (int, optional, -1000000..1000000) Plays an effect of the calling mod (kiln_screen.h's KilnScreenEffect; what is left out is "no change"). Receipt: handle (int).
stop handle (int, optional, 1..4294967295), immediate (bool, optional) Stops one effect of the calling mod (handle), or all of them (no handle). Receipt: stopped (int).

Enshrouded is a trademark of Keen Games GmbH. Kiln is unofficial.