From 0fafa97f6eea83f8e695013fb1e6e7dc552169a5 Mon Sep 17 00:00:00 2001 From: ntr Date: Mon, 20 May 2019 18:19:33 +1000 Subject: [PATCH] ggkkk --- client/assets/styles/instance.css | 11 +++++++++- client/src/components/info.component.jsx | 2 +- client/src/components/instance.component.jsx | 6 ++++++ client/src/components/instance.cryps.jsx | 21 ++++++-------------- client/src/components/vbox.component.jsx | 2 +- client/src/constants.jsx | 10 +++++++++- 6 files changed, 33 insertions(+), 19 deletions(-) diff --git a/client/assets/styles/instance.css b/client/assets/styles/instance.css index e55833b0..9bdecc08 100644 --- a/client/assets/styles/instance.css +++ b/client/assets/styles/instance.css @@ -109,6 +109,16 @@ .vbox-hdr .bits { font-size: 2em; line-height: 1em; + animation: bits 1s ease-out; +} + +@keyframes action { + 0% { + color: palegoldenrod; + } + 100% { + color: whitesmoke; + } } .vbox button { @@ -298,7 +308,6 @@ /* Equipment */ .equip { display: flex; - margin: 1em 0; text-align: center; } diff --git a/client/src/components/info.component.jsx b/client/src/components/info.component.jsx index fef5ea23..9342e7c4 100644 --- a/client/src/components/info.component.jsx +++ b/client/src/components/info.component.jsx @@ -73,7 +73,7 @@ function Info(args) { return (
-
{info}
+

{info}

{fullInfo.description}
{thresholdEl} diff --git a/client/src/components/instance.component.jsx b/client/src/components/instance.component.jsx index 7a71d37b..e2f40ba6 100644 --- a/client/src/components/instance.component.jsx +++ b/client/src/components/instance.component.jsx @@ -40,10 +40,16 @@ function Instance(args) { if (!instance) return false; + function hoverInfo(e, info) { + e.stopPropagation(); + return setInfo(info); + } + const rdyClasses = `instance-btn instance-ui-btn ${player.ready ? 'ready' : ''}`; const readyBtn = ( diff --git a/client/src/components/instance.cryps.jsx b/client/src/components/instance.cryps.jsx index 5915ae69..03d53fe3 100644 --- a/client/src/components/instance.cryps.jsx +++ b/client/src/components/instance.cryps.jsx @@ -38,10 +38,6 @@ const addState = connect( return dispatch(actions.setInfo(null)); } - function setVboxHighlight(v) { - dispatch(actions.setVboxHighlight(v)); - } - function setItemEquip(v) { return dispatch(actions.setItemEquip(v)); } @@ -50,7 +46,7 @@ const addState = connect( return dispatch(actions.setItemUnequip(v)); } - return { quit, clearInfo, setInfo, setActiveCryp, setItemUnequip, setItemEquip, setVboxHighlight }; + return { quit, clearInfo, setInfo, setActiveCryp, setItemUnequip, setItemEquip }; } ); @@ -65,17 +61,10 @@ function Cryp(props) { setActiveCryp, setItemUnequip, setItemEquip, - setVboxHighlight, itemInfo, setInfo, } = props; - function setHighlight(type) { - if (type === 'skill') return setVboxHighlight(itemInfo.items.filter(v => v.skill).map(v => v.item)); - if (type === 'spec') return setVboxHighlight(itemInfo.items.filter(v => v.spec).map(v => v.item)); - return false; - } - function onClick(e) { e.stopPropagation(); e.preventDefault(); @@ -85,6 +74,8 @@ function Cryp(props) { } function hoverInfo(e, info) { + console.log(info); + if (!info) return false; e.stopPropagation(); return setInfo(info); } @@ -107,15 +98,15 @@ function Cryp(props) { return true; } - const action = skill ? '' : 'action'; + // const action = skill ? '' : 'action'; const equip = skillList.includes(vbox.bound[itemEquip]) && !skill ? 'equip' : ''; - const classes = `right ${action} ${equip}`; + const classes = `${equip}`; return ( ); diff --git a/client/src/components/vbox.component.jsx b/client/src/components/vbox.component.jsx index 90410ab6..60635309 100644 --- a/client/src/components/vbox.component.jsx +++ b/client/src/components/vbox.component.jsx @@ -286,7 +286,7 @@ function Vbox(args) {
setReclaiming(false)} onMouseOver={e => hoverInfo(e, 'vbox')} >

e.target.scrollIntoView(true)}>VBOX

-
{vbox.bits}b
+
hoverInfo(e, 'bits')} >{vbox.bits}b