列车调整

This commit is contained in:
dong 2024-01-04 16:45:34 +08:00
parent b99f23cddb
commit f02474d72d
2 changed files with 0 additions and 8 deletions

View File

@ -9,7 +9,6 @@ declare class TrainHead extends Container {
arrow: Graphics;
pause: Graphics;
train: Train;
isStop: boolean;
arrowColor: string;
pauseColor: string;
constructor(train: Train);
@ -51,7 +50,6 @@ export declare class Train extends JlGraphic {
constructor(data?: UpdateTrainConsts);
get datas(): ITrainData;
doRepaint(): void;
setIsStop(v: boolean): void;
setArrowVisible(v: boolean): void;
setPauseVisible(v: boolean): void;
run(): void;

View File

@ -6,7 +6,6 @@ class TrainHead extends Container {
arrow; // 列车箭头
pause; // 列车停止
train;
isStop;
arrowColor;
pauseColor;
constructor(train) {
@ -16,7 +15,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;
}
@ -224,10 +222,6 @@ class Train extends JlGraphic {
this.trainbody.doRepaint();
this.trainHead.doRepaint();
}
// 设置列车是否显示停止
setIsStop(v) {
this.trainHead.isStop = v;
}
// 设置列车箭头是否显示
setArrowVisible(v) {
this.trainHead.arrow.visible = v;