Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-269440

Text fields render translucent pixels as opaque

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 24w33a
    • 24w11a, 24w12a, 24w13a, 24w14a, 1.20.5 Pre-Release 1, 1.20.5 Pre-Release 2, 24w19b
    • Confirmed
    • Rendering, UI
    • Low
    • Platform

      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.

        1. 2024-03-15_06.15.57.png
          2024-03-15_06.15.57.png
          166 kB
        2. 2024-03-15_06.22.22.png
          2024-03-15_06.22.22.png
          79 kB
        3. 2024-03-15_06.22.08.png
          2024-03-15_06.22.08.png
          82 kB
        4. 2024-03-15_06.22.18.png
          2024-03-15_06.22.18.png
          83 kB
        5. 2024-03-15_06.22.35.png
          2024-03-15_06.22.35.png
          76 kB
        6. 2024-03-15_06.21.56.png
          2024-03-15_06.21.56.png
          97 kB
        7. 2024-03-15_06.19.04.png
          2024-03-15_06.19.04.png
          325 kB
        8. 2024-03-15_06.19.41.png
          2024-03-15_06.19.41.png
          340 kB
        9. 2024-03-15_06.19.51.png
          2024-03-15_06.19.51.png
          405 kB
        10. 2024-03-15_06.20.49.png
          2024-03-15_06.20.49.png
          440 kB
        11. widget-translucency-test-24w11a-v1.0.zip
          4 kB
        12. 2024-04-01_23.04.33.png
          2024-04-01_23.04.33.png
          597 kB

            Karaoglu [Mojang] eowyn36
            Awesoman3000 Connor Steppie
            Votes:
            4 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: