ScavXpCounts/types/utils/Watermark.d.ts

44 lines
1.7 KiB
TypeScript
Raw Normal View History

2024-11-12 11:51:30 -07:00
import { ICoreConfig } from "@spt/models/spt/config/ICoreConfig";
import { ILogger } from "@spt/models/spt/utils/ILogger";
import { ConfigServer } from "@spt/servers/ConfigServer";
import { LocalisationService } from "@spt/services/LocalisationService";
2023-08-17 19:49:16 -06:00
export declare class WatermarkLocale {
protected localisationService: LocalisationService;
2024-02-23 15:06:00 -07:00
protected description: string[];
protected warning: string[];
protected modding: string[];
2023-08-17 19:49:16 -06:00
constructor(localisationService: LocalisationService);
getDescription(): string[];
getWarning(): string[];
getModding(): string[];
}
export declare class Watermark {
protected logger: ILogger;
protected configServer: ConfigServer;
protected localisationService: LocalisationService;
2024-11-12 11:51:30 -07:00
protected watermarkLocale: WatermarkLocale;
protected sptConfig: ICoreConfig;
2023-08-17 19:49:16 -06:00
protected text: string[];
protected versionLabel: string;
2024-11-12 11:51:30 -07:00
constructor(logger: ILogger, configServer: ConfigServer, localisationService: LocalisationService, watermarkLocale: WatermarkLocale);
2023-08-17 19:49:16 -06: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;
/**
* Handle singleplayer/settings/version
* 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 */
protected setTitle(): void;
/** Reset console cursor to top */
protected resetCursor(): void;
/** Draw the watermark */
protected draw(): void;
}