mirror of
https://github.com/ppy/osu.git
synced 2026-06-02 23:41:00 +08:00
Use play length for timestamp calculation
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user