mirror of
https://github.com/tobspr/shapez.io.git
synced 2024-10-27 20:34:29 +00:00
Minor fixes to the waypoints
This commit is contained in:
parent
1dfbf3f780
commit
5dedb83d06
@ -49,16 +49,19 @@
|
|||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
opacity: 1;
|
opacity: 0.8;
|
||||||
}
|
}
|
||||||
|
|
||||||
.editButton {
|
.editButton {
|
||||||
@include S(width, 10px);
|
@include S(width, 10px);
|
||||||
@include S(height, 10px);
|
@include S(height, 10px);
|
||||||
@include S(margin-left, 4px);
|
@include S(margin-left, 4px);
|
||||||
background: uiResource("icons/edit_key.png") center center / 60% no-repeat;
|
background: uiResource("icons/edit_key.png") center center / 70% no-repeat;
|
||||||
pointer-events: all;
|
pointer-events: all;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
position: relative;
|
||||||
|
@include IncreasedClickArea(2px);
|
||||||
|
transition: transform 0.04s ease-in-out;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
transform: scale(1.5);
|
transform: scale(1.5);
|
||||||
|
@ -109,7 +109,9 @@ export class HUDWaypoints extends BaseHUDPart {
|
|||||||
|
|
||||||
// Catch mouse and key events
|
// Catch mouse and key events
|
||||||
this.root.camera.downPreHandler.add(this.onMouseDown, this);
|
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.
|
* Stores at how much opacity the markers should be rendered on the map.
|
||||||
|
Loading…
Reference in New Issue
Block a user