UNPKG

@vrspace/babylonjs

Version:

vrspace.org babylonjs client

32 lines (31 loc) 984 B
/** * Simple form that allows players to join or quit the game, and game owner to set the delay and start the game. * Also shows number of players currently in the game. */ export class GameStatusForm extends Form { /** * @param {boolean} isMine Is this created by game owner? * @param {Function} callback executed on user action, passed true for start or false for quit */ constructor(isMine: boolean, callback: Function); text: string; delayText: string; delayMin: number; delayMax: number; delay: number; callback: Function; isMine: boolean; gameStarted: boolean; /** * Shows the form */ init(): void; label: any; sliderPanel: HorizontalSliderPlane; /** Set number of players */ numberOfPlayers(num: any): void; /** Returns current delay value */ getDelay(): any; } import { Form } from '../ui/widget/form.js'; import { HorizontalSliderPlane } from "../ui/widget/slider-panel.js";