车站控制微调

This commit is contained in:
joylink_zhaoerwei 2023-06-14 09:49:47 +08:00
parent 6e5cdce10b
commit 00f52e25cc

View File

@ -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;