@vrspace/babylonjs
Version:
vrspace.org babylonjs client
44 lines (43 loc) • 1.31 kB
TypeScript
/** Menu consisting of vertical buttons in 3D space and associated labels.
*/
export class Buttons {
/**
@param scene
@param title string displayed above the menu
@param options array of options, string labels or objects
@param callback executed when button is activated
@param property optional, if options are object, this specifies string property to display as label
*/
constructor(scene: any, title: any, options: any, callback: any, property: any);
scene: any;
title: any;
options: any;
callback: any;
property: any;
buttonHeight: number;
spacing: number;
color: string;
group: any;
groupWidth: number;
buttons: any[];
selectedOption: number;
horizontalAlignment: any;
verticalAlignment: any;
controls: any[];
textures: any[];
materials: any[];
/** Dispose of everything */
dispose(): void;
/** Set the height, rescales the menu */
setHeight(height: any): void;
/** Display the menu, adds a pointer observable */
display(): void;
selectedMaterial: any;
unselectedMaterial: any;
/** Select an option, executed when a button is pressed.
Executes the callback passing selected option as parameter.
*/
select(i: any): void;
hide(): void;
show(): void;
}