group circles with color fill

This commit is contained in:
Hanusiak Piotr 2022-03-03 14:36:16 +01:00
parent 5706e5c416
commit 363b906cb8
2 changed files with 5 additions and 1 deletions

View File

@ -103,7 +103,7 @@
<div
class="btn-lock"
class:hide={($peerStore.size === 0 && $currentPlayerGroupLockStateStore === undefined) || isSilent}
class:hide={$peerStore.size === 0 || $currentPlayerGroupLockStateStore === undefined || isSilent}
class:disabled={$currentPlayerGroupLockStateStore}
on:click={lockClick}
>

View File

@ -980,7 +980,9 @@ export class GameScene extends DirtyScene {
context.arc(48, 48, 48, 0, 2 * Math.PI, false);
// context.lineWidth = 5;
context.strokeStyle = "#ffffff";
context.fillStyle = "#ffffff44";
context.stroke();
context.fill();
this.circleTexture.refresh();
//create red circle canvas use to create sprite
@ -990,7 +992,9 @@ export class GameScene extends DirtyScene {
contextRed.arc(48, 48, 48, 0, 2 * Math.PI, false);
//context.lineWidth = 5;
contextRed.strokeStyle = "#ff0000";
contextRed.fillStyle = "#ff000044";
contextRed.stroke();
contextRed.fill();
this.circleRedTexture.refresh();
}