diff --git a/src/graphics/station/Station.ts b/src/graphics/station/Station.ts index a2e562d..3be6384 100644 --- a/src/graphics/station/Station.ts +++ b/src/graphics/station/Station.ts @@ -59,7 +59,7 @@ class constrolGraphic extends Container { stationConsts.codeOffsetX, stationConsts.codeOffsetY ); - this.drawCircleCode(this.circleB, this.codeGraphB, '遥控'); + this.drawCircleCode(this.circleB, this.codeGraphB, '遥控', '0x0fe81f'); this.circleB.position.set( stationConsts.codeOffsetX - stationConsts.circleBetweenOffset, stationConsts.circleOffsetY @@ -78,13 +78,15 @@ class constrolGraphic extends Container { stationConsts.codeOffsetY ); } - drawCircleCode(circle: Graphics, codeGraph: VectorText, code: string): void { + drawCircleCode( + circle: Graphics, + codeGraph: VectorText, + code: string, + fillcolor = stationConsts.fillColor + ): void { circle.clear(); - circle.lineStyle( - stationConsts.borderWidth, - new Color(stationConsts.borderColor) - ); - circle.beginFill(stationConsts.fillColor, 1); + circle.lineStyle(stationConsts.borderWidth, new Color(fillcolor)); + circle.beginFill(fillcolor, 1); circle.drawCircle(0, 0, stationConsts.radius); circle.endFill; codeGraph.text = code;