Skip to content

DecalLook beta ​

Interface of @v12-engine/client

ts
export interface DecalLook

A kind of mark a game lays on its maps' ground (GameView.ground.decals, by id): its picture, and how a new one is tinted and sized. The editor's Decals palette offers each; presetDecals has ready-made ones

Members ​

blend ​

ts
blend?: 'normal' | 'add';

How it is laid over the ground: as paint, lit as the ground is (normal, when left out), or added to it as light, unlit, glowing by night as by day (add: a rune, a glyph, embers)

fallback ​

ts
fallback?: ParticleTexture;

What it is drawn with where texture's file is not there: one the client draws

name ​

ts
name?: string;

What the editor calls it: its id when left out

opacity ​

ts
opacity?: number;

How much it shows, 0 to 1: all of it when left out

size ​

ts
size?: number;

How wide one is, in cells, where a decal does not say: 2 when left out

texture ​

ts
texture: string;

Its picture: by its path in textures/ (fx/scorch.png), or one the client draws (stain, crack, ring and the rest of ParticleTexture). White and see-through where it is not drawn: the tint colours it

tint ​

ts
tint?: Rgb;

The colour its picture is multiplied by: as it is (white) when left out. A decal's own tint goes over it