From 6ba8c19e93d2492758e7aacb8779d40b6ee4497c Mon Sep 17 00:00:00 2001 From: zaryanz Date: Wed, 22 May 2024 19:13:42 +0530 Subject: [PATCH 1/2] feat: introduction of a basic text stroke for grid coordinates where creature is standing --- src/utility/hex.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/utility/hex.ts b/src/utility/hex.ts index 232c14a57..828115b38 100644 --- a/src/utility/hex.ts +++ b/src/utility/hex.ts @@ -549,6 +549,10 @@ export class Hex { align: 'center', }, ); + if (this.creature) { + this.coordText.stroke = '#ffffff'; + this.coordText.strokeThickness = 5; + } this.coordText.anchor.setTo(0.5); this.grid.overlayHexesGroup.add(this.coordText); } From 259f53508548cdb5b8cca4b2cdabe54b786fa0c0 Mon Sep 17 00:00:00 2001 From: zaryanz Date: Wed, 22 May 2024 19:18:27 +0530 Subject: [PATCH 2/2] fix: added trap and drop to the condition --- src/utility/hex.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utility/hex.ts b/src/utility/hex.ts index 828115b38..4ed5df534 100644 --- a/src/utility/hex.ts +++ b/src/utility/hex.ts @@ -549,7 +549,7 @@ export class Hex { align: 'center', }, ); - if (this.creature) { + if (this.creature || this.trap || this.drop) { this.coordText.stroke = '#ffffff'; this.coordText.strokeThickness = 5; }