self target
This commit is contained in:
parent
1358259512
commit
59a1f808e9
@ -1,19 +1,17 @@
|
||||
const preact = require('preact');
|
||||
const key = require('keymaster');
|
||||
const range = require('lodash/range');
|
||||
|
||||
const molecule = require('./molecule');
|
||||
const saw = require('./saw.component');
|
||||
|
||||
const SKILL_HOT_KEYS = ['Q', 'W', 'E', 'R'];
|
||||
// const SKILL_HOT_KEYS = ['Q', 'W', 'E', 'R'];
|
||||
|
||||
function GamePanel(props) {
|
||||
const {
|
||||
game,
|
||||
activeSkill,
|
||||
activeIncoming,
|
||||
setActiveSkill,
|
||||
selectSkillTarget,
|
||||
selectIncomingTarget,
|
||||
account,
|
||||
quit,
|
||||
} = props;
|
||||
@ -63,9 +61,10 @@ function GamePanel(props) {
|
||||
<div
|
||||
key={cryp.id}
|
||||
style={ activeSkill ? { cursor: 'pointer' } : {}}
|
||||
onClick={() => selectIncomingTarget(cryp.id)}
|
||||
className="cryp-box" >
|
||||
<figure className="img">
|
||||
<figure
|
||||
className="img"
|
||||
onClick={() => selectSkillTarget(cryp.id)} >
|
||||
{molecule}
|
||||
<figcaption>{cryp.name}</figcaption>
|
||||
</figure>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user