Skip to content

EditorPrefs beta ​

Interface of @v12-engine/editor

ts
export interface EditorPrefs

What the one who uses the editor set it to, kept in the browser for every map and every game: not the map's, not the layout's (see layout.ts)

Members ​

angleStep ​

ts
angleStep: AngleStep;

The step rotating things snaps to, in degrees: 5, 15 or 45

animateUnits ​

ts
animateUnits: boolean;

Units on the map play their idle (View › Animate units): off, each holds still in the first frame of it, the same at any distance. Never a walk, whatever moves them; a game played here and a cinematic's world draw as in play. Off when nothing was said

brushes ​

ts
brushes?: BrushPreset[];

Brushes kept by name (EQ5): a brush and its size, strength, softness and shape, to pick again from the bar of the tool (editor.useBrushPreset). None when nothing was said

cameraSpeed ​

ts
cameraSpeed: number;

How fast the camera goes by its keys and the view's edges, and turns, times as it is made: from half to twice (CAMERA_SPEEDS). As made when nothing was said

clearUnderBrush ​

ts
clearUnderBrush: boolean;

The brushes that draw on the ground clear what stands in their way as they go (Clear scenery and grass, BrushOptions.clears): the trees and doodads under the brush taken away, the grass and bushes under it cut to nothing, in the stroke's one step. Off when nothing was said

draftEvery ​

ts
draftEvery: DraftEvery;

Every how many seconds a draft of the map is kept in this browser while it has changes not saved (ED3), to be offered again if the page goes before they are saved: 0 keeps none. 20 when nothing was said

frameBudget ​

ts
frameBudget: number;

Milliseconds a frame the work done in pieces may take all together in the editor's view (FrameBudget.total: the switches of level, the scenery's merging, the units' skeletons, debris), from FRAME_BUDGETS; 0 for no limit. The game's own (GameView.world.frameBudget) in a game played here. 6 when nothing was said

fullDetail ​

ts
fullDetail: boolean;

Everything drawn at full detail, as made, whatever the game and the map say of levels (View › Full detail): off draws by levels as in play (WorldDetail.full). Off when nothing was said

graphics ​

ts
graphics: EditorGraphics;

What drawing the editor's view costs (EditorGraphics): as a game's high preset when nothing was said

grid ​

ts
grid: GridStep;

Snapping (FC3): what places, turns and sizes step by while the handles snap, in cells, degrees and a part of the size (GRID_STEPS, ANGLE_STEPS, SCALE_STEPS), and whether they snap from the start (Ctrl held inverts it as something is put down). Half a cell, 15 degrees, a tenth, and not from the start, when nothing was said

hierarchySort ​

ts
hierarchySort: HierarchySort;

The order the Hierarchy lists each kind's things in (HierarchySort): as the map has them, or by name, type or owner. As the map has them when nothing was said

historySteps ​

ts
historySteps: number;

How many steps the history keeps (undo). 200 when nothing was said

hoverOutline ​

ts
hoverOutline: boolean;

A line around what the pointer is over in the scene (EditorOptions' look, hoverLook). Yes when nothing was said

inspectorOnSelect ​

ts
inspectorOnSelect: boolean;

The Inspector opens by itself when something is selected. Yes when nothing was said

maxFps ​

ts
maxFps: number;

The most frames a second the editor's view is drawn at, 0 for as many as the screen shows (capFrames): a cap spares the GPU, a battery and the fans while a map is edited. No cap when nothing was said

mergeScenery ​

ts
mergeScenery: boolean;

The scenery merged by chunks, as in a game (GameView.world.sceneryBatching): off draws every model as copies of its mesh. Only where the game merges it. Yes when nothing was said

minimap ​

ts
minimap: boolean;

Whether the minimap is shown over the scene, and in which of its bottom corners. Shown, at the right, when nothing was said

minimapCorner ​

ts
minimapCorner: 'left' | 'right';

The bottom corner of the scene the minimap is in

modelView ​

ts
modelView?: {
        width?: number;
        height?: number;
    };

How big the Inspector's Model view draws the model, in pixels, as its corner was dragged: how tall, and how wide where the panel is wide enough for what it is made of to be beside it. As the panel is wide when nothing was said

paletteOrder ​

ts
paletteOrder?: Record<string, string[]>;

The order the Place panel's groups were dragged into, by game id: the groups' names (master plan OC2). A group not named comes after, as the game gives it

scaleStep ​

ts
scaleStep: ScaleStep;

The step scaling things snaps to, as a fraction of the size: 0.05, 0.1 or 0.25

selectionOutline ​

ts
selectionOutline: boolean;

A line around the objects selected in the scene (EditorClient.selectLook), beside the Inspector's say. Yes when nothing was said

snapByDefault ​

ts
snapByDefault: boolean;

Whether placing and moving snap to the steps from the start; Ctrl held inverts it

theme ​

ts
theme: string;

How the editor looks, by a theme's id: its own (dark, light, the classic wood and gold, orange), whose variables are in the stylesheet ([data-editor-theme]) and in code (editorTheme, editorLightTheme...), or one of the game's (EditorOptions.themes). Dark when nothing was said, and for a theme the editor does not have

uiScale ​

ts
uiScale: number;

How big the editor's bars, rails, panels and tool strip are drawn, times as made (campaign plan EQ17): from 0.8 to 1.4 (UI_SCALES), as the CSS variable --editor-ui-scale on the editor's element. As made when nothing was said

viewCube ​

ts
viewCube: boolean;

Whether the view cube (a face to click to look from it, ViewFace) is shown in the scene's corner. Shown when nothing was said

whenIdle ​

ts
whenIdle: WhenIdle;

How it draws when left alone a few seconds (OD2): every frame (full, the default), 15 a second (slow), or not until a hand or a change wakes it (stop)