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

View File

@ -7,6 +7,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
- Step by step tutorial - Step by step tutorial
- Will activate during the learn game for the first round - Will activate during the learn game for the first round
- There is a button which will exit tutorial so you can continune the normal practice mode - There is a button which will exit tutorial so you can continune the normal practice mode
- Skill combo previews - Skill combo previews
- You can now preview what item combos will create! - You can now preview what item combos will create!
- Click into the item in the info section table (top right) and it will be replaced with the new item - Click into the item in the info section table (top right) and it will be replaced with the new item
@ -23,6 +24,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
- Made general performance improvements - Made general performance improvements
- Now has default tutorial text for the first round (tells the player to select skills and then the targets) - Now has default tutorial text for the first round (tells the player to select skills and then the targets)
- Moved the login page demo to a new info tab, increased the speed of demo and it now creates random combos
- Buff - Buff
- Previously increased red power and speed stat by 25% - Previously increased red power and speed stat by 25%
- Now increases red power, blue power and speed stat by 30% - Now increases red power, blue power and speed stat by 30%

View File

@ -404,9 +404,12 @@ class Vbox extends preact.Component {
return true; return true;
} }
const inventoryHover = vbox.bound.length > 1 ? false : e => hoverInfo(e, 'inventory');
return ( return (
<div class={inventoryClass} <div class={inventoryClass}
onMouseDown={inventoryClick} onMouseDown={inventoryClick}
onMouseOver={inventoryHover}
onClick={e => e.stopPropagation()} onClick={e => e.stopPropagation()}
style={vboxSelecting || (itemUnequip.length) ? { cursor: 'pointer' } : null}> style={vboxSelecting || (itemUnequip.length) ? { cursor: 'pointer' } : null}>
<div class="vbox-hdr"> <div class="vbox-hdr">