Conversation
|
Why is there no closing Plus, if you parsed for a closing bracket you could then remove the length check and support other inputs such as 3-char hex (e.g. writing |
|
I agree with both points about readability and supporting more than just 6-char hex. However, I believe using a closing brace would require changing the existing convention set by some of the other features of the tell command, where You can see all of the already existing formatting symbols using this in the comments of the So with the latest cbscript, the following should print an italicized gray "Hello", and a non-italics blue "World!" I tried to keep my addition consistent with this while still allowing more freedom with the colors. |
|
Fair enough for consistency, but now I think that all of them should be changed to have a closing bracket. because Out of scope for this PR, but there can just be a helper method in the parser somewhere to get all tokens within a pair of curly braces that all of the |
Text components in game support custom hex colors in addition to the specific named ones.
This PR adds support for that to the parsing for
tell.Examples: