hide scene background when playing video

This commit is contained in:
2026-01-28 17:20:39 +02:00
parent 21010376a1
commit 9cb05babe9
3 changed files with 15 additions and 13 deletions
@@ -41,6 +41,9 @@ class VideoPlayer extends EventManager {
skipTransition: data.skipTransition
});
}
if (data.hideBackground || 1){
engine.showBackground(false);
}
}
const onPause = ()=>{
@@ -49,8 +52,11 @@ class VideoPlayer extends EventManager {
skipTransition: data.skipTransition
});
}
if (data.hideBackground || 1){
engine.showBackground(true);
}
}
vi.addEventListener('play', onPlay);
vi.addEventListener('pause', onPause);