Migrate CI to Gitea and improve live map diagnostics
CI / Real Minecraft installs (manual) (push) Skipped
CI / Rust, web and container (push) Canceled after 0s
CI / Windows launcher (push) Canceled after 0s
Server integrations / paper (push) Canceled after 0s
Server integrations / Fabric and Forge / 1.20.1 (push) Canceled after 0s
Server integrations / Fabric and Forge / 1.21.1 (push) Canceled after 0s
Server integrations / Fabric and Forge / 26.1.2 (push) Canceled after 0s
Server integrations / Fabric and Forge / 26.2 (push) Canceled after 0s
Server integrations / Fabric and Forge / 26.3 (push) Canceled after 0s
CI / Real Minecraft installs (manual) (push) Skipped
CI / Rust, web and container (push) Canceled after 0s
CI / Windows launcher (push) Canceled after 0s
Server integrations / paper (push) Canceled after 0s
Server integrations / Fabric and Forge / 1.20.1 (push) Canceled after 0s
Server integrations / Fabric and Forge / 1.21.1 (push) Canceled after 0s
Server integrations / Fabric and Forge / 26.1.2 (push) Canceled after 0s
Server integrations / Fabric and Forge / 26.2 (push) Canceled after 0s
Server integrations / Fabric and Forge / 26.3 (push) Canceled after 0s
This commit is contained in:
1 parent
d72d7c2e80
commit
7809d47d39
32 files changed
+518
-325
No files matched your search
@@ -42,6 +42,7 @@ export class MapView {
|
||||
private dimension: MapDimension | null = null;
|
||||
private overlay: MapOverlay = { players: [], claims: [], pins: [] };
|
||||
private layers: MapLayers = { claims: true, pins: true, players: true };
|
||||
private showSkins = true;
|
||||
private tiles = new Map<string, Tile>();
|
||||
private queue: string[] = [];
|
||||
private loading = 0;
|
||||
@@ -117,6 +118,7 @@ export class MapView {
|
||||
}
|
||||
|
||||
setLayers(layers: MapLayers) { this.layers = { ...layers }; this.invalidate(); }
|
||||
setSkins(show: boolean) { this.showSkins = show; this.invalidate(); }
|
||||
|
||||
setSelf(uuid: string | null | undefined) { this.opts.selfUuid = uuid ?? null; this.invalidate(); }
|
||||
|
||||
@@ -611,7 +613,7 @@ export class MapView {
|
||||
ctx.beginPath(); ctx.arc(s.x, s.y, r + 2, 0, Math.PI * 2);
|
||||
ctx.fillStyle = ring; ctx.fill();
|
||||
ctx.restore();
|
||||
const img = this.opts.avatarUrl ? this.icon(this.opts.avatarUrl(p.uuid)) : null;
|
||||
const img = this.showSkins && this.opts.avatarUrl ? this.icon(this.opts.avatarUrl(p.uuid)) : null;
|
||||
ctx.save();
|
||||
ctx.beginPath(); ctx.arc(s.x, s.y, r, 0, Math.PI * 2); ctx.clip();
|
||||
if (img) { ctx.imageSmoothingEnabled = false; ctx.drawImage(img, s.x - r, s.y - r, r * 2, r * 2); }
|
||||
|
||||
Reference in new issue
Block a user