Skip to content

lookSettings ​

Namespace of @v12-engine/editor

Members ​

areaSettings beta ​

ts
export declare function areaSettings(kind: AreaKind, id: number, context?: LookContext): LookSetting[];

The controls of a place of the mist, the weather or the cloud layer, by its kind and id (AreaKind): an area of mist's heights, thickness, colour, soft edge and drift; how much of the weather falls in a place; a patch of clouds' cover and soft edge. Each control's id is <kind>.<id>.<field>

CLOUD_LAYER_SETTINGS beta ​

ts
CLOUD_LAYER_SETTINGS: readonly LookSetting[]

The controls of the cloud layer (MapCloudLayer): its height, size, cover, look, shadows, drift and swing

detailSettings beta ​

ts
detailSettings: (context?: LookContext) => LookSetting[]

The Look panel's Detail: how much detail things are drawn with by their distance on this map (MapEnvironment.detail)

fromHex beta ​

ts
fromHex: (value: string) => Rgb

Reads a #rrggbb colour back into three numbers of 0..1, rounded to two decimals

GLOW_SETTINGS beta ​

ts
GLOW_SETTINGS: readonly LookSetting[]

The Look panel's Glow: how what is emissive glows past its edges on this map (MapEnvironment.glow)

LOOK_SETTINGS beta ​

ts
LOOK_SETTINGS: readonly LookSetting[]

The controls of the Look panel that are settings: the sky, the clouds, the mist by distance and the ground mist

LookContext beta ​

ts
export interface LookContext

What the Look panel's settings are read against, past the map: what each kind of weather looks like, the sounds there are

LookSetting beta ​

ts
export interface LookSetting

A control of the Look panel: a setting, where it is, and what of the map's look it reads and writes

lookSettingWords beta ​

ts
lookSettingWords: (fold: string) => string

The words a fold of the Look panel is found by: the labels and hints of its settings

LookStore beta ​

ts
export declare class LookStore implements SettingsLike

The Look panel's settings as a store the rows read and write (SettingsLike): reads the map's look as it is (reactive, as the map changes: changes.of('map')), writes each change as a step of the history

LookStoreHost beta ​

ts
export type LookStoreHost = Pick<EditorClient, 'edit'>;

What the Look panel’s store reaches of the editor: these, and nothing else of it

MADE_LEVELS beta ​

ts
MADE_LEVELS: NonNullable<MapDetail['levels']>

The levels made by npm run lod for every model that has them: lighter from 40 cells, lighter still from 80

MIST_AREA beta ​

ts
MIST_AREA: {
    base: number;
    top: number;
    density: number;
    softness: number;
}

What an area of mist starts as, where it does not say

PICTURE_NIGHT beta ​

ts
PICTURE_NIGHT: LookSetting

Whether the map's picture has a look of its own at night: a toggle, which makes or takes away the night's look

pictureSettings beta ​

ts
export declare function pictureSettings(part: PicturePart, context?: LookContext, target?: PictureTarget): LookSetting[];

The picture's settings of one part: by day, or at night (shown while the picture has a night look of its own). The map's own picture's (MapEnvironment.picture) when no target is given, or a zone's look's (areaSettings)

PictureTarget beta ​

ts
export interface PictureTarget

Where the picture's controls read and write: the map's own picture (MapEnvironment.picture), over the game's; or a zone's look (MapPictureZone.look), over the map's

seeThroughSettings beta ​

ts
seeThroughSettings: (context?: LookContext) => LookSetting[]

The Look panel's See through: trees and scenery seen through where they hide units on this map (MapEnvironment.seeThrough), over the game's (GameView.world.seeThrough)

shadowSettings beta ​

ts
shadowSettings: (context?: LookContext) => LookSetting[]

The Look panel's Shadows: which things cast the sun's shadow on this map (MapEnvironment.shadows)

toHex beta ​

ts
toHex: (color: readonly number[]) => string

A colour as #rrggbb, and back to 0..1 each

weatherSettings beta ​

ts
export declare function weatherSettings(context?: LookContext): LookSetting[];

The controls of the weather (MapWeather), each over its kind's look (WeatherLook): how much, which way (its own, or the wind's), colour, how much it shows, size, speed, splashes and sound. Shown while there is weather

WIND_SETTINGS beta ​

ts
WIND_SETTINGS: readonly LookSetting[]

The controls of the wind (MapWind): the grass, the weather and mist in places move with it