fivem-js
Version:
Javascript/Typescript wrapper for the FiveM natives
27 lines (26 loc) • 908 B
TypeScript
import { AbstractUIMenuPanel } from './';
import { Sprite } from '../../../';
export declare class UIMenuPercentagePanel extends AbstractUIMenuPanel {
protected readonly background: Sprite;
private _pressed;
private _lastPercentage;
private readonly _title;
private readonly _minText;
private readonly _maxText;
private readonly _activeBar;
private readonly _backgroundBar;
constructor(title?: string, percentage?: number, minText?: string, maxText?: string);
get Title(): string;
set Title(value: string);
get MinText(): string;
set MinText(value: string);
get MaxText(): string;
set MaxText(value: string);
get Percentage(): number;
set Percentage(value: number);
updateParentItem(): void;
setVerticalPosition(y: number): void;
draw(): void;
private _processControls;
private _getProgress;
}