Draw cursor after keypress
This commit is contained in:
parent
33f6db24ae
commit
a4edf5d0c2
@ -231,6 +231,24 @@ export class Drawer {
|
|||||||
frame.position.y
|
frame.position.y
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (cursor.position) {
|
||||||
|
Drawer.p.image(
|
||||||
|
cursorImage,
|
||||||
|
cursor.position.x,
|
||||||
|
cursor.position.y,
|
||||||
|
55,
|
||||||
|
55
|
||||||
|
);
|
||||||
|
|
||||||
|
for (let i = 1; i < path.length; i++) {
|
||||||
|
const lastFrame = path[i - 1];
|
||||||
|
const frame = path[i];
|
||||||
|
|
||||||
|
if(!OsuRenderer.settings.showFutureCursorPath && frame.time > OsuRenderer.time) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if(OsuRenderer.settings.showKeyPress) {
|
if(OsuRenderer.settings.showKeyPress) {
|
||||||
|
|
||||||
@ -255,15 +273,7 @@ export class Drawer {
|
|||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (cursor.position)
|
|
||||||
Drawer.p.image(
|
|
||||||
cursorImage,
|
|
||||||
cursor.position.x,
|
|
||||||
cursor.position.y,
|
|
||||||
55,
|
|
||||||
55
|
|
||||||
);
|
|
||||||
|
|
||||||
Drawer.p.pop();
|
Drawer.p.pop();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user