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