group circles with color fill
This commit is contained in:
parent
5706e5c416
commit
363b906cb8
@ -103,7 +103,7 @@
|
|||||||
|
|
||||||
<div
|
<div
|
||||||
class="btn-lock"
|
class="btn-lock"
|
||||||
class:hide={($peerStore.size === 0 && $currentPlayerGroupLockStateStore === undefined) || isSilent}
|
class:hide={$peerStore.size === 0 || $currentPlayerGroupLockStateStore === undefined || isSilent}
|
||||||
class:disabled={$currentPlayerGroupLockStateStore}
|
class:disabled={$currentPlayerGroupLockStateStore}
|
||||||
on:click={lockClick}
|
on:click={lockClick}
|
||||||
>
|
>
|
||||||
|
@ -980,7 +980,9 @@ export class GameScene extends DirtyScene {
|
|||||||
context.arc(48, 48, 48, 0, 2 * Math.PI, false);
|
context.arc(48, 48, 48, 0, 2 * Math.PI, false);
|
||||||
// context.lineWidth = 5;
|
// context.lineWidth = 5;
|
||||||
context.strokeStyle = "#ffffff";
|
context.strokeStyle = "#ffffff";
|
||||||
|
context.fillStyle = "#ffffff44";
|
||||||
context.stroke();
|
context.stroke();
|
||||||
|
context.fill();
|
||||||
this.circleTexture.refresh();
|
this.circleTexture.refresh();
|
||||||
|
|
||||||
//create red circle canvas use to create sprite
|
//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);
|
contextRed.arc(48, 48, 48, 0, 2 * Math.PI, false);
|
||||||
//context.lineWidth = 5;
|
//context.lineWidth = 5;
|
||||||
contextRed.strokeStyle = "#ff0000";
|
contextRed.strokeStyle = "#ff0000";
|
||||||
|
contextRed.fillStyle = "#ff000044";
|
||||||
contextRed.stroke();
|
contextRed.stroke();
|
||||||
|
contextRed.fill();
|
||||||
this.circleRedTexture.refresh();
|
this.circleRedTexture.refresh();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user