Improve direction lock

This commit is contained in:
tobspr 2020-06-17 13:42:53 +02:00
parent 0a35c9f5b2
commit b6964ad1bf
3 changed files with 6 additions and 4 deletions

View File

@ -299,8 +299,8 @@ export class HUDBuildingPlacer extends HUDBuildingPlacerLogic {
const mouseWorld = this.root.camera.screenToWorld(mousePosition);
const mouseTile = mouseWorld.toTileSpace();
parameters.context.fillStyle = THEME.map.directionLock;
parameters.context.strokeStyle = THEME.map.directionLock;
parameters.context.lineWidth = 3;
parameters.context.strokeStyle = THEME.map.directionLockTrack;
parameters.context.lineWidth = 10;
parameters.context.beginCircle(mouseWorld.x, mouseWorld.y, 4);
parameters.context.fill();
@ -310,7 +310,7 @@ export class HUDBuildingPlacer extends HUDBuildingPlacerLogic {
const endLine = mouseTile.toWorldSpaceCenterOfTile();
const midLine = this.currentDirectionLockCorner.toWorldSpaceCenterOfTile();
parameters.context.beginCircle(startLine.x, startLine.y, 7);
parameters.context.beginCircle(startLine.x, startLine.y, 8);
parameters.context.fill();
parameters.context.beginPath();
@ -319,7 +319,7 @@ export class HUDBuildingPlacer extends HUDBuildingPlacerLogic {
parameters.context.lineTo(endLine.x, endLine.y);
parameters.context.stroke();
parameters.context.beginCircle(endLine.x, endLine.y, 4);
parameters.context.beginCircle(endLine.x, endLine.y, 5);
parameters.context.fill();
// Draw arrows

View File

@ -10,6 +10,7 @@
"selectionBackground": "rgba(74, 163, 223, 0.2)",
"directionLock": "rgb(74, 237, 134)",
"directionLockTrack": "rgba(74, 237, 134, 0.2)",
"resources": {
"shape": "#3d3f4a",

View File

@ -10,6 +10,7 @@
"selectionBackground": "rgba(74, 163, 223, 0.2)",
"directionLock": "rgb(74, 237, 134)",
"directionLockTrack": "rgba(74, 237, 134, 0.2)",
"resources": {
"shape": "#eaebec",