Valens-AIO/types/utils/Watermark.d.ts
2022-12-25 18:45:37 -05:00

47 lines
1.7 KiB
TypeScript

import { ICoreConfig } from "../models/spt/config/ICoreConfig";
import { ILogger } from "../models/spt/utils/ILogger";
import { ConfigServer } from "../servers/ConfigServer";
import { LocalisationService } from "../services/LocalisationService";
export declare class WatermarkLocale {
protected localisationService: LocalisationService;
constructor(localisationService: LocalisationService);
protected watermark: {
description: string[];
warning: string[];
modding: string[];
};
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;
constructor(logger: ILogger, configServer: ConfigServer, localisationService: LocalisationService, watermarkLocale?: WatermarkLocale);
protected text: string[];
protected versionLabel: string;
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;
/**
* 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 */
setTitle(): void;
/** Reset console cursor to top */
resetCursor(): void;
/** Draw the watermark */
draw(): void;
/** Caculate text length */
protected textLength(s: string): number;
}