[SPIGOT-7292] Text Display background color - alpha option? Created: 14/Mar/23 Updated: 25/Dec/24 Resolved: 16/Mar/23 |
|
| Status: | Resolved |
| Project: | Spigot |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | New Feature | Priority: | Minor |
| Reporter: | Shane Bee | Assignee: | Doc |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Version: | n/a |
| Guidelines Read: | Yes |
| Description |
|
I was recently looking thru the API and noticed the setBackgroundColor(Color color) of TextDisplay entity uses Bukkit's color class, which does not have an option for the Alpha channel. As per McWiki for Text Display entities: ""
"" I would love to see something here get added, as Im sure many people will find the transparency for these to be quite useful.
Thank you for reading! |
| Comments |
| Comment by Shane Bee [ 16/Mar/23 ] |
|
thanks for this fix. I did want to make a note that Display#getGlowColorOverride(), Display#setGlowColorOverride(Color color), TextDisplay#getBackgroundColor() and TextDisplay#setBackgroundColor(Color color) are all still marked as deprecated! I didn't want to create a new issue for that so figured I'd bring it up here |
| Comment by Doc [ 15/Mar/23 ] |
|
Created PR. https://hub.spigotmc.org/stash/projects/SPIGOT/repos/bukkit/pull-requests/820/overview |