Use play length for timestamp calculation

This commit is contained in:
CloneWith 2024-10-01 20:53:15 +08:00
parent 4f16ecdf1b
commit 5af05f1cc9
No known key found for this signature in database
GPG Key ID: F4FC0D1E91D7FFD5

View File

@ -42,7 +42,7 @@ namespace osu.Game.Screens.Play.HUD
private InputManager? inputManager;
public LocalisableString TooltipText => $"{(relativePositionX > 0 ? Math.Round(EndTime * relativePositionX / DrawWidth, 2) : relativePositionX > DrawWidth ? EndTime : 0).ToEditorFormattedString()}"
public LocalisableString TooltipText => $"{(relativePositionX > 0 ? (EndTime - StartTime) * relativePositionX / DrawWidth : relativePositionX > DrawWidth ? EndTime : 0).ToEditorFormattedString()}"
+ $" - {(relativePositionX > 0 ? Math.Round(relativePositionX / DrawWidth * 100, 2) : relativePositionX > DrawWidth ? 100 : 0)}%";
public ArgonSongProgressBar(float barHeight)