Fix playerheads

This commit is contained in:
Lukas Rieger (Blue) 2022-12-18 16:27:46 +01:00
parent e6059e9051
commit ad27cb4211
No known key found for this signature in database
GPG Key ID: 2D09EC5ED2687FF2
4 changed files with 4 additions and 7 deletions

@ -1 +1 @@
Subproject commit bdf89ed5b289d821f37a920923bbf80947673714
Subproject commit b5cd8989340198464e10af891afa8e4a13565dc5

View File

@ -2,7 +2,7 @@
<div class="marker-item" :class="{'marker-hidden': !marker.visible}">
<div class="marker-button" :title="marker.id" @click="click(false)">
<div class="icon" v-if="marker.type === 'player'">
<img :src="'assets/playerheads/' + marker.playerUuid + '.png'" alt="playerhead" @error="steve">
<img :src="'maps/' + mapId + '/live/assets/playerheads/' + marker.playerUuid + '.png'" alt="playerhead" @error="steve">
</div>
<div class="info">
<div class="label">{{markerLabel}}</div>
@ -40,6 +40,7 @@ export default {
return {
appState: this.$bluemap.appState,
controls: this.$bluemap.mapViewer.controlsManager.data,
mapId: this.$bluemap.mapViewer.data.map.id
}
},
computed: {

View File

@ -121,6 +121,7 @@
.bm-marker-player {
position: relative;
transform: translate(-50%, -50%);
filter: drop-shadow(1px 1px 3px #0008);
img {
width: 32px;

View File

@ -14,11 +14,6 @@ module.exports = {
//target: 'http://localhost:8100',
target: 'https://bluecolored.de/bluemap',
changeOrigin: true,
},
'/assets/playerheads': {
//target: 'http://localhost:8100',
target: 'https://bluecolored.de/bluemap',
changeOrigin: true,
}
}
}