stop skills repainting

This commit is contained in:
ntr 2019-09-16 21:43:25 +10:00
parent 0f69121340
commit c2731c1eea
3 changed files with 7 additions and 7 deletions

View File

@ -199,7 +199,7 @@
.combat-anim { .combat-anim {
max-width: 100%; max-width: 100%;
max-height: 100%; max-height: 100%;
height: 100%; // height: 100%;
width: 100%; width: 100%;
display: flex; display: flex;
flex-flow: column; flex-flow: column;
@ -300,7 +300,7 @@
pointer-events: none; pointer-events: none;
} }
.resolving .skills button { .animating .skills {
opacity: 0; opacity: 0;
} }

View File

@ -94,7 +94,7 @@ class GameConstruct extends Component {
.map(j => <SkillBtn key={j} construct={construct} i={j} j={i} animating={animating} />); .map(j => <SkillBtn key={j} construct={construct} i={j} j={i} animating={animating} />);
let crypSkills = <div> &nbsp; </div>; let crypSkills = <div> &nbsp; </div>;
if (player && !animating) crypSkills = (<div class="skills"> {skills} </div>); if (player) crypSkills = (<div class="skills"> {skills} </div>);
const effects = construct.effects.length const effects = construct.effects.length
? construct.effects.map(c => <div key={c.effect}>{c.effect} - {c.duration}T</div>) ? construct.effects.map(c => <div key={c.effect}>{c.effect} - {c.duration}T</div>)

View File

@ -12,7 +12,7 @@ const addState = connect(
ws, ws,
game, game,
account, account,
resolution, animating,
activeSkill, activeSkill,
activeConstruct, activeConstruct,
} = state; } = state;
@ -32,7 +32,7 @@ const addState = connect(
return { return {
game, game,
account, account,
resolution, animating,
activeSkill, activeSkill,
activeConstruct, activeConstruct,
selectSkillTarget, selectSkillTarget,
@ -57,7 +57,7 @@ function Game(props) {
const { const {
game, game,
account, account,
resolution, animating,
setActiveSkill, setActiveSkill,
setActiveConstruct, setActiveConstruct,
} = props; } = props;
@ -87,7 +87,7 @@ function Game(props) {
); );
} }
const gameClasses = `game ${resolution ? 'resolving': ''}`; const gameClasses = `game ${animating ? 'animating' : ''}`;
function gameClick(e) { function gameClick(e) {
e.stopPropagation(); e.stopPropagation();