44 lines
1.7 KiB
TypeScript
Raw Normal View History

2024-04-03 20:15:11 +11:00
import { ICoreConfig } from "@spt-aki/models/spt/config/ICoreConfig";
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
import { ConfigServer } from "@spt-aki/servers/ConfigServer";
import { LocalisationService } from "@spt-aki/services/LocalisationService";
2023-06-11 15:10:34 +10:00
export declare class WatermarkLocale {
protected localisationService: LocalisationService;
2024-04-03 20:15:11 +11:00
protected description: string[];
protected warning: string[];
protected modding: string[];
2023-06-11 15:10:34 +10:00
constructor(localisationService: LocalisationService);
getDescription(): string[];
getWarning(): string[];
getModding(): string[];
}
export declare class Watermark {
protected logger: ILogger;
protected configServer: ConfigServer;
protected localisationService: LocalisationService;
protected watermarkLocale?: WatermarkLocale;
protected akiConfig: ICoreConfig;
protected text: string[];
protected versionLabel: string;
2024-04-03 20:15:11 +11:00
constructor(logger: ILogger, configServer: ConfigServer, localisationService: LocalisationService, watermarkLocale?: WatermarkLocale);
2023-06-11 15:10:34 +10:00
initialize(): void;
/**
* Get a version string (x.x.x) or (x.x.x-BLEEDINGEDGE) OR (X.X.X (18xxx))
* @param withEftVersion Include the eft version this spt version was made for
* @returns string
*/
getVersionTag(withEftVersion?: boolean): string;
/**
2023-10-09 20:21:00 +11:00
* Handle singleplayer/settings/version
2023-06-11 15:10:34 +10:00
* Get text shown in game on screen, can't be translated as it breaks bsgs client when certian characters are used
* @returns string
*/
getInGameVersionLabel(): string;
/** Set window title */
2023-10-09 20:21:00 +11:00
protected setTitle(): void;
2023-06-11 15:10:34 +10:00
/** Reset console cursor to top */
2023-10-09 20:21:00 +11:00
protected resetCursor(): void;
2023-06-11 15:10:34 +10:00
/** Draw the watermark */
2023-10-09 20:21:00 +11:00
protected draw(): void;
2023-06-11 15:10:34 +10:00
}