This commit is contained in:
2025-10-16 18:19:12 +08:00
parent fba0dc79fe
commit c907f6a1ff
2 changed files with 9 additions and 7 deletions
@@ -235,12 +235,14 @@ export class DetailImageItem extends Component {
ResManager.I.changeRemoteSpriteFrame(this.img, newPath, () => {
this.scaleToFillItem();
});
if (this.isVisible) {
this.video.enabled = false;
this.videoReady.enabled = true;
} else {
this.video.enabled = true;
this.videoReady.enabled = false;
if (this.type === proto.cs.EnmResType.ERT_Video) {
if (this.isVisible) {
this.video.enabled = false;
this.videoReady.enabled = true;
} else {
this.video.enabled = true;
this.videoReady.enabled = false;
}
}
}
}