LaneEditor beta
Interface of @v12-engine/client
export interface LaneEditor<Item extends LaneItem = LaneItem>How the editor draws a lane: its colour and icon on the timeline, the fields of its items, what a clip is called
Members
check
check?(item: Item, names: CinematicNames, def: CinematicDef): string | string[] | undefined;What is wrong with an item beyond the names its fields give (those are checked against the map by their kind): a sentence or sentences for the Problems panel, nothing when it is right. A wave lane says a wave the game has not
color
color: string;The lane's colour on the timeline, as CSS has it
draw
draw?(item: Item, at: LaneDrawContext): void;Draws an item in the editor's scene while the Inspector shows the cinematic, as the camera's paths are (E5): where a wave comes in, where an effect plays. Made again as the cinematic changes; what it puts under at.root is taken away with it
fields
fields?: readonly LaneField<Item>[];The fields of an item, drawn by the inspector in this order
height
height?: number;How many rows high the lane is drawn, 1 when left out
hint
hint?: string;What the lane does, in a sentence or two, for someone who has not met it: the Cinematic panel's tooltip of it (by its name in the list of lanes, and in the menu that adds one)
icon
icon?: string;An icon of the editor's set (editor.icons), or none
inspector
inspector?: Own<LaneInspectorProps<Item>>;A part of its own in the Inspector, under the fields, while items of the lane are selected (a preview of a wave): a component or an element, given the items and a way to change a field of them (set, one step of the history)
label
label?(item: Item): string;What an item is called on the timeline: its text, its clip's name. The kind when left out
media
media?(item: Item): LaneMedia | undefined;The file an item plays, for the editor to draw it on the item's clip in the timeline (a sound's waveform), and to draw a clip that does not say how long it lasts as long as the file: a sound or a track by its name, from seconds into it. Nothing for an item that plays none
moment
moment?: boolean;Its items are moments, not stretches (a hook run, a wave called in): a new one is made with no for
slot
slot?(item: Item): string | null;What an item takes up of its lane, for the editor: two items of one slot are not at one time (two effects, two shots of the camera, two clips of one unit), and two at once go on two lanes; items of different slots may be (a shake while a follow lasts, two units). null lies over anything: what adds up (the screen's clips, a letterbox with a flash in it). The keys one slot and the clips another when left out