#JSON-UI General

1 messages · Page 36 of 1

placid geode
#

the cursor appear

opal aurora
#
// start_screen.json
{
  "inbox_icon_button": {
    "ignored": true
  }
}
placid geode
#

its works the same, the only change is that you will see your hud, like java

opal aurora
#

wait, i have a better method

jade dirge
placid geode
#

ohh you mean that

opal aurora
#

fixed element name, since the previous one only affects the button itself, not other stuffs

placid geode
#

hmm yeah, its possible but i dont remember the property name lol

placid geode
#

"render_game_behind": true

#

i think

jade dirge
#

im gonna test it on pc if it lets me control the game at the same time interact with the form

#

i was thinking of a custom emotes button

#

wait a minute, is it possible to add a button in hud screen that runs script event?

placid geode
#

nope

outer stag
#

Nice melons, my guy

restive adder
sullen bolt
#

Hi

#

can someone help me please?

nocturne python
sullen bolt
#

Por eso hay instrucciones en el shampoo

placid geode
#

:v

nocturne python
# sullen bolt Pinché gringo

Bro, even though we both speak Spanish, the native language of the server is English, so we must speak in English.

weak cape
#

i also got pumpkins

outer stag
jovial hemlock
limpid quarry
#

does anyone have a custom sidebar pack with a good aligned image for the background of the text?

#

i can use?

#

ive been struggling all day tryn to customize mine

limpid quarry
#

man json ui is hard because not many people are good at it

#

so teaching is nearly impossible lol

weak cape
#

I wouldn't say that Json UI is hard. It is just sometimes dumb, deprecated, poorly documented, buggy and unstable

nocturne python
weak cape
#

¡Hola!

limpid quarry
#

so all good now

limpid quarry
#

..
..

#

Can I add animations to title or action images or something

#

For sidebar

#

Uv?

neat sequoia
#

@mystic heart can i dm u??

mental crystal
#

is Shane even active at all?

torpid axle
#

he just busy guys

vestal arrow
#

Toast message howww

normal moat
#

title/actionbar

jade dirge
#

where can i find a form's "body"

limpid quarry
viral oxide
#

How does one use size_binding_x/y?

  "display": {
    "type": "image",
    "texture": "textures/ui/greyBorder",

    "anchor_to": "bottom_left",
    "anchor_from": "bottom_left",

    "size": [32, 96],
    "offset": [16, -16],

    "controls": [
      {
        "test": {
          "type": "image",
          "texture": "<redacted>",
          "size": ["100%", "100%"],

          "property_bag": {
            "#size_binding_y": 0.0,
            "#size_binding_x": 0.0
          }
        }
      }
    ]
  },

I was hoping here the image would go to size 0, 0, but it remains exactly the same size as initial

chilly yacht
#

its based off of the parents size

#

and ur overwriting the size with "size"

#

also i believe you have to bind it, not too sure though

mental crystal
#

chats, title, subtitles, actionbar, scoreboard.

limpid quarry
#

Dang ok

viral oxide
chilly yacht
#

and i think u have to bind it

#

i think the size is fine but still u have to bind it

#

putting it in ur property bag does nothing

chilly yacht
slim oyster
chilly yacht
jade dirge
#
"emote_image": {
  "type": "panel",
  "layer": 2,
  "size": [200, 200],
  "offset": [0, 5],
  "bindings":[
    {
      "binding_type": "collection_details",
      "binding_collection_name": "form_buttons"
    }
  ],
  "controls": [
    {
      "image": {
        "type": "image",
        "bindings": [
          {
            "binding_name": "#form_button_texture",
            "binding_name_override": "#texture",
            "binding_type": "collection",
            "binding_collection_name": "form_buttons"
          }
        ]
      }
    }
  ]
   },
#

i'm trying to use a specific button's image but when i use collection_index it gives me an error

normal moat
#

its basically the percentage of the size of element. 1.0 is 100% of size specified and 0.5 is 50%

mental crystal
#

How do you deal with it?

normal moat
mental crystal
normal moat
#

screen size

#

*window

mental crystal
#

Then how'd you deal with it automatically?

#

how'd you get the window size?

normal moat
#

100% of root panel

#

0.1 size binding x/y will be 10% of root panel or window's size

final matrix
#

why does the icon disappear sometimes on custom tabs,

#

like only my hover image is visible and icon disappears sometime

normal moat
#

maybe layer?

last pollen
#

Hey

#

I need quite the help about js and json scripting in general

#

Right now, im trying to remove a feature from an addon i downloaded

#

Its an addon likely worldedit for survival, which means it uses material, reduces durability and does not refill other blocks than air block when using, a survival building addon basically

#

I wanna try and remove the durability reduce, material reduce and if possible, turn the "fill blocks (air block)" to fill blocks no matter what type of thing

#

I never scripted before, and i cant find tutorials specialized neither in js or json. Can i get help?

random whaleBOT
#
Learn JavaScript

As the Script API is a framework built on JavaScript code, having an understanding of JavaScript is key.

If you are being shown this, then you most likely are a beginner with JS and could use a little guidance.

Videos on Learning JavaScript
Javascript in 1 hour
Javascript Classes in 1 hour

Web Guide:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide

Reference Sites:
https://www.w3schools.com/jsref/default.asp
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference
https://javascript.info

normal moat
#

@last pollen for minecraft scripting, you can ask in #1067535382285135923 and #add-ons

last pollen
#

Thank you

weak cape
#

Can a button trigger an event that triggers an animation when it is clicked?

normal moat
gaunt apex
weak cape
#

thanks

#

i will use that to my advantage 😈

weak cape
#

One question: Is it possible to get according to the first letter the next letters?

#

for example: 5TitleThisIsASideText

#

It gets only the first 5 letters (besides the number)

#

output: Title

mental crystal
weak cape
#

this?

#

I want the first letter to be the "5"

#

I want to display on my button the title
and when i hover the side text

#

So i need to have both the title and the side text in one stirng

#

in that case i would need to somehow seperate them but all of the buttons are not "hard coded"

vestal arrow
#

.... how toast message 🙂

#

😄

weak cape
vestal arrow
#

H o w t o m a k e t o a s t n o t i f i c a t i o n

jovial hemlock
#

anyone knows why my ui crashes with this binding?

{
                "title_bar": {
                    "controls": [
                        {
                            "background": {
                                "alpha": 0.8,
                                "layer": 2,
                                "size": ["100%", "100%sm + 2px"],
                                "texture": "textures/ui/tropical/form/tab_mid",
                                "type": "image"
                            }
                        },
                        {
                            "subtitle_text": {
                                "bindings": [
                                    {
                                        "binding_collection_name": "form_buttons",
                                        "binding_name": "#form_button_text",
                                        "binding_type": "collection"
                                    },
                                    {
                                        "binding_type": "view",
                                        "source_property_name": "((('%.350s' * #form_button_text) - ('%.200s' * #form_button_text)) - '|')",
                                        "target_property_name": "#text"
                                    },
                                    {
                                        "binding_type": "view",
                                        "source_property_name": "(not (#text = ''))",
                                        "target_property_name": "#visible"
                                    }
                                ],
                                
                                "font_type": "MinecraftTen",
                                "layer": 3,
                                "size": ["100% - 16px", "default"],
                                "text": "#text",
                                "text_alignment": "left",
                                "type": "label"
                            }
                        }
                    ],
                    "size": ["100%", "100%cm"],
                    "type": "panel"
                }
            }
