车站控制微调
This commit is contained in:
parent
6e5cdce10b
commit
00f52e25cc
@ -59,7 +59,7 @@ class constrolGraphic extends Container {
|
|||||||
stationConsts.codeOffsetX,
|
stationConsts.codeOffsetX,
|
||||||
stationConsts.codeOffsetY
|
stationConsts.codeOffsetY
|
||||||
);
|
);
|
||||||
this.drawCircleCode(this.circleB, this.codeGraphB, '遥控');
|
this.drawCircleCode(this.circleB, this.codeGraphB, '遥控', '0x0fe81f');
|
||||||
this.circleB.position.set(
|
this.circleB.position.set(
|
||||||
stationConsts.codeOffsetX - stationConsts.circleBetweenOffset,
|
stationConsts.codeOffsetX - stationConsts.circleBetweenOffset,
|
||||||
stationConsts.circleOffsetY
|
stationConsts.circleOffsetY
|
||||||
@ -78,13 +78,15 @@ class constrolGraphic extends Container {
|
|||||||
stationConsts.codeOffsetY
|
stationConsts.codeOffsetY
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
drawCircleCode(circle: Graphics, codeGraph: VectorText, code: string): void {
|
drawCircleCode(
|
||||||
|
circle: Graphics,
|
||||||
|
codeGraph: VectorText,
|
||||||
|
code: string,
|
||||||
|
fillcolor = stationConsts.fillColor
|
||||||
|
): void {
|
||||||
circle.clear();
|
circle.clear();
|
||||||
circle.lineStyle(
|
circle.lineStyle(stationConsts.borderWidth, new Color(fillcolor));
|
||||||
stationConsts.borderWidth,
|
circle.beginFill(fillcolor, 1);
|
||||||
new Color(stationConsts.borderColor)
|
|
||||||
);
|
|
||||||
circle.beginFill(stationConsts.fillColor, 1);
|
|
||||||
circle.drawCircle(0, 0, stationConsts.radius);
|
circle.drawCircle(0, 0, stationConsts.radius);
|
||||||
circle.endFill;
|
circle.endFill;
|
||||||
codeGraph.text = code;
|
codeGraph.text = code;
|
||||||
|
Loading…
Reference in New Issue
Block a user