列车调整

This commit is contained in:
dong 2024-01-05 15:20:40 +08:00
parent 8076e0bd6d
commit bc0017057c

View File

@ -146,6 +146,11 @@ export class Train extends XaTrain {
this.setCodeBText(codeB);
this.trainbody.doRepaint();
this.trainHead.doRepaint();
if (this.states.mode?.ipModeTrainStoped) {
this.stop();
} else {
this.run();
}
if (this.states.mode?.ipModeTrainHolded) {
this.showStatus(EnumStatusText.H);
} else {
@ -208,6 +213,8 @@ export class Train extends XaTrain {
}
const updataConsts: UpdateTrainConsts = {
arrowPauseOnlyOne: true,
hasBodyRact: false,
textMarginY: 10, // 状态字母与列车距离
marginX: 4, // 图形x轴边距
borderColor: '0xA3E198', // 边框的颜色