#

basicly

"((('%.350s' * #form_button_text) - ('%.200s' * #form_button_text)) - '|')"

this is what is making my ui crash

#

it doesnt happen every single time

#

is random

#

so sometimes work sometimes it crashes my game

wide wasp
#

does anyone know how to add extra slots to the inventory ui?

tropic badger
#

not possible

weak cape
#

maybe this amount causes it to sometime crash

wide wasp
#

I'm not looking for a functional slot

weak cape
wide wasp
#

I'm not looking for a functional slot

wide wasp
#

Are there any examples out there already I can use?

oak verge
#

can't we expand player inv and use the extra slots?

jovial hemlock
rocky quail
oak verge
#

why?

dire leaf
#

good evening,
where is the entity nametag? I'd like to change the background, modify the font...

rocky quail
# oak verge why?

Adding slots is technically possible, but it will not function at all. Increasing the number of inventory slots and trying to interact with them will crash Minecraft

short chasm
#

I'm trying to move the list of messages in the chat down, but I don't know which file saves this

short chasm
#

I saw an image of a command block with a rock texture in this post

valid ridge
#

can i make server forms to be unclosable?

tropic badger
placid geode
#
{
    "namespace": "server_form",
    "third_party_server_screen": {
        "button_mappings": []
    },
    "long_form": {
        "$show_close_button": false
    },
    "custom_form": {
        "$show_close_button": false
    }
}
jovial hemlock
#
if (response.canceled) return myFunction(player)
weak cape
wide wasp
#

Can't you just leave it by pressing the escape button?

wide wasp
hexed briar
#

you can clone them, not turning it into a new slot.

#

adding a new slot will probably crash the game or just doesn't function, obviously server-side stuff.

#

if you can increase the slot like donkey then yeah, might be possible.

wide wasp
#

I have some ideas on how to make a new slot work

#

ill report back here if i figure something out

viral oxide
#

Is it possible to filter what elements are made by a factory? I'm essentially trying to bind some text on the hud to the chat. I have my factory limited to 1 child to stop overlapping text, but if I send any messages that don't meet my visible conditions, it removes the previously correct one

#

I've also tried just binding to #chat_text but I cant get it to work outside of the factories context

normal moat
viral oxide
normal moat
viral oxide
#

I don’t know how to get a binding from the context of the chat factory out to other places

#

I did try and figure out if I could put a binding in root_panel and update it from my factory and read it from other things, but was unsuccessful

normal moat
viral oxide
#

That would be putting multiple elements in the same place tho, right?

normal moat
viral oxide
#

This is already what I’m doing. This doesn’t work because when a new message that doesn’t fit my visibility condition, it overrides the existing correct one

normal moat
#

that's why I'm saying that you should use preserve_title_text in chat binding, if I'm not wrong.

viral oxide
#

Yeah but max children size destroys the element so I can’t preserve it xD

normal moat
#

ahh i got it now xdd

#

well you can try atleast to see

viral oxide
#

I already know it destroys the old elem, tried it earlier today

normal moat
viral oxide
#

Every 20 atm, but I wouldn’t assume rate would be too important since infinite chat messages can be sent in one tick

normal moat
#

I can't really think of a solution rn. I will see when I'm free

viral oxide
earnest wind
#

Is it possible to move the actionbar to a different location depending on the text being written?

viral oxide
mystic stone
#

happy

normal moat
normal moat
#

How mnay updates are you doing per tick?

#

if it is 1 update per 20 ticks as you mentioned before than you can use title

viral oxide
#

20 is a placeholder it’ll be more frequent. I also have multiple other things using title, I’m technically fine with this specific system being lossy, but the others going through title I’m not

valid ridge
opal aurora
#

oh no, this is horrible

#

just leave something to allow players to quit to title

fringe cloud
#

Yo i heard a while ago about a leak showcasing some people, using ore ui?... which was reactjs...

#

Is that true?

tropic badger
#

true but u need to edit the game itself

weak cape
#

Everything works fine. But when I alt tab and then go back to minecraft the scroll panel gets bigger in size

#

why?

placid geode
#

its a server form?

weak cape
#

yes

vale turtle
#

Yh

weak cape
#

It consists of the Body and factory buttons

vale turtle
placid geode
#

are u using collection index?

weak cape
weak cape
placid geode
#

i think yes

weak cape
#

i will look into that

vale turtle
#

Try to minimize your Minecraft screen

#

If it happens then it is probably something with the offset or size related stuff

weak cape
#

in that case it still happens

vale turtle
#

So it is related to your sizing of the scroll content bar I think

weak cape
#

maybe this is the issue?

{
    "binding_name": "#form_button_length",
    "binding_name_override": "#maximum_grid_items"
}
#

(i changed from stack panel to grid, but it did not fix the issue)

placid geode
#

idk, i can only think of collection index issue

#

try with "binding_condition": "always"

red creek
#

What is this font?

weak cape
#

it seems that this binding is the issue or smth

placid geode
#

then try with "once"

weak cape
#

yup

#

its fixed now

#

thanks

vale turtle
#

nice!

left yew
red creek
left yew
clear lantern
#

Can I somehow make my prefix only readable in "source_property_name"? So it won't show in title or text?

placid geode
#

you can use prefix with §

#

like §p§r§e§f§i§x

#

or remove the prefix from your text

clear lantern
#

How I can remove prefix from text?

placid geode
#

