modal dialog element using voxel-modal (voxel.js plugin)
npm install hackedvoxels-modal-dialogModal dialog box element for voxel.js plugins
TODO UPDATE LINKS
To use, inherit from ModalDialog and call the superclass constructor withgame, {contents: [your DOM elements]}. ModalDialog itself inherits from
voxel-modal to pause/resume
game interaction when the dialog box element (an HTML div node with a
border and background) is shown/hidden.
Used by:
* voxel-workbench
* voxel-chest
* voxel-inventory-dialog
Example screenshot:
(Note: the element is empty by default)
MIT