mirror of
https://github.com/tobspr/shapez.io.git
synced 2024-10-27 20:34:29 +00:00
Improve direction lock
This commit is contained in:
parent
0a35c9f5b2
commit
b6964ad1bf
@ -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
|
||||
|
@ -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",
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user