(#text - 'yourprefix')

#
{
                "binding_type": "view",
                "source_property_name": "(#text_binding - 'your_prefix')",
                "target_property_name": "#text"
            }
clear lantern
#

So if I have for example: "§p§p" as prefix and title prefix "§0§r" can I use '%.8s' or '%.4s'???

placid geode
#

%.4s

#

if you want to check if your text contains that prefix, you can use (not (#text_binding - 'your_prefix' = #text_binding))

clear lantern
# placid geode %.4s

It's not working...
I have "$dark": "§0§0§r", and

          "enabled": false,
          "visible": false,
          "$title_prefix": "$dark",
          "bindings": [
            {
              "binding_type": "global",
              "binding_name": "#title_text"
            },
            {
              "binding_type": "view",
              "source_property_name": "('%.3s' * #title_text)",
              "target_property_name": "#title_prefix"
            },
            {
              "binding_type": "view",
              "source_property_name": "(#title_prefix = $title_prefix)",
              "target_property_name": "#visible"
            },
            {
              "binding_type": "view",
              "source_property_name": "(#title_prefix = $title_prefix)",
              "target_property_name": "#enabled"
            }
placid geode
#

ohh i see

#

didnt understand u

#

use %.6s

#

if doesnt work

clear lantern
#

It didn't work. I've used "(not ((#title_text - $title_prefix) = #title_text))", and without %.6s, but with { "binding_type": "global", "binding_condition": "none", "binding_name": "#title_text", "binding_name_override": "#title_text" },

placid geode
#

hmm

#

my discord crashed lol

#

use this binding

#
          "bindings": [
            {
              "binding_name": "#title_text"
            },
            {
              "binding_type": "view",
              "source_property_name": "(not (#title_text - $title_prefix = #title_text)",
              "target_property_name": "#visible"
            }
          ]
clear lantern
#

Yeah, I'm good. Thank you for your help!

hollow needle
#

How can I make it so each line of my form body has its own background?

hoary anchor
#

anyone in here intrested in being a long term dev that will do things free for minecraft bedrock

normal moat
#

long term &.. free 💀

acoustic raptor
#

Can the hud_screen.json be modified for marketplace Add-Ons?

hollow needle
acoustic raptor
#

Good to know!

opal aurora
hexed briar
#

Add-ons is more of compatibility related and JSON-UI is not exactly compatible with other addons when modified so yeah.

acoustic raptor
#

Yeah, makes sense

vale turtle
#

i had a question would it be possible to a give a tooltip a flag? so it will only show up when the button text contains a §l§f?

vale turtle
rocky quail
#

@.dingsel has tutorials for it

#

you can look at his YouTube channel for custom form tutorials

vale turtle
#

i know how to make a custom form....

#

just curious about how tooltips were added to the form

crystal cloud
#

Is anyone know what is frame_step means?

normal moat
#

for example you have 162 by 30 spritesheet animation and one frame is 18 by 30 pixels. so frame step will be 18

crystal cloud
normal moat
#

uv size is size of one frame,

normal moat
normal moat
vale turtle
unique swan
#

Hello

clear lantern
#

Is there any way to mirror player model in NPC dialogue?

#

Like, now it's looking to right, but I want its look to left

hollow needle
hollow needle
#

I'm just guessing

paper yew
#

hello guys, im begginer in json ui, anyone help me with this code:

            {
                "passives": {
                    "type": "stack_panel",
                    "orientation": "vertical",
                    "size": [
                        "50%",
                        "50%"
                    ],
                    "layer": 1,
                    "anchor_to": "center",
                    "anchor_from": "center",
                    "controls": [
                        {
                            "image1": {
                                "type": "image",
                                "texture": "textures/passiveUI/strength"
                            }
                        },
                        {
                            "image2": {
                                "type": "image",
                                "texture": "textures/passiveUI/eletric"
                            }
                        }
                    ]
                }
            },

I need there to be no spaces between image1 and image2

red creek
#

How to make buttons scroll horizontally?

hollow needle
hollow needle
red creek
weak cape
red creek
weak cape
#

you will need to try on your own

red creek
#

I've tried and I couldn't

mental crystal
#

Damn, it's been while since I touched json ui... But anyways

{
  "paper_doll": {
    "type": "custom",
    "renderer": "paper_doll_renderer",
    "camera_tilt_degrees": -10,
    "starting_rotation": 30,
    "layer": 2,
    "anchor_from": "bottom_middle",
    "anchor_to": "bottom_middle",
    "rotation": "gesture_x",
    "size": [
      "100%",
      "100%"
    ],
    "use_selected_skin": false,
    "animation_reset_name": "screen_animation_reset",
    "anims": [
      "@common.screen_exit_size_animation_push",
      "@common.screen_exit_size_animation_pop",
      "@common.screen_entrance_size_animation_push",
      "@common.screen_entrance_size_animation_pop"
    ],
    "bindings": [
      {
        "binding_name": "#paper_doll_skin"
      },
      {
        "binding_type": "view",
        "source_control_name": "viewer_panel",
        "source_property_name": "#gesture_delta_source",
        "target_property_name": "#gesture_delta_source"
      },
      {
        "binding_type": "view",
        "source_control_name": "viewer_panel",
        "source_property_name": "#gesture_mouse_delta_x",
        "target_property_name": "#gesture_mouse_delta_x"
      }
    ]
  }
}```
#

Guys, how do I make that I can rotate in my y-axis too?

#

I dunno how tho

#

Or it's not possible at all

#

-# sad.

tall trellis
#

How do i darken the screen when its nighttime?

normal moat
tall trellis
#

But theres no controlls to automatically do it when its dark for the player right?

normal moat
#

yeah, you can use title and scripting though

pliant oyster
#

Does anyone know how I can replace textures of only specific coppers with the specific title? For example, if I put the title roulette on a copper, the texture that I made will be set as that GUI?

tall trellis
pliant oyster
#

😔

tawny gale
#

Can we pass values from script API into JSON UI?? I need to pass a background texture reference into my custom ActionFrom and I don't really want to have one form for each background

mental crystal
#

Just cut the strings the textures needed

tawny gale
#

Coddy in for the win!! So simple when you think about it facepalm

vestal arrow
#

Anyone know my hover get 40 string and how to show before 40 string #form_button_text for form_button text

+hover_text
"(#form_button_text - ('%.40s' * #form_button_text))"

And how for button text 🙂

hasty hamlet
#

hi there, is it possible to open an image when using server forms that remains on the screen even after the server form is closed? like an animation?

opal aurora
vestal arrow
#

Example
"My Button\nThis is for hover"

And i need to show "My Button" of form_button

and for hover_text i need "This hover text"

#

It's like how to split the word, if we take "This is for hover" we need "%.11s" to get "This is for hover" but if we form the button text so that it's just "My Button" how do we do that?

opal aurora
#

i'm still confused

vestal arrow
opal aurora
#

a string from nowhere

vestal arrow
opal aurora
#

ah

vestal arrow
#

#form_button_text

opal aurora
#

so you need to make the original string like this:

<button_text>\t\t\t...\t\t\t\t\t<hover_text>
             [ about 100x '\t' ]
#

for button text, use binding property: (('%.100s' * #form_button_text) - '\t')

opal aurora
#

and for hover text, use this binding property: (#form_button_text - ('%.100s' * #form_button_text) - '\t')

#

limit for button text is 100 characters, this can be changed to higher or lower, with those '100' numbers

vestal arrow
#

Thank you so much 😄

opal aurora
vestal arrow
weak cape
#

You can always use buttons instead

hasty hamlet
#

do someone know how can I disable this background effect of the world when I open a server form that the world become a bit blurry? or is it not possible?

placid geode
#

blurry?

hasty hamlet
#

I dont know how to explain, look this:
so when you open a form, the background becomes blurry, I want to stop that

hollow needle
#

How can I make this work?```js
"text": "#form_button_text - '.locked'"

chilly yacht
pliant oyster
hasty hamlet
#

hi again, do someone know if is possible to define a image to "$default_button_texture" based on the text/label of the button?

rocky quail
#

yes

#

using bindings or variables

hasty hamlet
#

"$default_button_texture is already a variable, so I think binding cannot be used with, right? I tried but it doesnt work

hollow needle
weak cape
hollow needle
#

Oh right, I just looked at the bindings

hollow needle
placid geode
#

yes

hollow needle
#

I'm guessing this is also possible```json
{
"binding_type": "view",
"source_property_name": "($is_locked)",
"target_property_name": "#visible"
}

hollow needle
#

It didn't work

#

I have it like this```json
"option_button@server_form.rf_option_button": {
"$text": "#parsed",
"$is_locked": "#is_locked",

      "bindings": [
        {
          "binding_type": "collection_details",
          "binding_collection_name": "form_buttons"
        },
        {
          "binding_name": "#form_button_text",
          "binding_collection_name": "form_buttons",
          "binding_type": "collection"
        },
        {
          "binding_type": "view",
          "source_property_name": "(not ((#form_button_text - '.option') = #form_button_text))",
          "target_property_name": "#visible"
        },
        {
          "binding_type": "view",
          "source_property_name": "(#form_button_text - '.option')",
          "target_property_name": "#parsed"
        },
        {
          "binding_type": "view",
          "source_property_name": "(not ((#form_button_text - '.locked') = #form_button_text))",
          "target_property_name": "#is_locked"
        }
      ]
    }
#

And this```json
"rf_option_button": {
"$text|default": "#form_button_text",
"$is_locked|default": false,

"type": "panel",
"size": [ 76, 24 ],
"$border_visible": false,

"controls": [
  {
    "enabled@common_buttons.light_text_button": {
      "$default_button_texture": "textures/ui/rf/java_button",
      "$hover_button_texture": "textures/ui/rf/java_button_hold",
      "$pressed_button_texture": "textures/ui/rf/java_button_hold",
      "$pressed_button_name": "button.form_button_click",
      
      "size": [ 74, 22 ],
      "$button_text": "$text",
      "$button_text_binding_type": "collection",
      "$button_text_grid_collection_name": "form_buttons",
      "$button_text_max_size": [ "100%", 22 ],

      "bindings": [
        {
          "binding_type": "view",
          "source_property_name": "(not ($is_locked))",
          "target_property_name": "#visible"
        }
      ]
    }
  },
{
  "disabled@common_buttons.light_text_button": {
    "$default_button_texture": "textures/ui/rf/java_button_disabled",
    "$hover_button_texture": "textures/ui/rf/java_button_disabled",
    "$pressed_button_name": "",

    "size": [ 74, 22 ],
    "$button_text": "#text_locked",
    "$button_text_binding_type": "collection",
    "$button_text_grid_collection_name": "form_buttons",
    "$button_text_max_size": [
      "100%",
      22
    ],
    "bindings": [
      {
        "binding_type": "view",
        "source_property_name": "($is_locked)",
        "target_property_name": "#visible"
      },
      {
        "binding_type": "view",
        "source_property_name": "(#form_button_text - '.locked')",
        "target_property_name": "#text_locked"
      }
    ]
  }
}

]
}

#

$text and $is_locked are not working for some reason

placid geode
#

you cant set the value of a variable through bindings

hollow needle
placid geode
#

use just bindings

hollow needle
#

Where?

placid geode
#

ill do it for u

placid geode
#

this should work but

#

as you are using a button preset from ui_template_buttons, you cant modify button text directly

#

so .locked and .option Will be displayed

#

you have two options

#

do your own button template from 0

#

or use flags with §

#

like §o§p§t§i§o§n and §l§o§c§k§e§d

#

ok wait

#

actually theres another way

#

now should work like normal

mental crystal
#

is it possible to remove the Has Custom Properties text?

#

Don't answer me with commands it's possible to remove with /gamerule showTags false just wanna know.

mental crystal
tropic badger
tropic badger
#

is that new

tropic badger
# mental crystal

ui/ui_common.json

{
  "highlight_slot_panel/highlight/hover_text": {
    "modifications": [
      {
        "array_name": "bindings",
        "operation": "replace",
        "where": {
          "binding_name": "$hover_text_binding_name",
          "binding_name_override": "#hover_text",
          "binding_type": "collection",
          "binding_collection_name": "$item_collection_name"
        },
        "value": [
          {
            "binding_name": "$hover_text_binding_name",
            "binding_name_override": "#orig_hover",
            "binding_type": "collection",
            "binding_collection_name": "$item_collection_name"
          },
          {
            "binding_type": "view",
            "source_property_name": "(#orig_hover - 'Has Custom Properties')",
            "target_property_name": "#hover_text"
          }
        ]
      }
    ]
  }
}
placid geode
#

works only on english lol

mental crystal
#

My plan was, if the item has that text in the lore, remove any tooltips

#

I mean the has Custom Propertie so that very items isn't affected if they have dynamic property since gamerule affects every item

#

But I made my life complicated.

hollow needle
# placid geode

I ended up making a new label and removing the original button text

#

Are bindings shared with the child elements?

#

I want to make 3 stack panels that will have the same factory for the form buttons

#

And I want the buttons to detect in wich one they are so they can be visible or not depending on the #form_button_text

mental crystal
#

Can we get the value in #exp_progress and put in text?

#

for some reason it doesn't show up

#

and yes I converted it to text since it's a number.

hexed briar
mental crystal
#

But when used in clip_ratio it works fine?

hexed briar
#

boolean does not play nice to something like this so you'll need to point that binding to something else to read it.

#

even then, it's not guaranteed that you'll able to read it.

mental crystal
#

I need to get the value xp used that's it I need to reference it for calculation of values

#

I want to at least copy the amount of px they use.

#

you get what I mean.

hexed briar
#

you can probably convert boolean into number with weird math stuff

mental crystal
#

it only returns true/false how would you convert it.

hexed briar
#

json-ui things i guess

#

for whatever reason operator can handle both boolean and numbers at the same time

#

i still don't understand how do they work yet but they works so lmao.

#

I used that to detect if the binding returns true or false, then use that stupid math to convert true into 1 and then just combine them all together and you get a number.

mental crystal
#

That sounds Goofy

hexed briar
#

actually nevermind change boolean to integers. i forgot the name

mental crystal
#

I have more questions lol, how to display the block from structure renderer

#

and how do I hate a button in the form button if the text matches

hexed briar
#

although they have to be a fixed pos though.

hexed briar
mental crystal
#

that's my plan tho :(

mental crystal
#

It's 3 values in an array, tho I put them with world location it doesn't work

hexed briar
hexed briar
mental crystal
#

Btw I forgot if it's enabled or enable

#

is it with ed?

hexed briar
#

maybe

tropic badger
tawny gale
#

where am i going wrong here?? All i want is to use the #title_text value as a path to the background texture {
"chest_ui_336@chest_ui.chest_panel": {
"$background": "#BG",
"$size": ["436px","100%c"],
"layer": 20,
"bindings": [
{
"binding_name": "#title_text",
"binding_type": "global"
},
{
"binding_type": "view",
"source_property_name": "('textures/ui/' + #title_text - '§3§3§6§c§h§e§s§t§r' + '.png)",
"target_property_name": "#BG"
},
{
"binding_type": "view",
"source_property_name": "( (not (( #title_text - '§3§3§6§c§h§e§s§t§r') = #title_text)) )",
"target_property_name": "#visible"
}

            ]
        }
placid geode
tawny gale
#

oh..........well thats a bit of bugger!! Care to offer your vast knowledge on how i could set the texture path from data within the custom ActionForm??

mental crystal
mental crystal
#

I don't need the value for use but for reference only.

#

I want to copy at least 1:1 of it...

tawny gale
#

How do I get the path to the texture passed into the $background value

unkempt steppe
#

is it possible to increase parent size when children have offset? my children elements get outside the parent when i give them some offset (basically padding)

final matrix
#

How do I change the horse render entity?

placid geode
#
    "bindings": [
      {
        "binding_name": "#title_text"
      },
      {
        "binding_type": "view",
        "source_property_name": "('textures/ui/' + #title_text - '§3§3§6§c§h§e§s§t§r')",
        "target_property_name": "#texture"
      },
      {
        "binding_type": "view",
        "source_property_name": "( (not (( #title_text - '§3§3§6§c§h§e§s§t§r') = #title_text)) )",
        "target_property_name": "#visible"
      }
    ]
mental crystal
#

Halp for grid lol

#

I will send a screenshot of what I want.

#

everything is a separate button, even tho gray ones too

#

tho I can also manually position it but that's time consuming imo

#

using grid, do I just manually move it with grid position?

mental crystal
thorny shadow
#

is ore ui has any use in making addons?

tawny gale
placid geode
#

just make two image elements

#

one visible if not using 336

#

other visible if using 336

vestal arrow
#

How to hide other panel if i click drawer

tawny gale
# placid geode just make two image elements

Intereting....It would have to be 3 as each one has different dimensions. If my background element has a set of child controls (multiple stack panels etc) am I able to set the texture of it outside of the stack or would I need to duplicate the whole stack 3 times??

placid geode
#

do it like this

#
  "panel"
: {
    "type": "panel",
    "controls": [
      {
        "backgrounds": {
          "type": "panel",
          "controls": [
            {
              "bg1": {}
            },
            {
              "bg2": {}
            },
            {
              "bg3": {}
            }
          ]
        }
      },
      {
        "content": {
          "type": "panel",
          "controls": [
            {
              "stack_panel1": {}
            },
            {
              "stack_panel2": {}
            },
            {
              "stack_panel3": {}
            }
          ]
        }
      }
    ]
  }
tawny gale
# placid geode do it like this

Appreciate the help, but I think this will change the ChestUI JSON way beyond my understanding of being able to fix if it goes wrong. I'll have a go at string manipulation and try to get the path included in the #title_text

red creek
#

Because it looks like it's blinking

hollow needle
red creek
hollow needle
#

I'll search for a possible property that can be changed

placid geode
#

if you have screen animations off, then not possible afaik

red creek
hollow needle
#

I could not find anything

placid geode
# red creek What animation would that be?

  "third_party_server_screen"
: {
    "$screen_animations": [
      "@server_form.exit_wait"
    ],
    "$background_animations": [
      "@server_form.exit_wait"
    ]
  },
  "exit_wait": {
    "anim_type": "wait",
    "duration": 0.2,
    "play_event": "screen.exit_pop",
    "end_event": "screen.exit_end"
  }
hollow needle
placid geode
#

yes

#

apply to all

hollow needle
#

Is there a way to apply it only to a custom form?

placid geode
#

maybe removing the animations from the screen and placing them in your custom panel

hollow needle
#

I just tried

#

I didn't affect

placid geode
#

do you have screen animations on?

red creek
placid geode
#

settings > video > screen animations

hollow needle
#

I think 1.5 is enough for the duration

chilly yacht
#

No

red creek
final matrix
final grove
#

yo

#

doesn anyonbe know

red creek
final grove
#

how to make a custom title take into account safe zone

final matrix
#

are making the mod?

final grove
#

what i mean is have the title display right above the hotbar regardless of safezone

#

pls help

red creek
final matrix
#

oh yeah

#

any has any idea why my block sticks to sides of adjacent blocks

I want it so that it only sticks where I place but it sticks to sides of adjacent blocks

:placement_filter is sides

final grove
#

pls help me

final matrix
#

like a ladder or wine placement

hardy lily
#

how to use actionbar bindings properly?
I already tried this, and it's not working

          "bindings": [
            {
              "binding_name": "$actionbar_text"
            },
            {
              "binding_type": "view",
              "source_property_name": "(not(($actionbar_text - $mitm)  = $actionbar_text))",
              "target_property_name": "#visible"
            }
          ]
#

oh wait, I forgor something

#

there's an actual example for that 🤦

normal moat
#

actionbar dont have bindings, you can convert it though:

"property_bag": {
  "#actionbar_text": "$actionbar_text"
}
hardy lily
#

thanks

hardy lily
#

I realize Pocketmine only sending tip text, not an actual actionbar

hardy lily
#

also, how to run an animation with bindings?

sharp zinc
#

how could I get multiple values from one string?

#

let's say on the title or something, I put value:1,valuetwo:2

#

How would I get 1 and 2 separately?

mental crystal
sharp zinc
#

idk how to do that in json UI 😭

mental crystal
#

(('%.400s' * #text) - ('%.200s' * #text))

#

get the characters from 200 to 400

mental crystal
#

(('%.400s' * #text) - ('%.200s' * #text)) - '~'

sharp zinc
mental crystal
sharp zinc
#

like, if I were to input a texture path, or longer numbers

mental crystal
sharp zinc
#

alright, ty though

placid geode
#

use script methods

#

like '\t'.repeat and that things

mental crystal
#

ahh like put a very long characters to accept then fill those empty spots with something

sharp zinc
#

ohh that makes sense

mental crystal
#

So that it removes the '~'

#

As long as you added - '~' it can be ay type of text

#

Just choose

sharp zinc
#

okie, I will try some stuff out when I get the time

mental crystal
#

Guys, I made the chat in text have hover text

#

tho, how do I make that the specific text in the string is only hover-able

#

for example I have Coddy BRUH LMFAO I will hover BRUH it will show up otherwise no

oak shoal
#

Is there a way to change the position of a button with a specific name?

valid swan
misty minnow
#

Is it possible to put hover text on the server form buttons?

misty minnow
mental crystal
# misty minnow How do I do it?

y'know the basics of json ui? And also, usejs "<any name>.common.hover_text": { "property_bag": { "#hover_text": "TEST" } }

misty minnow
misty minnow
mental crystal
misty minnow
placid geode
#

maybe using some stack panels and text splitting

chilly yacht
#

@oak verge yo wheres ur nineslice viewer?

#

it was actually useful sadJoe

mental crystal
#

How do I make sure that the length of the text is the length of the panel only?

#

do I use %c or %cm?

chilly yacht
#

oh he changed the link i guess

#

or im tripping

left yew
#

dont think it was changed

hoary orbit
#
{
                                        "hoverText": {
                                            "type": "panel",
                                            "size": [
                                                "63px",
                                                22
                                            ],
                                            "controls": [
                                                {
                                                    "text": {
                                                        "type": "label",
                                                        "text": "#form_button_text",
                                                        "text_alignment": "center",
                                                        "font_type": "default",
                                                        "font_size": "medium",
                                                        "line_padding": 0,
                                                        "font_scale_factor": 1,
                                                        "contained": true,
                                                        "layer": 100,
                                                        "max_size": [
                                                            1000,
                                                            1000
                                                        ],
                                                        "offset": [0, 40],
                                                        "bindings": [
                                                            {
                                                                "binding_name": "#form_button_text",
                                                                "binding_type": "collection",
                                                                "binding_collection_name": "form_buttons"
                                                            },
                                                            {
                                                                "binding_type": "view",
                                                                "source_property_name": "(not ((#form_button_text - 'ht') = #form_button_text))",
                                                                "target_property_name": "#visible"
                                                            }
                                                        ]
                                                    }
                                                }
                                            ]
                                        }
                                    }```


Please help me make hover text so that it only shows after the letter "ht".
chilly yacht
#

anyone have issues with #form_text not working?

vital tulip
#

Hey i forgot what do i add to hud_screen.json to rid the hearts armor and hunger bars

chilly yacht
vital tulip
#

Is that new

mental crystal
vital tulip
#

Why was i forced to live in a rock

chilly yacht
vital tulip
#

I see it and im very happy

mental crystal
#

ok when I use crosshair render, if going to camera it removes it, but when I add an element to have a visible one, when it tried it completely remove she vamilla one.

vital tulip
#

How do i remove title background

mental crystal
drifting cosmos
#

How can I make a knapping system for my Minecraft add-on if u have a specific amount of stuff but then u get pebbles of that stuff like rocks or flint and can stone/flint knapp in Minecraft and to do that u right-click the stones/flints to enter the 5x5 block UI then when u do a specific coordination of getting rid of rock/flint selection faces?

hexed briar
#

It looks like 1.21.70 has pretty much hardened the #form_button_length bindings, which is probably the cause of making grid filling not working.

#

I've tried reading them through many methods and they all returns to 0.

#

even though they actually used to output number currently but it's now doesn't.

#

even with factory and stuff set in place, #form_button_length still returns to 0.

mental crystal
#

i actually discovered that too,I ignored it since I thought it's me problem lol

hexed briar
#

the only thing that accepts is #collection_length which, my suspect is, they just hardened it.

#

not sure why did they do that

#

so grid isn't actually broken (Still broken), it's just #form_button_length only output or proper return to #collection_length. still need to figure out more in the meantime.

oak verge
tender flare
#

has anyone ever made some sort of a display in an inventory ui? i want to change a text without reloading the whole inventory

thorn path
#

How do I delete the button background?

vale turtle
#

you can use "$border_visible": false,
for that i believe

vital tulip
#

I have a question

Can i change how a form looks like set it so the buttons are side by side instead of 1 single lined lis

red creek
#

How to remove the scroll indicator?

weak cape
#

i have it bookmarked

weak cape
#

not sure

#

i only use the common wrapper

weak cape
#

i only use the wrapper mojang uses for server form

chilly yacht
#

like the textures alpha set to 0

red creek
chilly yacht
#

bruh

#

well

#

you can use

#
"$scroll_box_mouse_image_control": "global.scrollbar",
      "$scroll_box_touch_image_control": "global.scrollbar",
      "$scroll_background_image_control": "global.scrollbar_background",
      "$scroll_track_image_control": "global.scrollbar_background"``` in your scroll bar
#

you pass through an image

#

the first 2 are the scroll bar and the 3rd/4th are the background

placid geode
red creek
indigo epoch
#

how to make if the value is true, then one value is returned, and if false, then another. as an operator in js ? :

#

or how to convert true/false to numbers?

lilac reef
#

Is it possible to make a texture pack that changes the UI, but doesn't use the oreui stuff?

#

I know it's probably a dumb question, but it seems as though a lot of people are still trying to do a bunch of UI stuff, here, so wanted to ask

tropic badger
weak cape
#

hi

#

is it possible to close a screen right after it becomse visible?

#

but let the exit/entrance animation play?

chilly yacht
#

jokes hahaha

#

but dont think so

#

you're forcing a player action without them pressing anything

weak cape
#

hmm

lilac reef
mental crystal
#

Guys, how do I make that it accept different type of 6 characters in the start.

#

(#chat_visible and (not (('%.6s' * #text) = 'coddy.')))

#

like it can be coddy. or bruh.

hardy lily
#

anyone know how to prevent nan being detected in server form bindings?

#

because when the #title_text displaying a name NandoKunzz, it will count as not a number

#

the first name is Nan. which is the cause of the problem

normal moat
normal moat
#

you could remove unnecessary brackets that I put.

hardy lily
#

Oh, never think of it

#

Thanks

hardy lily
hexed briar
#

It should not if the main string doesn't include §z

indigo epoch
#

I want to make sure that when true, the alpha value is 0.65, otherwise 0. how do I do this?

normal moat
#

idk if 0.65 float will work, you can do 65/100 otherwise

normal moat
#

check brackets, they maybe wrong

normal moat
normal moat
indigo epoch
normal moat
#

try something like
(#boolean * 1) just to be sure this works. if true, alpha should be 1, otherwise alpha should be 0

indigo epoch
#

i need alpha 0.65

normal moat
#

just to be sure this works

indigo epoch
#

#boolean * 1 returns 1

normal moat
#

if boolean is true, right?

indigo epoch
#

(#boolean * 1) * 0.65 returns 0

indigo epoch
normal moat
#

wait let me try

normal moat
# indigo epoch yes

this works

{
            "image": {
                "type": "image",
                "texture": "textures/items/apple",
                "size": [16, 16],
                "$value": 0.65,
                "property_bag": {
                    "#boolean": true
                },
                "bindings": [
                    {
                        "binding_type": "view",
                        "source_property_name": "((#boolean * 1) * $value)",
                        "target_property_name": "#alpha"
                    }
                ]
            }
        }
hexed briar
normal moat
#

yeah

hexed briar
#

And also decimal on bindings operator is wacky as hell. so some space might be needed otherwise it'll just be true or false.

#

I had enough with decimal to the point i just gonna ignore that and multiple it by 100

#

then cut it in half so it gives a decimal.

#

Decimal is also bad for json-ui performance apparently not sure why but yeah just dont do it too much.

normal moat
#

yeah I just try make my values such that they just fully divide and not go into decimals lmao

tropic badger
#

Weird bug on UI, length of the button exceeds than what is defined on the scripts? WTF?

normal moat
sinful crypt
#

is it possible to get minecraft version

normal moat
sinful crypt
#

how would i

#

bcoz script api can't detect minecraft version

normal moat
#

can't

sinful crypt
#

oh no

sudden bear
#

how do I make a json ui?

warped oxide
sudden bear
#

soso

placid geode
odd wharf
#

is there a way I could create a visual overlay when in first person when wearing a custom helmet?

#

like the carved pumpkin

mental crystal
odd wharf
#

i have yet to work with json ui much

hollow needle
odd wharf
#

thats the realization i came to

#

moving to #1067869318383157430 . thanks!

gaunt apex
#

how to make the layer high then the button?

tropic badger
gaunt apex
#

ok

gaunt apex
turbid nimbus
# gaunt apex

Most likely it can be impossible since new mobile controls using Ore-UI.

sinful crypt
#

I have this backpack ui, it has 60 inv slots... i want to make it have 9 slots, how would I

valid swan
#

How do I create a button on the server form that doesn't leave the menu, like a button that makes a sound?

outer stag
#

Hello fine UI developers of the Bedrock Addons discord server!

#

I come with a query; does anyone have any tips on how to increase performance when handling conditional server form variants?

#

Basically, given that I have a bunch of modified server forms that display conditionally, what is the best way to handle conditional rendering for them?

#

Currently, the speed of rendering one form layout is the same as rendering all of them at the same time, which makes me think I'm doing something wrong.

limpid quarry
#

am i able to expand the textField and allow a larger input multi-line?

#

for modalformdata?

#

would really love someone to give me a straight answer lol

outer stag
#

I think so, I've seen people do it.

limpid quarry
outer stag
#

Fr

limpid quarry
#

but is the limit still an issue?

#

the max characters/

#

maybe not

outer stag
#

Not sure. I've never done it before myself.

limpid quarry
#

yeah

outer stag
#

Though I'm going to need it for something I'm doing soon, so I might run into a similar issue 😬

limpid quarry
#

otherwise i have to do the multiple textFields for each line of sidebar stuff im doing haha

#

i can't wait for the newer ui coming

#

more support in preview i think?

#

2.0

outer stag
limpid quarry
#

is it really much added?

outer stag
#

Apparently they've already been features for years, too.

#

At least the labels

#

They just aren't in script API 😐

limpid quarry
#

wait a second..... lmao

#

awhhh

#

i see

outer stag
#

You can see the definitions inside of the vanilla UI server form file.

#

So, I don't know 🤷

placid geode
mental crystal
#

for multi-line you can make a new panel or read command block one

jovial hemlock
safe wasp
#

is it possible to remove the three ... on a label element?

tropic badger
#

No

hexed briar
sinful crypt
#

i have'nt still got a reply

hexed briar
#

i don't have a time for that.

sinful crypt
#

l

final matrix
#

"grid_dimensions": [ 9, 1 ],
@sinful crypt

#

I am not sure but that's how the slots fit it

sinful crypt
final matrix
#

I am trying to make my serverform buttons like this

#

can anyone help

#

i am having offset issue like my buttons overlap

valid swan
#

Tenho um problema. Existe uma maneira de fazer o botão aparecer no text_edit_box mesmo que eu não tenha clicado no text_edit_box?

normal moat
valid swan
valid swan
normal moat
#

make sure your #default_search is "" not "U"

valid swan
normal moat
#

hmm

plain abyss
#

How to move action bar place?

#

Like if it’s at top of hotbar normally it would be near the chat button

valid swan
# normal moat hmm

I think the error is when starting search_portifolio, because to start it wouldn't it be necessary to stay in the hover state?

final matrix
#

how to remove text from button only the image should cover the button ¿

normal moat
valid swan
normal moat
#

yeah, i guess

placid geode
#
"bindings": [
            {
                "binding_collection_name": "form_buttons",
                "binding_name": "#form_button_text",
                "binding_type": "collection"
            },
            {
                "binding_type": "view",
                "source_control_name": "search_portfolio",
                "source_property_name": "#item_name",
                "target_property_name": "#search"
            },
            {
                "binding_type": "view",
                "source_property_name": "(not ((#form_button_text - #search) = #form_button_text))",
                "target_property_name": "#result"
            },
            {
                "binding_type": "view",
                "source_property_name": "(#result or (#search = ''))",
                "target_property_name": "#visible"
            }
        ]
valid swan
weak cape
#

the channel you chose

#

#1067535382285135923

frozen sorrel
weak cape
#

yeah and it is script api related

#

this is a json ui forum

frozen sorrel
weak cape
weak cape
#

someone in script api could hepl

frozen sorrel
#

thanks lol

pale wave
#

if I make the server form look different under certain conditions will that cause incompatibilities with addons that also do something similar?

tropic badger
#

Yes unless you #1067870274894172260 message

pale wave
#

awesome, what about boss bars?

west dawn
#
{
    "namespace": "server_form",

    "main_screen_content": {
        "modifications": [
            {
                "array_name": "controls",
                "operation": "insert_back",
                "value": [
                    {
                        "server_form_factory": {
                            "type": "factory",
                            "control_ids": {
                                "long_form": "@ae2_common_form.long_form_root",
                                "custom_form": "@ae2_common_form.custom_form_root"
                            }
                        }
                    }
                ]
            }
        ]
    },

    "long_form@common_dialogs.main_panel_no_buttons": {
        "modifications": [
            {
                "array_name": "bindings",
                "operation": "insert_back",
                "value": [
                    {
                        "binding_name": "#title_text"
                    },
                    {
                        "binding_type": "view",
                        "source_property_name": "((#title_text - 'test') = #title_text)",
                        "target_property_name": "#visible"
                    }
                ]
            }
        ]
    },
    "custom_form@common_dialogs.main_panel_no_buttons": {
        "modifications": [
            {
                "array_name": "bindings",
                "operation": "insert_back",
                "value": [
                    {
                        "binding_name": "#title_text"
                    },
                    {
                        "binding_type": "view",
                        "source_property_name": "((#title_text - 'goofya') = #title_text)",
                        "target_property_name": "#visible"
                    }
                ]
            }
        ]
    }
} ```
tropic badger
west dawn
#

It does that indeed, however json ui treats elements with certain names differently

#

Just like in this case

outer stag
#

Is it possible to create and pass an array type binding?

#

Actually, that might be a stupid question

#

I guess each parameter of the array would just be its own string statement

#

Nevermind! I've been on this for 15 minutes, but spelling it out helped.

#

Nevermind, I'm still confused, sorry.

#

Is it possible to use bindings to create an array, like so?

["#x", "#y", "#z"],
tropic badger
#

No

outer stag
#

I'm beginning to realize how limited JSONUI is

#

Thank you for your help, though.

mental crystal
#

And somewhat powerful ngl

west dawn
#

no

#

straightup

#

no

mental crystal
tropic badger
#

it encourages people to think more logically, to find a workaround

final matrix
#

can anyone help fix my ui it has a offset on main panel I wanna center it but it doesn't centers background

outer stag
#

Like for #block_position or #color

bitter ether
#

Is there any way to get the Bindings Lore component of the item in Inventory?

normal moat
#

#1067870274894172260 message

odd wharf
#

is there a way to make it so that the hud isn't hidden when a server form is opened?

valid ridge
#

How do i make bindings of a parent to also affect the children

valid swan
#

    "sound@common_buttons.light_text_button": {
        "$pressed_button_name": "",
        "size":[24,24],
        "offset":"$button_offset",
        "$button_offset|default":[0,0],
        "$border_visible": false,
        "$default_button_texture":"textures/ui/sound_glyph_2x",
        "$hover_button_texture":"textures/ui/sound_glyph_2x",
        "$pressed_button_texture":"textures/ui/sound_glyph_2x",
        "sound_name": "#form_button_text",
        "bindings": [
            {
                "binding_name": "#form_button_text",
                "binding_type": "collection",
                "binding_collection_name": "form_buttons"
            }
        ]
    }

Is there any way to set the sound? Because you can't set it using form_button_text directly

opal aurora
valid swan
ashen crag
#

ok fast question
i keep on seeing about 'preserving title text'

so let me get this straight
custom health bar uses title command
but does that mean i lose the ability to have titles..?

tropic badger
#

yes indeed

ashen crag
#

DAMN

#

making a health bar is truly a pain in the ass

#

i've tried using the scoreboard sidebar but to little avail as i have no idea how to pull values into said sidebar

opal aurora
valid swan
#

Hum

opal aurora
#

then, just don't make it

valid swan
pine furnace
#

One message removed from a suspended account.

#

One message removed from a suspended account.

opal aurora
#

use entities/particles instead

cosmic oxide
#

can anyone tell me in which ui file i can find the section to control where the coordinates are placed on the screen

#

and what the section is called
please and thank you

pseudo garden
#

someone remake the old play screen ui please 😭

sick shell
pseudo garden
hexed briar
formal fjord
#

@cunning dirge

odd wharf
#

is it possible to bind the visibility of a ui element to scoreboard data?

normal moat
#

see scoreboards.json

#

there are bindings for player scoreboard sidebar

clear lantern
#

Is it possible to change limit of NPC name, by modifying UI?

#

I would like to make entity without texture, but with name visible - and it should contain like 50+ letters

normal moat
clear lantern
#

Thanks!

vital tulip
#

How many times can i split a title

last pollen
#

how do I add this button (json ui)

gaunt apex
#

flag buttons

nova bay
#

Someone is up for a commission?

past stirrup
past stirrup
outer stag
#

Are there any tools or anything for creating flipbook animations or whatever for UIs?

#

I thought there was something, but I can't remember or find anything

outer stag
#

I figured out how to use Libsprite, but for some reason my game crashes when I load the animation.

#

EDIT: I shrank the image, and for some reason that made it stop crashing, but the animation just doesn't play.

outer stag
#

Pretty simple setup, but still nothing showing up in-game. What am I doing wrong?

  {
    "animation": {
      "type": "image",
      "texture": "textures/form/load_animation",
      "size": [128, 96],
      "uv_size": [128, 96],
      "uv": "@loading_screen.image_uv_animation"
    }
  }

  "image_uv_animation": {
    "anim_type": "aseprite_flip_book",
    "initial_uv": [0, 0]
  }
outer stag
#

I'm still on this same issue for hours 💀

#

Do asperite animations just have some limitation that I'm not aware of, like size-wise or something?

#

Oml I finally figured it out 😐

#

In case anyone else has this issue in the future, Libresprite exported the sprite sheet horizontally for me by default.

#

Apparently, the sprite sheet has to be aligned vertically

#

That fixed it immediately

oak verge
#

how do i find what is the size of the inventory panel?

normal moat
#

you can check in invetory_screen.json if there is any size specified

#

maybe this but idk

normal moat
#

its 50%

#

of total height

normal moat
oak verge
#

isn't there a panel on top? the one hosting the name and close button

#

i am looking for the size of the place where the small chest screen grid is

normal moat
oak verge
#

it doesn't effect the grid?

normal moat
#

No why would it? its not the part of that grid

normal moat
oak verge
#

i meant the grid position

normal moat
#

you mean the top half and bottom half?

#

or the inventory slot grid?

oak verge
#

give me a sec

#

the red part doesn't effect the yellow part positioning?

#

i am looking into making this one to one to the in game result

normal moat
oak verge
#

ah, yeah
thanks

jovial summit
oak verge
#

WIP

jovial summit
#

Epic. Is there a preview version?

oak verge
#

nope

jovial summit
#

😢

pulsar hornet
#
"[email protected]_button_template": {
    "$pressed_button_name": "button.menu_advancedf3",
    "$button_text": "pauseScreen.advf3",
    "anchor_to": "top_middle",
    "anchor_from": "top_middle",
    "$focus_override_down": "achievements_button_focus",
    "$visible": "#paper_doll_visible",
    "$bindings|default": [
      {
        "binding_name": "#paper_doll_visible",
        "binding_name_override": "#hidden"
      }
    ],
    "variables": [
      {
        "requires": "$visible = false",
        "$bindings": [
          {
            "binding_name": "#paper_doll_visible",
            "binding_name_override": "#visible"
          }
        ]
      }
    ],
    "bindings": "$bindings"

do you guys know why $visible = false isnt working

placid geode
#

you cant set the value of a variable using bindings

pulsar hornet
#

do you know how to fix it

#

?

placid geode
#

you cant use bindings across screens

pulsar hornet
#

so how does ty-el do it?

#

i ve seen the ui have a fov changer that you can change while playing

placid geode
#

hmmm how i explain It

#

its like

#

i know how It works but idk how to explain It lol

#

basically you still are in settings screen

#

but not at the same time

#

i think its something related to "render_game_behind"

pulsar hornet
#

so it keeps loaded all the screens?

placid geode
#

just settings screen i think

pulsar hornet
#

so if i keep settings screen loaded i can change it in the pause menu??

placid geode
#

nope

#

still its bindings across screens

#

you can change pov ingame cuz that slider Is in settings screen, not hud screen

pulsar hornet
#

so i have to make the settings screen be on top of the pause menu as just a toggle?

#

damn that's too hard for me

placid geode
#

lol

pulsar hornet
#

i was doing an f3 debug screen, on mouse and keyboard works fine since you can use F8 to hide paperdoll

#

actually i got an idea: i can do a separate variable and edit the variable instead of the paperdoll

#

but f8 wont work

placid geode
#

you can use button.scoreboard

#

It uses tab key

pulsar hornet
#

what's that? im new to json ui

placid geode
#

you can add a invisible toggle in the hud screen with button.scoreboard as button mapping

#

then bind your debug screen to that toggle

analog snow
#

can i make the number of my hotbar slots be any number i want? i have tried multiple ways, nothing seems to work

nova bay
#

Hi

rocky quail
red creek
mental crystal
red creek
oak verge
#

Paid web app, 0.1$ per click
-# jk

quiet breach
weak cape
mental crystal
#

Bro Minato, stop posting this anymore cause people will literally not stop asking where's the link lmfao

placid geode
#

-# lol

quiet breach
sick shell
mental crystal
#

and I know you know that.

oak verge
oak verge
weak cape
oak verge
wraith bluff
# oak verge

looking good mate, well done

change the font though...

oak verge
#

thanks, will do

oak verge
#

btw, what is the texture background for that panel?
i am using dialog_background_opaque.png but it is not the same

final matrix
#

I have 4 forms how do I set up them in server_form
main content

normal moat
oak verge
#

weird, it look different
i will try to edit the nine slice and see

oak verge
#

yeah, i got it

normal moat
oak verge
#

it is not that simple
i need to find where i lost those extra pixels, probably the font

normal moat
#

yeah probably the font, also the slots look a bit shifted

tropic badger
#

I think instead of living off vanilla, u should improve it, use stack panels for precision

oak verge
#

a bit too deep into this to change something,
passed 4000 line of code

oak shoal
#

Does anyone here have a code to preserve text, but I say more than 1, for example update1, update2
each one will display message in different places

normal moat
oak shoal
placid geode
#

just change all the data_control to data_control_1, data_control_2

#

these must have different names

last pollen
#

is there a "air" or "none" texture?

placid geode
#

you can use "texture": ""

last pollen
#

ty

weak cape
#

but that is just overthinking

red creek
tawny gale
#

Folks, is it possible to set a buttons position using absolute X,Y coordinates passed in from a #body_text value??

oak verge
tawny gale
novel spruce
#

im trying to make json gui and i cant even get the first 2:30 second right my output looks completely diffrent from his ( this one is mine )

#

In this series, I demonstrate how to use JSON UI in combination with the scripting api in the Minecraft Bedrock Edition.

🔗Links :
Like What I Am Doing? Concider Supporting Me! : https://ko-fi.com/dingsel
Last Video : https://youtu.be/QhJkCDIZ-NU
Join my Discord! : https://discord.gg/tzrmH56JXC
My Website and Code : http://skyls.de
Music : http...

▶ Play video
#

his output at 2:30

#

i changed size back because it looks worse

placid geode
formal barn
#

Would anyone know how to make a bossbar invisible while still keeping the text?

placid geode
#

oh yeah, its #title_text, not #title_test

novel spruce
#

ty

#

That one worked ty , keeped going and it dosent do anything now ( i definitely did some wrong but i cant see it 😭 )

west dawn
novel spruce
#

OMG TY

#

🫂

placid geode
#
{
  // pause_screen.json
  "namespace": "pause",
  "info_panel": {
    "ignored": true
  }
}
nova bay
#

Can i ask you why u dont want to show any of the player on the world?

#

And btw uts kinda impossible bc u can use /tell