列车调整
This commit is contained in:
parent
1a6376096f
commit
b99f23cddb
|
@ -19,7 +19,6 @@ class TrainHead extends Container {
|
|||
arrow: Graphics; // 列车箭头
|
||||
pause: Graphics; // 列车停止
|
||||
train: Train;
|
||||
isStop: boolean;
|
||||
arrowColor: string;
|
||||
pauseColor: string;
|
||||
constructor(train: Train) {
|
||||
|
@ -29,7 +28,6 @@ class TrainHead extends Container {
|
|||
this.addChild(this.arrow);
|
||||
this.addChild(this.pause);
|
||||
this.train = train;
|
||||
this.isStop = true;
|
||||
this.arrowColor = this.train.constDatas.arrowDefaultColor;
|
||||
this.pauseColor = this.train.constDatas.pauseDefaultColor;
|
||||
}
|
||||
|
@ -256,11 +254,6 @@ export class Train extends JlGraphic {
|
|||
this.trainHead.doRepaint();
|
||||
}
|
||||
|
||||
// 设置列车是否显示停止
|
||||
setIsStop(v: boolean) {
|
||||
this.trainHead.isStop = v;
|
||||
}
|
||||
|
||||
// 设置列车箭头是否显示
|
||||
setArrowVisible(v: boolean) {
|
||||
this.trainHead.arrow.visible = v;
|
||||
|
|
Loading…
Reference in New Issue