Chat Heads

Chat Heads

51M Downloads

[Suggestion] Text Shadow on the Chat Head

liqwtf opened this issue ยท 2 comments

commented

add a setting allowing to render a 2nd layer underneath the chat head offset by 1 pixel, and making it darker.

Image

i made a little prototype but it's so crappy so i'd rather not push it lmao, also i didn't really manage to setup the dev environment

Image Image obviously wrap that in a statment that only makes it render if the shadow option is enabled.

by comparing the normal white text with the white text's shadow (#3f3f3f) i came to conculsion that it's 75% darker than #ffffff. so the fill layer with black should be ~ARGB.color(191, 0, 0, 0).
Image

really crappy post but i hope it makes sense

Image
commented

Wasn't really planning on touching old Chat Heads versions if not necessary anymore, especially the rendering.
But since 1.21.9 actually adds this in vanilla, I thought why not.

Released 0.13.21 with shadows, on by default, looks like this:

Image

Compared to yours, it renders higher up, so the shadow doesn't render outside the backdrop.
It does not affect name suggestions (like if you type /msg ), because it looked really bad there.
(And instead of a transparent fill, it just multiplies the RGB by 0.25.)

commented

looks great :D wasn't really aware that this was a thing, nor that 1.21.9 even was out. i play on lunar client where the latest released version is 1.21.8