From a331ec846377097f05c526d8fae1331e8545f19a Mon Sep 17 00:00:00 2001 From: agustincarriso <86750198+agustincarriso@users.noreply.github.com> Date: Thu, 16 Jan 2025 14:42:41 -0300 Subject: [PATCH] fix: eslinter --- src/coinshop.ts | 2 +- src/ui/colorplane.ts | 18 +++++++++++------- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/src/coinshop.ts b/src/coinshop.ts index 50e82e7..16c1408 100644 --- a/src/coinshop.ts +++ b/src/coinshop.ts @@ -195,7 +195,7 @@ export class CoinShop { ts.width = 80 ts.height = 40 - + ts.textAlign = TextAlignMode.TAM_TOP_CENTER // ts.fontWeight = "bold"; diff --git a/src/ui/colorplane.ts b/src/ui/colorplane.ts index 2684352..a84bec5 100644 --- a/src/ui/colorplane.ts +++ b/src/ui/colorplane.ts @@ -1,5 +1,5 @@ import { Billboard, BillboardMode, engine, Material, MeshCollider, MeshRenderer, Transform } from '@dcl/sdk/ecs' -import { Color4, Quaternion, Vector3 } from '@dcl/sdk/math' +import { Color4, Quaternion, Vector3 } from '@dcl/sdk/math' /** * A simple PlaneShape with a solid color texture. @@ -31,7 +31,11 @@ export class ColorPlane { MeshRenderer.setPlane(this.entity) MeshCollider.setPlane(this.entity) - Transform.createOrReplace(this.entity,{position: _pos,scale: _scale, rotation: Quaternion.fromEulerDegrees(_angles.x,_angles.y,_angles.z)}) + Transform.createOrReplace(this.entity, { + position: _pos, + scale: _scale, + rotation: Quaternion.fromEulerDegrees(_angles.x, _angles.y, _angles.z) + }) this.changeHexColor(_hexColor) @@ -41,13 +45,13 @@ export class ColorPlane { } changeColor(_color: Color4): void { - if (Material.getMutableOrNull(this.entity)!= null){ + if (Material.getMutableOrNull(this.entity) != null) { Material.deleteFrom(this.entity) } Material.setPbrMaterial(this.entity, { albedoColor: _color, roughness: 0.9, - specularIntensity: 0, + specularIntensity: 0 }) } @@ -56,14 +60,14 @@ export class ColorPlane { } hide(): void { - if (Material.getMutableOrNull(this.entity)!= null){ + if (Material.getMutableOrNull(this.entity) != null) { // add hide logics } } show(): void { - if (Material.getMutableOrNull(this.entity)!= null){ - // add show logics + if (Material.getMutableOrNull(this.entity) != null) { + // add show logics } } }