Allow resource packs to change tooltip texture
Seeing as enchantment glints were changed to have the purple colour baked into the texture (allowing resource packs to have enchantments coloured to their liking), it seems fit to have item tooltips (one of the last hard-coded graphics in the game) re-skinnable by resource packs.
Perhaps via three textures, one a nine-slice setup, with each quadrant's size and position defined in an mcmeta file (as the base tooltip), one that gets stretched over the entire size of the tooltip (for the gradient), and one that is an effective duplicate of the first nine-slice, where the transparency acts as a mask for the "Gradient" texture.
(Example of what these three would look like. Purple Grid added to the nine-slices for transparency clarity)
While a bit overly complex in comparison to other textures in the game, it would allow the current tooltips to be accurately recreated while also giving flexibility to resource pack creators.
Please sign in to leave a comment.