Skip to content

Conversation

@BenCheung0422
Copy link
Member

As described in the title, this adds reset and redo color codes for text color formatting. This rewrites the code for rendering text encoded with color codes. A reset code resets the following text and a redo code sets the color before the last color code applied, and resets the color if the last code is the reset code. This also fixes some potential rendering problems of key input entries and search entries. The method does not require a leading color code now, and has the ability to use the white tint color as the overall rendering color, which can be set by the reset code.

@BenCheung0422 BenCheung0422 changed the title Add reset and redo color codes Add "reset" and "redo" color codes Aug 20, 2023
@Makkkkus
Copy link
Member

Makkkkus commented Dec 5, 2024

Why is this necessary?

@BenCheung0422
Copy link
Member Author

For necessity, see the applications of the feature.

@Litorom
Copy link
Member

Litorom commented Apr 5, 2025

I’m assuming this is similar to Minecraft’s color codes, but can someone actually explain this to me.
If this can make rainbow splashes I’ll merge it for that functionality. May prove useful.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants