This commit is contained in:
joylink_zhaoerwei 2024-01-12 16:59:41 +08:00
parent 849c7ffb62
commit a616f4a5da
2 changed files with 8 additions and 2 deletions

View File

@ -39,7 +39,10 @@ class THPlatform extends JlPlatform {
this.doorGraphic.stateFillColor = THConsts.doorGraphic.doorRed;
}
super.draw();
this.doorGraphic.clear();
if (this.datas.hasdoor) {
this.doorGraphic.draw();
}
this.codeGraphic.draw();
if (this.datas.direction == 'down') {
this.doorGraphic.changePosition();

View File

@ -85,7 +85,10 @@ export class THPlatform extends JlPlatform {
this.doorGraphic.stateFillColor = THConsts.doorGraphic.doorRed;
}
super.draw();
this.doorGraphic.clear();
if (this.datas.hasdoor) {
this.doorGraphic.draw();
}
this.codeGraphic.draw();
if (this.datas.direction == 'down') {
this.doorGraphic.changePosition();