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 badges to ProfileHeader #2407

Merged
merged 8 commits into from Apr 18, 2018
Merged

Add badges to ProfileHeader #2407

merged 8 commits into from Apr 18, 2018

Conversation

jorolf
Copy link
Contributor

@jorolf jorolf commented Apr 15, 2018

No description provided.

@peppy peppy added this to the April 2018 milestone Apr 16, 2018

private void onOuterHoverLost()
{
rotateBadges();

This comment was marked as off-topic.

private int visibleBadge;
private int badgeCount;

public void ShowBadges(Badge[] badges)

This comment was marked as off-topic.

This comment was marked as off-topic.

{
private const float outer_container_width = 98;
private const float outer_container_padding = 3;
private static readonly Vector2 badge_size = new Vector2(outer_container_width - outer_container_padding * 2, 46);

This comment was marked as off-topic.

},
Badges = badges
};
}

This comment was marked as off-topic.

Texture = textures.Get(badge.ImageUrl),
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
OnLoadComplete = d => d.FadeInFromZero(200)

This comment was marked as off-topic.

@peppy peppy merged commit f678ce1 into ppy:master Apr 18, 2018
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.

None yet

3 participants