Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add percent progress display to editor footer #31841

Merged
merged 1 commit into from
Feb 10, 2025

Conversation

peppy
Copy link
Member

@peppy peppy commented Feb 10, 2025

osu Game Tests 2025-02-10 at 05 52 15



protected override void Update()
{
base.Update();

double newBPM = editorBeatmap.ControlPointInfo.TimingPointAt(editorClock.CurrentTime).BPM;
double newProgress = (int)(editorClock.CurrentTime / editorClock.TrackLength * 100);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure on this doing flooring, but it appears to match SongProgressInfo, and also does seem reach 100% at some point, so probably fine

if (lastProgress != newProgress)
{
lastProgress = newProgress;
progress.Text = @$"{newProgress:0}%";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This also probably has localisation concerns, but so does the rest of the editor

@bdach bdach merged commit 3294450 into ppy:master Feb 10, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants