Set playing once images are loaded
This commit is contained in:
parent
5210755574
commit
4bb7f0d133
@ -15,7 +15,6 @@ export function App() {
|
||||
|
||||
const loadReplay = async () => {
|
||||
await OsuRenderer.loadReplayFromUrl(`https://nise.moe/api/score/${pathReplayId}/replay`);
|
||||
OsuRenderer.setPlaying(true);
|
||||
};
|
||||
|
||||
if(replayId !== pathReplayId) {
|
||||
|
||||
@ -15,7 +15,10 @@ export class Renderer {
|
||||
Drawer.setP(p);
|
||||
|
||||
await Drawer.loadDefaultImages().then(
|
||||
() => (Renderer.areImagesLoaded = true)
|
||||
() => {
|
||||
Renderer.areImagesLoaded = true;
|
||||
OsuRenderer.setPlaying(true);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user