Add Hex Text Compatibility to Angelica#1104
Open
KAMKEEL wants to merge 30 commits intoGTNewHorizons:masterfrom
Open
Add Hex Text Compatibility to Angelica#1104KAMKEEL wants to merge 30 commits intoGTNewHorizons:masterfrom
KAMKEEL wants to merge 30 commits intoGTNewHorizons:masterfrom
Conversation
Simplify HexText compat bridge usage
…entation Overhaul HexText compatibility layer
…est-commit Gate HexText compat usage on API availability
Simplify HexText compat initialization
Simplify HexText load check
…-in-angelica Fix HexText resolver initialization
Member
|
For more information: |
Author
Does it use String Replacement when locating those characters? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is a continuation of the RGB Support to Angelica based on these PRS:
#1064 #1070
Repo: https://github.com/KAMKEEL/HexText/tree/main
This is a snippet from the README on Hex Text
Direct RGB colours
HexText recognises two RGB-focused syntaxes that let you move beyond the vanilla palette:
Inline hex colours
Use
&#RRGGBB(or§#RRGGBB) to immediately switch to an exact RGB colour (for example&#ff8800). The change takes effect from the character immediately following the code and clears anynested colour spans that were active before it.
Scoped hex spans
Wrap a section of text in
<RRGGBB> ... </RRGGBB>to apply a colour until the matching closing tag.These spans can be nested and work alongside inline hex codes. Closing a span restores the previous
colour, making it easy to temporarily highlight text without permanently overwriting the stack.
Servers can disable these HTML-style tags if they want to restrict formatting to inline codes.
Both syntaxes accept upper- or lower-case hexadecimal digits.
Special effects
In addition to vanilla style toggles, HexText adds four extra effect codes. Like other formatting
codes they can be written with either
&or§:&g&rto clear it.&h&i&jEffects remain active until the renderer resets them. Any explicit reset (
&r) or colour-stackchange (such as applying a new colour or closing a
<RRGGBB>span) clears the effect, so place thecode after the colour you want it to animate.