Skip to content

Add "reset" and "redo" color codes#549

Open
BenCheung0422 wants to merge 5 commits into
MinicraftPlus:mainfrom
BenCheung0422:patch-37
Open

Add "reset" and "redo" color codes#549
BenCheung0422 wants to merge 5 commits into
MinicraftPlus:mainfrom
BenCheung0422:patch-37

Conversation

@BenCheung0422

Copy link
Copy Markdown
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

Makkkkus commented Dec 5, 2024

Copy link
Copy Markdown
Member

Why is this necessary?

@BenCheung0422

Copy link
Copy Markdown
Member Author

For necessity, see the applications of the feature.

@Litorom

Litorom commented Apr 5, 2025

Copy link
Copy Markdown
Member

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