Skip to content

Display

Field

field is a value with its caption before it, which the player reads but does not change, such as who leads a party. The caption stands small in the theme's system color; what the field holds follows it.

Examples

Captions that line up

field "Leader", caption_width: ["Leader", "Place"] do
  text "Luka"
end
field "Place", caption_width: ["Leader", "Place"] do
  text "Iliasville"
end

Two values after captions of one width

caption_width: takes pixels, or the captions that should line up, of which the widest sets the width.

On a plate

field "Leader", plate: true do
  text "Luka"
end

A value on a plate after its caption

With plate: true the value lies on the darker plate a text field has, so read-only values line up with the fields of a form.

Params, events and keys

Every part also takes the params every part takes.

A value with its caption before it, which the player reads but does not change, such as who leads the party.

Written field label, ... with a do ... end block of markup.

Param Takes Default Live About
label: a text yes its caption, small in the theme's system color
caption_width: pixels, or an Array of texts of which the widest sets it the caption's width: pixels, or the captions that should line up, of which the widest sets it
plate: true, false false the value lies on the darker plate a text field has, so it lines up with the fields of a form

Keys: none of its own

Mouse: none of its own

Something went wrong. Reload

Connection interrupted

The site keeps trying to reconnect.

Reconnecting…

Could not reconnect. Trying again in seconds.

Could not reconnect. Retry now or reload the page.

The page was paused.

Could not continue. Retry now or reload the page.