Log inGet started
World

Arts TD

Branchmain
Branchesmain
Commite0f7951ccb

README.md

pickerKit.previews

The ready-made preview panels a picker can show beside its layout, picked with one setting (previewStyle on Picker.open, or Picker.setPreviewStyle(name)): portrait (a big emblem or portrait, colour swatches, name, title and blurb), stats (large stat bars with values, an overall rating and tags), banner (a tall painted banner on a rod in the choice's colours, with its emblem and motto) and showcase (a turntable: in play a camera renders the choice's 3D model, or a tinted gem when it has none, into the panel; in edit mode and tests it falls back to the art on a turning halo). Every style shows locked choices silhouetted with the padlock, reason and progress, and marks the player's current (saved) choice. define(name, { label, desc, draw = fn(ctx, c, x, y, w, h) -> nodes }) adds a game's own style; a function passed as previewStyle draws a custom panel.