Skip to content

ShellDialogs beta ​

Interface of @v12-engine/editor

ts
export interface ShellDialogs

The dialogs of the editor's interface, by id, with what each is opened with (undefined for those opened with nothing): the maps to open, the editor's settings, the name of a layout to keep, a new map made by the game's generator, the browser's storage, a template's name, a picture of the view, a prefab to rename (and tag) or copy under another name, and what to replace something with

Members ​

"prefab-name" ​

ts
'prefab-name': {
        purpose: 'rename' | 'duplicate' | 'variant';
        name: string;
    };

What the prefab-name dialog is for: a prefab renamed (and tagged), or copied under another name

"template-name" ​

ts
'template-name': undefined;

The name to keep the map open now as a template under (File › Save as template)

"view-picture" ​

ts
'view-picture': undefined;

A picture of the view: its scale, its kind, its name among the map's files (View › A picture of the view)

generate ​

ts
generate: undefined;

The dialog for a new map made by the game's generator, opened with nothing

layout ​

ts
layout: undefined;

The dialog for the name a layout is kept under, opened with nothing

open ​

ts
open: undefined;

The dialog of the maps to open, opened with nothing

replace ​

ts
replace: {
        ref: Reference;
        where: 'selection' | 'everywhere';
    };

What the Replace with dialog is for: what is replaced, on the selection or everywhere

settings ​

ts
settings: undefined;

The editor's settings dialog, opened with nothing

storage ​

ts
storage: undefined;

The dialog of the browser's storage the editor keeps, opened with nothing