Skip to content
New issue

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

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

Already on GitHub? # to your account

Spectator list element not saving the Text Colour #32275

Open
bencie opened this issue Mar 7, 2025 · 2 comments
Open

Spectator list element not saving the Text Colour #32275

bencie opened this issue Mar 7, 2025 · 2 comments

Comments

@bencie
Copy link

bencie commented Mar 7, 2025

Type

Cosmetic

Bug description

Edit a skin's layout, and add a SpectatorList if there's none on the skin. Change the Text Colour, and then retry a map, switch skins, or reload skin. The text colour is reverted back to default.

Screenshots or videos

speclistbug.mp4

Version

2025-306.0-lazer

Logs

compressed-logs.zip

@bencie bencie changed the title Skinning: Spectator list element not saving the Text Colour Spectator list element not saving the Text Colour Mar 7, 2025
@zihadmahiuddin
Copy link
Contributor

Looks like it's caused by this, not sure why it's being done here and then the opposite is being done here.
I think the one in updateAppearance is enough, and removing the other one does seem to fix the issue for me.

@Joehuu
Copy link
Member

Joehuu commented Mar 9, 2025

@zihadmahiuddin presumably to set the default to:

Colour = colours.Blue0,

but it should be set here:

public BindableColour4 HeaderColour { get; } = new BindableColour4(Colour4.White);

But Blue0 is not static and has to be hardcoded like ArgonWedgePiece (copies Blue1):

public BindableColour4 AccentColour { get; } = new BindableColour4(Color4Extensions.FromHex("#66CCFF"));

The question is hardcoding again or make those colors static.

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

4 participants