wl remove duplicate vbox hoverFn
This commit is contained in:
parent
917858174c
commit
5cb9f6ebd0
@ -1,10 +1,10 @@
|
|||||||
# WORK WORK
|
# WORK WORK
|
||||||
## NOW
|
## NOW
|
||||||
|
|
||||||
* add combine between all of shop and stash, stash size -> 4
|
|
||||||
|
|
||||||
*PRODUCTION*
|
*PRODUCTION*
|
||||||
|
|
||||||
|
* supporter gold name in instance (anyone whos put any money into game)
|
||||||
|
|
||||||
* can't reset password without knowing password =\
|
* can't reset password without knowing password =\
|
||||||
|
|
||||||
* Graphics
|
* Graphics
|
||||||
@ -17,17 +17,12 @@
|
|||||||
- Speed (e.g. boots)
|
- Speed (e.g. boots)
|
||||||
- Life (e.g. heart)
|
- Life (e.g. heart)
|
||||||
|
|
||||||
* reduce inventory size and consolidate vbox and inventory on left side
|
|
||||||
|
|
||||||
* audio
|
* audio
|
||||||
* background music
|
* background music
|
||||||
* animation effects
|
* animation effects
|
||||||
* vbox combine / buy / equip etc
|
* vbox combine / buy / equip etc
|
||||||
|
|
||||||
* reclaim change colour from red (clashes with red items)
|
|
||||||
|
|
||||||
* represent construct colours during game phase (coloured border?)
|
* represent construct colours during game phase (coloured border?)
|
||||||
* supporter gold name in instance (anyone whos put any money into game)
|
|
||||||
|
|
||||||
* Give the bots some ai / make stronger so its a challenge for new people to beat
|
* Give the bots some ai / make stronger so its a challenge for new people to beat
|
||||||
- train a few games of with some round losses to get them into the game
|
- train a few games of with some round losses to get them into the game
|
||||||
|
|||||||
@ -241,14 +241,14 @@ class Vbox extends preact.Component {
|
|||||||
<div class='items'>
|
<div class='items'>
|
||||||
<h3
|
<h3
|
||||||
onTouchStart={e => e.target.scrollIntoView(true)}
|
onTouchStart={e => e.target.scrollIntoView(true)}
|
||||||
onMouseOver={e => hoverInfo(e, 'vbox')}> STORE
|
onMouseOver={e => vboxHover(e, 'vbox')}> STORE
|
||||||
</h3>
|
</h3>
|
||||||
<div class={`bits ${vbox.bits < 3 ? 'red' : false}`} onMouseOver={e => hoverInfo(e, 'bits')}>
|
<div class={`bits ${vbox.bits < 3 ? 'red' : false}`} onMouseOver={e => vboxHover(e, 'bits')}>
|
||||||
<h2> {vbox.bits}b </h2>
|
<h2> {vbox.bits}b </h2>
|
||||||
</div>
|
</div>
|
||||||
<button
|
<button
|
||||||
class='vbox-btn'
|
class='vbox-btn'
|
||||||
onMouseOver={e => hoverInfo(e, 'refill')}
|
onMouseOver={e => vboxHover(e, 'refill')}
|
||||||
disabled={vbox.bits < 2
|
disabled={vbox.bits < 2
|
||||||
|| (tutorial && tutorial < 7 && instance.time_control === 'Practice' && instance.rounds.length === 1)
|
|| (tutorial && tutorial < 7 && instance.time_control === 'Practice' && instance.rounds.length === 1)
|
||||||
}
|
}
|
||||||
@ -410,7 +410,7 @@ class Vbox extends preact.Component {
|
|||||||
<div class='items'>
|
<div class='items'>
|
||||||
<h3
|
<h3
|
||||||
onTouchStart={e => e.target.scrollIntoView(true)}
|
onTouchStart={e => e.target.scrollIntoView(true)}
|
||||||
onMouseOver={e => hoverInfo(e, 'inventory')}> STASH
|
onMouseOver={e => vboxHover(e, 'inventory')}> STASH
|
||||||
</h3>
|
</h3>
|
||||||
<button
|
<button
|
||||||
disabled={tutorialDisabled || !refund}
|
disabled={tutorialDisabled || !refund}
|
||||||
@ -431,15 +431,6 @@ class Vbox extends preact.Component {
|
|||||||
//
|
//
|
||||||
// EVERYTHING
|
// EVERYTHING
|
||||||
//
|
//
|
||||||
function hoverInfo(e, newInfo) {
|
|
||||||
if (shopSelect.find(c => c[0])) return true;
|
|
||||||
if (stashSelect.length !== 0) {
|
|
||||||
const base = stashSelect.find(c => !['Red', 'Blue', 'Green'].includes(vbox.bound[c]));
|
|
||||||
if (base || base === 0) return true;
|
|
||||||
}
|
|
||||||
return setInfo(newInfo);
|
|
||||||
}
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div class='vbox'>
|
<div class='vbox'>
|
||||||
{vboxHdr()}
|
{vboxHdr()}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user