1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2026-03-02 03:39:21 +00:00

Minor fixes to the waypoints

This commit is contained in:
tobspr
2020-07-07 09:14:43 +02:00
parent 1dfbf3f780
commit 5dedb83d06
2 changed files with 8 additions and 3 deletions

View File

@@ -109,7 +109,9 @@ export class HUDWaypoints extends BaseHUDPart {
// Catch mouse and key events
this.root.camera.downPreHandler.add(this.onMouseDown, this);
this.root.keyMapper.getBinding(KEYMAPPINGS.navigation.createMarker).add(this.requestSaveMarker, this);
this.root.keyMapper
.getBinding(KEYMAPPINGS.navigation.createMarker)
.add(() => this.requestSaveMarker({}));
/**
* Stores at how much opacity the markers should be rendered on the map.