mirror of https://github.com/ppy/osu
Fix argon song progress bar tooltip showing during active gameplay
Closes https://github.com/ppy/osu/issues/30197. Pretty bad one, might be worth a hotfix...
This commit is contained in:
parent
cab97a96ab
commit
938c3d78ce
|
@ -41,6 +41,9 @@ public LocalisableString TooltipText
|
|||
{
|
||||
get
|
||||
{
|
||||
if (!Interactive)
|
||||
return default;
|
||||
|
||||
double progress = Math.Clamp(lastMouseX, 0, DrawWidth) / DrawWidth;
|
||||
|
||||
TimeSpan currentSpan = TimeSpan.FromMilliseconds(Math.Round((EndTime - StartTime) * progress));
|
||||
|
|
Loading…
Reference in New Issue