UI Window - phreaknation/phaserwebcomponents GitHub Wiki
Window that has various types of display such as basic window, headerless panel and alert dialog. Also can be dragable.
new this.game.PhaserWebComponents.components.UI.Window({
game: this.game,
options: {
// Window types
// 'panel': Headerless window.
// 'window': Window with header.
type: 'window',
title: 'My Window',
name: 'basic-moveable-window',
// OPTIONAL. Set the window as moveable
moveable: true,
styles: {
left: '400px',
top: '100px',
width: '900px',
height: '900px',
},
// Content template of the body
bodyTemplate: `Basic moveable Window
<div data-replace="videoplayer"></div>`,
},
}),