Skip to content

ScoreLook beta ​

Interface of @v12-engine/client

ts
export interface ScoreLook

How the game shows its score (GameView.hud.score, client.score.look). What is counted, and who is told it, is the rules' (RuleSettings.score); this is how the screen puts it. The client's score screen is the HUD's part score (hide it, or put a game's own in its place): opened from the end of the game, the pause menu, or in code

Members ​

atEnd ​

ts
atEnd?: 'button' | 'open' | 'none';

What the screen at the end of a game does with the score: a button to open it (when left out), open it at once, or none

format ​

ts
format?: (stat: ScoreStatDef, value: number) => string | undefined;

How a number reads, in the place of the stat's format: undefined leaves it to the client

graph ​

ts
graph?: string[];

The stats the graph offers, in order: those on the timeline when left out

hide ​

ts
hide?: string[];

The tabs left out, by category id (combat), or graph

labels ​

ts
labels?: Record<string, string>;

Words in the place of a stat's label, by its id

ts
menu?: boolean;

Whether the pause menu has a line that shows the score (Score): yes when left out