黄绿灯显示调整
This commit is contained in:
parent
d115c4975d
commit
d7c7b3ac9e
@ -722,6 +722,10 @@ class Signal extends Group {
|
||||
this.lamps[0] && this.lamps[0].setColor(this.style.Signal.lamp.whiteColor);
|
||||
this.lamps[1] && this.lamps[1].setColor(this.style.Signal.lamp.redColor);
|
||||
}
|
||||
greenYellow() {
|
||||
this.lamps[0] && this.lamps[0].setColor(this.style.Signal.lamp.yellowColor);
|
||||
this.lamps[1] && this.lamps[1].setColor(this.style.Signal.lamp.greenColor);
|
||||
}
|
||||
lampWhite() {
|
||||
if (this.lamps.length === 1) {
|
||||
this.lamps[0] && this.lamps[0].setColor(this.style.Signal.lamp.whiteColor);
|
||||
@ -1078,6 +1082,10 @@ class Signal extends Group {
|
||||
this.redWhite();
|
||||
break;
|
||||
}
|
||||
case 'GY': {
|
||||
this.greenYellow();
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
this.close(model.logicLight); // 信号关闭
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user