大铁线路调整16

This commit is contained in:
fan 2022-04-24 11:26:49 +08:00
parent e24b992ab9
commit 6d5276d95f

View File

@ -71,7 +71,8 @@ export default class SignalButton extends Group {
});
this.add(this.rightLine);
this.rightLine.hide();
if (model.type === 'PASS') {
const hasTextList = ['PASS', 'ASSIST', 'PICK_ASSIST', 'DEPART_ASSIST', 'ACCIDENT', 'CHANGE_DIRECTION'];
if (hasTextList.includes(model.type)) {
this.buttonText = new Text({
zlevel: this.zlevel,
z: this.z,