微调
This commit is contained in:
parent
4ac281cc78
commit
b2fa3f9ccf
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user