lookSettings
Namespace of @v12-engine/editor
Members
areaSettings beta
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
CLOUD_LAYER_SETTINGS: readonly LookSetting[]The controls of the cloud layer (MapCloudLayer): its height, size, cover, look, shadows, drift and swing
detailSettings beta
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
fromHex: (value: string) => RgbReads a #rrggbb colour back into three numbers of 0..1, rounded to two decimals
GLOW_SETTINGS beta
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
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
export interface LookContextWhat the Look panel's settings are read against, past the map: what each kind of weather looks like, the sounds there are
LookSetting beta
export interface LookSettingA control of the Look panel: a setting, where it is, and what of the map's look it reads and writes
lookSettingWords beta
lookSettingWords: (fold: string) => stringThe words a fold of the Look panel is found by: the labels and hints of its settings
LookStore beta
export declare class LookStore implements SettingsLikeThe 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
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
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
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
PICTURE_NIGHT: LookSettingWhether 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
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
export interface PictureTargetWhere 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
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
shadowSettings: (context?: LookContext) => LookSetting[]The Look panel's Shadows: which things cast the sun's shadow on this map (MapEnvironment.shadows)
toHex beta
toHex: (color: readonly number[]) => stringA colour as #rrggbb, and back to 0..1 each
weatherSettings beta
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
WIND_SETTINGS: readonly LookSetting[]The controls of the wind (MapWind): the grass, the weather and mist in places move with it