Skip to content

Commit

Permalink
Merge pull request #30199 from bdach/no-song-progress-tooltip-during-…
Browse files Browse the repository at this point in the history
…gameplay

Fix argon song progress bar tooltip showing during active gameplay
  • Loading branch information
smoogipoo authored Oct 10, 2024
2 parents cab97a9 + 938c3d7 commit 245d05a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions osu.Game/Screens/Play/HUD/ArgonSongProgressBar.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 245d05a

Please sign in to comment.