arx-level-generator
Version:
A tool for creating Arx Fatalis maps
32 lines • 1.04 kB
JavaScript
import { ScriptProperty } from '../ScriptProperty.js';
/**
* A ScriptProperty for showing and hiding a good chunk of the HUD.
* This command does not fully hide the HUD, only some parts of it.
* Currently the equipment indicators, inventories and minimap remain visible.
*
* @extends ScriptProperty
* @see https://wiki.arx-libertatis.org/Script:playerinterface
*/
export class PlayerInterface extends ScriptProperty {
isSliding;
constructor(value, isSliding = false) {
super(value);
this.isSliding = isSliding;
}
toString() {
return `playerinterface ${this.isSliding === true ? '-s' : ''} ${this.value === true ? 'show' : 'hide'}`;
}
static get on() {
return new PlayerInterface(true);
}
static get off() {
return new PlayerInterface(false);
}
static get slideIn() {
return new PlayerInterface(true, true);
}
static get slideOut() {
return new PlayerInterface(false, true);
}
}
//# sourceMappingURL=PlayerInterface.js.map