Fix right click to delete not working
This commit is contained in:
parent
2ca5dc9715
commit
38114ff3f6
Binary file not shown.
After Width: | Height: | Size: 63 KiB |
|
@ -403,7 +403,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
@include DarkThemeOverride {
|
@include DarkThemeOverride {
|
||||||
background: #53565e center center / cover !important;
|
background: $darkModeGameBackground center center / cover !important;
|
||||||
|
|
||||||
.topButtons {
|
.topButtons {
|
||||||
filter: invert(1);
|
filter: invert(1);
|
||||||
|
@ -414,17 +414,17 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.mainContainer {
|
.mainContainer {
|
||||||
background: #4b4c50;
|
background: darken($darkModeGameBackground, 10);
|
||||||
|
|
||||||
.savegames .savegame {
|
.savegames .savegame {
|
||||||
background: #62646a;
|
background: darken($darkModeGameBackground, 15);
|
||||||
color: white;
|
color: white;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.footer {
|
.footer {
|
||||||
> a {
|
> a {
|
||||||
background: #4b4c50;
|
background: darken($darkModeGameBackground, 10);
|
||||||
color: #eee;
|
color: #eee;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -237,18 +237,6 @@ export class HUDBuildingPlacerLogic extends BaseHUDPart {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Canvas click handler
|
|
||||||
* @param {Vector} mousePos
|
|
||||||
* @param {boolean} cancelAction
|
|
||||||
*/
|
|
||||||
onCanvasClick(mousePos, cancelAction = false) {
|
|
||||||
// Prevent any other canvas clicks
|
|
||||||
if (this.currentMetaBuilding.get()) {
|
|
||||||
return STOP_PROPAGATION;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tries to place the current building at the given tile
|
* Tries to place the current building at the given tile
|
||||||
* @param {Vector} tile
|
* @param {Vector} tile
|
||||||
|
@ -473,7 +461,7 @@ export class HUDBuildingPlacerLogic extends BaseHUDPart {
|
||||||
this.currentlyDragging = true;
|
this.currentlyDragging = true;
|
||||||
this.currentlyDeleting = true;
|
this.currentlyDeleting = true;
|
||||||
this.lastDragTile = this.root.camera.screenToWorld(pos).toTileSpace();
|
this.lastDragTile = this.root.camera.screenToWorld(pos).toTileSpace();
|
||||||
this.currentMetaBuilding.set(null);
|
this.deleteBelowCursor();
|
||||||
return STOP_PROPAGATION;
|
return STOP_PROPAGATION;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue