-
-
Notifications
You must be signed in to change notification settings - Fork 104
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: shadow colors #1124
feat: shadow colors #1124
Conversation
api/src/main/java/net/kyori/adventure/text/format/ShadowColor.java
Outdated
Show resolved
Hide resolved
api/src/main/java/net/kyori/adventure/text/format/ShadowColor.java
Outdated
Show resolved
Hide resolved
We need a concept of "no shadow" that exists outside of creating a shadow colour with a magic number value. I'm also not sure I like the ShadowColor object existing as it does, I think I'd prefer it to be an interface implemented by either a singleton "none" object or a textcolor + alpha value. As we need some sort of ARGBLike interface (most platforms already have a colour + alpha object), I think we should try and ensure we don't duplicate API here. Ideally I think the API would allow for all of the following: style.shadowColor(ShadowColor.NONE);
style.shadowColor(ShadowColor.shadowColor(NamedTextColor.RED, 0.4);
style.shadowColor(NamedTextColor.RED);
style.shadowColor(myBukkitColorObject);
style.shadowColor(ShadowColor.shadowColor(0xRRGGBBAA); |
.../src/main/java/net/kyori/adventure/text/minimessage/tag/standard/ShadowColorTagResolver.java
Outdated
Show resolved
Hide resolved
this will need serializer support at some point too |
another thing we should add: a |
00fed47
to
de37bf6
Compare
I think this has everything on my list now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor changes, otherwise this looks fab
...inimessage/src/main/java/net/kyori/adventure/text/minimessage/tag/standard/StandardTags.java
Outdated
Show resolved
Hide resolved
Co-authored-by: Kezz <kieran.wallbanks@gmail.com>
No description provided.