LaneField beta
Interface of @v12-engine/client
export interface LaneField<Item extends LaneItem = LaneItem>A field of a lane's item, as the editor's Inspector draws it (E3): key names it on the item (text, or a field of a field: value.hour), kind says how it is drawn. unit is a name the cinematic finds a unit by (one placed on the map, one of its refs, a param of its); ref is that or a ref made on the spot ({ query: { type: 'footman' } }); ease a curve by name, drawn; camera a shot, a view or a rail, with "Set from view"; fx an effect by name, one of the game's or a ready-made one (PRESET_FX), or one named as the code will have it; sound a sound by its name (hit of sounds/hit_2.mp3), music a track by its name in sounds/music/, video a video by its path in videos/: picked from the game's files, or a file uploaded into them; steps a list of the units lane's sequence, each step with the fields fields gives
Members
fields
fields?(): readonly LaneField[];For steps: the fields of each step of the list
group
group?: string;The fields it is laid out beside in the Inspector, by a name they share ('Box'): the consecutive fields of one group two a line, under its name. Alone when left out
hint
hint?: string;A line of help under the field in the Inspector
key
key: string;The item's field it edits (text, or value.hour for a field of a field)
kind
kind: LaneFieldKind;How the Inspector draws it (LaneFieldKind): number, text, choice, color, unit, ease, sound...
knobs
knobs?: string;For fx: the key of the item its knobs are kept under (params), drawn under it by the effect's own (FxDef.knobs)
label
label?: string;The field's name in the Inspector; derived from the key when left out
max
max?: number;For number: the highest value the field takes
min
min?: number;For number: the lowest value the field takes
optional
optional?: boolean;Left out of a new item (the lane's default stands for it) rather than given an empty value
options
options?: readonly string[];For choice: what it may be
rgb
rgb?: boolean;For color: kept as [r, g, b] (0..1, as the kit's tints are) rather than as CSS words (#ff8800)
step
step?: number;For number: the step its arrows and a drag go by, and its bounds
when
when?(item: Item): boolean;Whether an item has this field: the camera's keys have a view, its clips a unit to follow. Every item when left out