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

Implement support for viewing multiple profiles at once #247

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

buyaspacecube
Copy link
Contributor

@buyaspacecube buyaspacecube commented Jan 31, 2025

These changes let you input a list of usernames and view their combined plays on one profile page, with each play showing the avatar of the user that set it. An option is included to only display the best play on each individual beatmap

@tsunyoku tsunyoku added the perfcalc-gui PerformanceCalculatorGUI label Jan 31, 2025
Copy link
Member

@stanriders stanriders left a comment

Choose a reason for hiding this comment

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

This shouldn't be a separate screen, instead extend the already existing ProfileScreen

@buyaspacecube buyaspacecube changed the title Implement Combined Profile screen Implement support for viewing multiple profiles at once Jan 31, 2025
Copy link
Member

@stanriders stanriders left a comment

Choose a reason for hiding this comment

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

Haven't tested yet, just a quick code review

PerformanceCalculatorGUI/Screens/ProfileScreen.cs Outdated Show resolved Hide resolved
PerformanceCalculatorGUI/Screens/ProfileScreen.cs Outdated Show resolved Hide resolved
{
usernameTextBox.FlashColour(Color4.Red, 1);
return;
}

Array.Clear(currentUsers);

string[] usernameArray = usernames.Split(',', StringSplitOptions.RemoveEmptyEntries | StringSplitOptions.TrimEntries);
Copy link
Member

Choose a reason for hiding this comment

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

I'd suggest doing splitting only when committing from the textbox, and changing calculateProfile() to accept an array

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good idea, i've done that and also renamed the method calculateProfiles so it makes more sense. i can revert that if necessary

@buyaspacecube
Copy link
Contributor Author

feel free to change the placeholder names to whatever btw

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
perfcalc-gui PerformanceCalculatorGUI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants