调整宁波一号线信号机显示问题
This commit is contained in:
parent
2272d58403
commit
90c7335964
@ -612,8 +612,12 @@ class Signal extends Group {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
this.cbtcStatus = '';
|
this.cbtcStatus = '';
|
||||||
this.lamps[1] && this.lamps[1].setColor(this.style.Signal.lamp.greenColor);
|
if (parseInt(this.model.lampPositionType) === 2) {
|
||||||
this.lamps[0] && this.lamps[0].setColor(this.style.backgroundColor); // 设置黑色
|
this.lamps[1] && this.lamps[1].setColor(this.style.Signal.lamp.greenColor);
|
||||||
|
this.lamps[0] && this.lamps[0].setColor(this.style.backgroundColor); // 设置黑色
|
||||||
|
} else {
|
||||||
|
this.lamps[0] && this.lamps[0].setColor(this.style.Signal.lamp.greenColor);
|
||||||
|
}
|
||||||
this.virtualSignal && this.virtualSignal.setColor(this.style.Signal.lamp.blueColor);
|
this.virtualSignal && this.virtualSignal.setColor(this.style.Signal.lamp.blueColor);
|
||||||
if (this.style.Signal.lamp.guidName === 'doubleAndBase') { // 设置底座颜色
|
if (this.style.Signal.lamp.guidName === 'doubleAndBase') { // 设置底座颜色
|
||||||
this.sigPost.setColor('#00FF00');
|
this.sigPost.setColor('#00FF00');
|
||||||
@ -636,8 +640,12 @@ class Signal extends Group {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
this.cbtcStatus = '';
|
this.cbtcStatus = '';
|
||||||
this.lamps[1] && this.lamps[1].setColor(this.style.Signal.lamp.yellowColor);
|
if (parseInt(this.model.lampPositionType) === 2) {
|
||||||
this.lamps[0] && this.lamps[0].setColor(this.style.backgroundColor);
|
this.lamps[1] && this.lamps[1].setColor(this.style.Signal.lamp.yellowColor);
|
||||||
|
this.lamps[0] && this.lamps[0].setColor(this.style.backgroundColor);
|
||||||
|
} else {
|
||||||
|
this.lamps[0] && this.lamps[0].setColor(this.style.Signal.lamp.yellowColor);
|
||||||
|
}
|
||||||
if (this.style.Signal.lamp.guidName === 'doubleAndBase') { // 设置底座颜色
|
if (this.style.Signal.lamp.guidName === 'doubleAndBase') { // 设置底座颜色
|
||||||
this.sigPost.setColor('#00FF00');
|
this.sigPost.setColor('#00FF00');
|
||||||
if (this.model.logicLight) { // 设置哈尔滨逻辑点灯 颜色
|
if (this.model.logicLight) { // 设置哈尔滨逻辑点灯 颜色
|
||||||
|
Loading…
Reference in New Issue
Block a user