add inventory info hover if you have 1 or less items in inventory

This commit is contained in:
Mashy
2019-10-29 17:49:32 +10:00
parent 8ce7edd841
commit 83a87a64e3
2 changed files with 6 additions and 0 deletions
+3
View File
@@ -404,9 +404,12 @@ class Vbox extends preact.Component {
return true;
}
const inventoryHover = vbox.bound.length > 1 ? false : e => hoverInfo(e, 'inventory');
return (
<div class={inventoryClass}
onMouseDown={inventoryClick}
onMouseOver={inventoryHover}
onClick={e => e.stopPropagation()}
style={vboxSelecting || (itemUnequip.length) ? { cursor: 'pointer' } : null}>
<div class="vbox-hdr">