mojira.dev
MC-269440

Text fields render translucent pixels as opaque

Discovered while testing MC-269437

The bug

If text_field or text_field_highlighted are given textures containing translucent pixels, they will render these pixels as entirely opaque in-game, which is inconsistent with other widgets such as buttons and sliders, which support translucent pixels just fine.

How to reproduce

  1. Download and apply the attached resource pack

  2. Look at any menu containing a text field

Expected results

The text field would have an opaque border and translucent center, just like the buttons.

Actual results

The text field is completely solid.

How to fix

Allow text fields to use translucent pixels.

Further notes

The attached screenshots were taken before I retextured buttons in this specific resource pack.

Linked issues

MC-109447 Inconsistency in transparency of GUI PNG files - only some can be transparent + hover-bugs Resolved MC-144009 Particles no longer support translucency Open MC-145821 Stained glass, ice, slime block and other transparent block particles are not transparent anymore Resolved MC-164001 Some textures no longer support transparency Open MC-165036 Boss bars with the notched style are rendered incorrectly if more than one boss bar is active Resolved

Attachments

Comments 1

muzikbike

eowyn36

Confirmed

Platform

Low

Rendering, UI

translucency-nonfunctional

24w11a, 24w12a, 24w13a, 24w14a, 1.20.5 Pre-Release 1, 1.20.5 Pre-Release 2, 24w19b

24w33a

Retrieved