mirror of
https://github.com/ppy/osu
synced 2025-01-26 15:53:12 +00:00
Use play length for timestamp calculation
This commit is contained in:
parent
4f16ecdf1b
commit
5af05f1cc9
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user