mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-23 02:05:40 +00:00
prevent the radial menu from showing when there's a locked bomb
This commit is contained in:
@@ -75,6 +75,10 @@ export class MainRadialMenu extends LitElement implements Layer {
|
||||
init() {
|
||||
this.radialMenu.init();
|
||||
this.eventBus.on(ContextMenuEvent, (event) => {
|
||||
// Don't show radial menu if there's a locked bomb
|
||||
if (this.uiState.lockedGhostTile) {
|
||||
return;
|
||||
}
|
||||
const worldCoords = this.transformHandler.screenToWorldCoordinates(
|
||||
event.x,
|
||||
event.y,
|
||||
|
||||
Reference in New Issue
Block a user