Merge pull request #30199 from bdach/no-song-progress-tooltip-during-gameplay

Fix argon song progress bar tooltip showing during active gameplay
This commit is contained in:
Dan Balasescu 2024-10-11 00:03:27 +09:00 committed by GitHub
commit 245d05a2e2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -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));