UNPKG

inventory-window

Version:

a GUI window for interactively manipulating an inventory of itempiles

26 lines (17 loc) 1.01 kB
# inventory-window A GUI window for interactively manipulating an [inventory](https://github.com/deathcap/inventory): ![screenshot](http://i.imgur.com/McqVr4O.png "Screenshot") For an interactive demo run `npm start` or see [http://deathcap.github.io/inventory-window](http://deathcap.github.io/inventory-window). Supported features: * Left-click to pick up a pile * Left-click to drop a pile, merging if possible * Shift-left-click to transfer pile to linked inventory * Right-click to pick up half a pile * Right-click to drop one item from a pile * Right-click, hold, then drag to drop one item as you mouseover * Drop and pickup can be disabled * Optional active inventory slot highlight (used in [voxel-inventory-hotbar](https://github.com/deathcap/voxel-inventory-hotbar)) * Optionally integrates with [voxel-registry](https://github.com/deathcap/voxel-registry) for item textures and item max damage * Damage progress bars shown on damageable items, customizable width and colors ## License MIT