传输信号机调整

This commit is contained in:
joylink_fanyuhong 2024-05-21 16:47:37 +08:00
parent ef9165faa4
commit 0c5bba7c0f
3 changed files with 16 additions and 2 deletions

View File

@ -189,6 +189,13 @@ class SkinCode extends defaultStyle {
}, },
lowButton:{ lowButton:{
display: false // 现地 信号机按钮 display: false // 现地 信号机按钮
},
transmission: { // 传输信号机
fillColor: '#f00',
fillColorVirtual: '#f00',
sideLength: 20,
textColor: '#fff',
strokeColor: '#00FFFF'
} }
}; };

View File

@ -233,6 +233,13 @@ class SkinCode extends defaultStyle {
fontSize: 12, fontSize: 12,
distance: 20, distance: 20,
defaultText: 'E' defaultText: 'E'
},
transmission: { // 传输信号机
fillColor: '#f00',
fillColorVirtual: '#f00',
sideLength: 20,
textColor: '#fff',
strokeColor: '#00FFFF'
} }
}; };

View File

@ -931,8 +931,8 @@ class Signal extends Group {
// 隐藏自动信号和自动进路 // 隐藏自动信号和自动进路
setAutoClose() { setAutoClose() {
if (this.style.Signal.auto.autoRouteType != 'text') { if (this.style.Signal.auto.autoRouteType != 'text') {
this.sigAuto.hide(); this.sigAuto && this.sigAuto.hide();
this.sigAuto.setColor(this.style.backgroundColor); this.sigAuto && this.sigAuto.setColor(this.style.backgroundColor);
} else { } else {
this.sigName.setColor(this.style.Signal.text.defaultColor); this.sigName.setColor(this.style.Signal.text.defaultColor);
} }