This commit is contained in:
joylink_zhaoerwei 2023-11-03 11:20:35 +08:00
parent 4ac281cc78
commit b2fa3f9ccf

View File

@ -51,14 +51,14 @@ class smallDoorGraphic extends Container {
this.addChild(this.smallDoorGraphic);
this.addChild(this.labelGraphic);
}
draw(data: IScreenDoorData, i: number, open: boolean): void {
draw(data: IScreenDoorData, i: number, close: boolean): void {
const start =
(-screenDoorConsts.smallDoorWidth * data.sonDoorAmount) / 2 +
screenDoorConsts.smallDoorWidth * i;
const smallDoorGraphic = this.smallDoorGraphic;
const lineColor = open
? screenDoorConsts.doorOpen
: screenDoorConsts.doorClose;
const lineColor = close
? screenDoorConsts.doorClose
: screenDoorConsts.doorOpen;
smallDoorGraphic
.lineStyle(screenDoorConsts.lineWidth, new Color(lineColor))
.moveTo(start, 0)