Skip to content

Refactor UpdateableTeamFlag for use on team overlay#36286

Merged
peppy merged 2 commits intoppy:masterfrom
LiquidPL:team-flag-refactor
Feb 10, 2026
Merged

Refactor UpdateableTeamFlag for use on team overlay#36286
peppy merged 2 commits intoppy:masterfrom
LiquidPL:team-flag-refactor

Conversation

@LiquidPL
Copy link
Copy Markdown
Contributor

@LiquidPL LiquidPL commented Jan 9, 2026

Part of #32584.

Very much inspired by the respective component for displaying profile pictures on the user overlay

  • allow disabling interactivity/tooltips
  • add option to show placeholder on null team instead of hiding component entirely
  • move setting corner radius out to respective parent components to allow for easier overriding

protected Drawable CreateTeamLogo() => new UpdateableTeamFlag(User.Team)
{
Size = new Vector2(52, 26),
CornerRadius = 3.25f,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'm super not sure about this being calculated locally in every usage, where it used to be a known ratio. How many usages are there where it's disabled or doesn't match the ratio?

Also, it's a bit weird that Masking is turned on for this but that's still done at the base UpdateableTeamFlag level.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The only usage would be the big flag on the team profile page. I believe I did it like this since I somehow couldn't figure out how to handle setting the default radius in a clean way when CornerRadius is not set. I'll send in a fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants