Change delete marker button to edit marker button

This commit is contained in:
isaisstillalive 2020-07-05 21:35:25 +09:00
parent 8acefda778
commit 99c945e169
2 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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) {