列车调整
This commit is contained in:
parent
b99f23cddb
commit
f02474d72d
2
components/packages/Train/Train.d.ts
vendored
2
components/packages/Train/Train.d.ts
vendored
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user