mirror of
https://github.com/tobspr/shapez.io.git
synced 2024-10-27 20:34:29 +00:00
Change delete marker button to edit marker button
This commit is contained in:
parent
8acefda778
commit
99c945e169
@ -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;
|
||||
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user