接口 TitleDisplayOptions实验性

Contains additional options for displaying a title and optional subtitle.

interface TitleDisplayOptions {
    fadeInDuration: number;
    fadeOutDuration: number;
    stayDuration: number;
    subtitle?: string | RawMessage | (string | RawMessage)[];
}

属性

fadeInDuration: number

Fade-in duration for the title and subtitle, in ticks. There are 20 ticks per second. Use TicksPerSecond constant to convert between ticks and seconds.

fadeOutDuration: number

Fade-out time for the title and subtitle, in ticks. There are 20 ticks per second. Use TicksPerSecond constant to convert between ticks and seconds.

stayDuration: number

Amount of time for the title and subtitle to stay in place, in ticks. There are 20 ticks per second. Use TicksPerSecond constant to convert between ticks and seconds.

subtitle?: string | RawMessage | (string | RawMessage)[]

Optional subtitle text.