Skip to content

CampaignMenuProps beta ​

Interface of @v12-engine/client/app

ts
export interface CampaignMenuProps

What a campaign's menu is given: the campaign between its missions (CampaignController: how far it is, playing a mission, starting over, its saved games), and its words as they were declared

Members ​

background ​

ts
background?: string;

A CSS background for the menu; stone when left out

campaign ​

ts
campaign: CampaignController;

The controller of the campaign: its progress, playing a mission, starting over and its saved games

picture ​

ts
picture?: (path: string) => string;

The file of a picture of a mission or a chapter, by its path in images/: the campaign's own folder's, or a shared one

subtitle ​

ts
subtitle?: string;

The words under the title as the campaign declared them; none when left out

title ​

ts
title?: string;

The menu's title as the campaign declared it; the campaign's name when left out