Skip to content

Commit

Permalink
Fix/lingering labels (#2480)
Browse files Browse the repository at this point in the history
* Fix lingering hex building tooltip

* Fix lingering explore tooltip
  • Loading branch information
bob0005 authored Dec 13, 2024
1 parent bedc490 commit 0e2956a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/src/three/components/TransitionManager.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ export class TransitionManager {
}

fadeIn() {
const { setIsLoadingScreenEnabled } = useUIStore.getState();
const { setIsLoadingScreenEnabled, setTooltip } = useUIStore.getState();
setIsLoadingScreenEnabled(false);
setTooltip(null);
}
}
1 change: 1 addition & 0 deletions client/src/three/scenes/Worldmap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,7 @@ export default class WorldmapScene extends HexagonScene {
const armyMovementManager = new ArmyMovementManager(this.dojo, selectedEntityId);
playSound(soundSelector.unitMarching1, this.state.isSoundOn, this.state.effectsLevel);
armyMovementManager.moveArmy(selectedPath, isExplored, this.state.currentArmiesTick);
this.state.updateHoveredHex(null);
}
}
}
Expand Down

0 comments on commit 0e2956a

Please sign in to comment.