From 99c945e169f8fcf4aef063ec8cc5d64c75f967d9 Mon Sep 17 00:00:00 2001 From: isaisstillalive Date: Sun, 5 Jul 2020 21:35:25 +0900 Subject: [PATCH] Change delete marker button to edit marker button --- src/css/ingame_hud/waypoints.scss | 4 ++-- src/js/game/hud/parts/waypoints.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/css/ingame_hud/waypoints.scss b/src/css/ingame_hud/waypoints.scss index fecb2c66..57c644ab 100644 --- a/src/css/ingame_hud/waypoints.scss +++ b/src/css/ingame_hud/waypoints.scss @@ -52,11 +52,11 @@ opacity: 1; } - .deleteButton { + .editButton { @include S(width, 10px); @include S(height, 10px); @include S(margin-left, 4px); - background: uiResource("icons/close.png") center center / 60% no-repeat; + background: uiResource("icons/edit_key.png") center center / 60% no-repeat; pointer-events: all; cursor: pointer; diff --git a/src/js/game/hud/parts/waypoints.js b/src/js/game/hud/parts/waypoints.js index 095db815..88fe5f58 100644 --- a/src/js/game/hud/parts/waypoints.js +++ b/src/js/game/hud/parts/waypoints.js @@ -168,8 +168,8 @@ export class HUDWaypoints extends BaseHUDPart { } if (this.isWaypointDeletable(waypoint)) { - const deleteButton = makeDiv(element, null, ["deleteButton"]); - this.trackClicks(deleteButton, () => this.requestEditMarker(waypoint)); + const editButton = makeDiv(element, null, ["editButton"]); + this.trackClicks(editButton, () => this.requestEditMarker(waypoint)); } if (!waypoint.label) {