Uploaded image for project: 'Minecraft (Bedrock codebase)'
  1. Minecraft (Bedrock codebase)
  2. MCPE-176550

#student_button_text is cut off

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.20.40
    • None
    • Unconfirmed
    • Windows

      I've tried changing the NPC dialogue ui (npc_interact) buttons and noticed that despite setting

      "$button_text_size": [ "100%", "default" ],
      "$button_text_max_size": [ "100%", "100%" ]
      

      any label that binds #student_button_text from student_buttons_collection is still being cut off.
      I also tried creating a custom label, no luck.
      When i manually set the "text" property to a string it won't be cut off.


      Full example npc_interact_screen.json:

      "student_button@common.empty_panel": {
      "size": [ "100%", 20 ],
      "controls": [
      {
      "button@common_buttons.light_text_button": {
      "$button_type_panel": "npc_interact.student_button_label_panel",
      "$pressed_button_name": "button.student_button",
      "layer": 4,
      "size": [ "100%", "100%" ],
      "bindings": [
      { "binding_type": "collection_details", "binding_collection_name": "student_buttons_collection", "binding_collection_prefix": "student_buttons" }
      ]
      }
      }
      ],
      "bindings": [
      { "binding_name": "#student_button_visible", "binding_type": "collection", "binding_name_override": "#visible", "binding_collection_name": "student_buttons_collection" }
      ]
      },
      "student_button_label": {
      "type": "label",
      "color": "$text_color",
      "text": "#student_button_text",
      // "text":"#student_button_text", //stops after ~100px
      // "text":"HELLO WORLD HELLO WORLD HELLO WORLD HELLO WORLD HELLO WORLD HELLO WORLD HELLO WORLD HELLO WORLD", //renders fully
      "bindings": [
      { "binding_name": "#student_button_text", "binding_type": "collection", "binding_collection_name": "student_buttons_collection" }
      ,
      { "binding_name": "$visible_binding", "binding_type": "collection", "binding_name_override": "#visible", "binding_collection_name": "student_buttons_collection" }
      ]
      }
      

       

            thebigsmileXD inxomnyaa
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated: