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

feat: allow custom colors in LegacyComponentSerializer #906

Merged
merged 7 commits into from
Apr 24, 2023

Conversation

Camotoy
Copy link
Contributor

@Camotoy Camotoy commented Apr 22, 2023

Supersedes #903

Bedrock already has one new "legacy" color code, "Minecoin gold". In 1.19.80, there will be a handful of new legacy color codes. The primary goal of this PR is to allow LegacyComponentSerializer usages to take advantage of these new color codes for hex color downsampling. While designing this PR, I also wanted to allow other non-color codes to be modified, since Bedrock doesn't have underscore and obfuscation. We already work around this, however, so this feature is not important to the PR.

@Camotoy Camotoy marked this pull request as ready for review April 22, 2023 19:20
@Camotoy
Copy link
Contributor Author

Camotoy commented Apr 22, 2023

image
Here's how this looks if an implementation defines custom colors.

@kashike kashike self-requested a review April 24, 2023 21:14
@kashike kashike requested a review from zml2008 April 24, 2023 21:23
@kashike kashike self-assigned this Apr 24, 2023
@kashike kashike enabled auto-merge April 24, 2023 21:31
@kashike kashike added this pull request to the merge queue Apr 24, 2023
Merged via the queue into main/4 with commit 7c19212 Apr 24, 2023
@kashike kashike deleted the allow-custom-colors-legacy branch April 24, 2023 21:42
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.

3 participants