-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Conversation
|
||
private void onOuterHoverLost() | ||
{ | ||
rotateBadges(); |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
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.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
{ | ||
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.
This comment was marked as off-topic.
Sorry, something went wrong.
}, | ||
Badges = badges | ||
}; | ||
} |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
also fixes rotateBadges bug when hover is lost
Texture = textures.Get(badge.ImageUrl), | ||
Anchor = Anchor.Centre, | ||
Origin = Anchor.Centre, | ||
OnLoadComplete = d => d.FadeInFromZero(200) |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
No description provided.