#JSON-UI General

1 messages · Page 23 of 1

opal aurora
#

@[ping myself™️]

distant gorge
#

what. is it not a random person if you dont know them

nova bay
#

How can i make something like this?

#

Im talking about the cord

left yew
#

We got I don't know and I'm not learning

#

🙏🙏🙏

nova bay
#

I know i know

main plaza
#

Can something be done to prevent the item from rendering?

#

In the paper doll

analog snow
#

not sure if it would work but it could

main plaza
analog snow
#

its possible

#

you dont play it in the paperdoll you just play it in the player

#

but you show it only in the paperdoll

main plaza
#

Ohh okay, I understand.

ionic vapor
#

im trying to put the actionbar into the server_form ui file, I can't get $actionbar_text to be valid, what do i do? is this even possible?

weak lintel
#

I HATE JSON UI I HATE JSON UI I HATE JSON UI

weak lintel
#

now i broke the UI completely

#

idk how i did that but ill take that as a progress

weak lintel
#

nope back to the starting point

#

json ui is basically the embodiment of sisyphus

chilly yacht
#

json ui is fun

weak lintel
#

this sentence is coming from json ui main

#

(he is not sane)

patent bramble
weak lintel
#

nah im done with this shit, cant do this anymore 💀

#

just gonna dive deep into forums

weak lintel
#

how on earth do i pass data from preserved title to image's clip ratio

#

its killing me

weak lintel
#

why does the bare template of preserve title not work either 💀

#

HOLY SHIT IT WORKS WITH ACTIONBAR

#

and my game crashed

rocky quail
weak lintel
#

how does the layer for child element work?

#

ik its relative to parent element but what do i do if i want the child element to appear behind the parent element?

opal aurora
#

example: "layer": -2

weak lintel
#

twas simple

#

ty

#

making UI is an absolute torture especially since we dont get to see the UI in real time

chilly yacht
#

not if you're experienced

#

Then you'll know it's good

weak lintel
#

yeah cuz yall got json ui editor embedded in a part of your brain

chilly yacht
#

Yup

weak lintel
opal aurora
#

but adapting to reactjs is not easy

weak lintel
#

can tell

sage vessel
#

Is there any way to remove the invisible button?

weak lintel
#

HOLY SHIT

#

ITS WORKING

#

SUCK IT, JSON UI

#

FINALLYYYYY

opal aurora
#

because you can't remove empty spaces on grid

sage vessel
#

Ohh

weak lintel
sage vessel
# opal aurora did you add any kind of `#visible` to grid template?

Just this

"button": {
        "type": "panel",
        "size": [
            66,
            56
        ],
        "controls": [
            {
                "button1@gb_form8.working": {
                    "bindings": [
                        {
                            "binding_name": "#form_button_text",
                            "binding_name_override": "#form_button_text",
                            "binding_type": "collection",
                            "binding_collection_name": "form_buttons"
                        },
                        {
                            "binding_type": "view",
                            "source_property_name": "((#form_button_text - '§b§1§r§f') = #form_button_text))",
                            "target_property_name": "#visible"
                        }
                    ]
                }
            }
        ]
    },
opal aurora
#

but surely not

sage vessel
#

Ohh

patent bramble
#

I’ve got a very rough visual ref for how i want it to look but nothing final yet
(I drew it)

fallow berry
#

Are there default files I can edit to display as texture for ModalFormData? I’ve tried editing hollow_3.png and it displayed to other parts of the game as well when I am just aiming for forms

distant gorge
full glen
#

Hi! Is it possible to make an image fill the entire screen? I guess it's something related to the size property, but I can't get it to work

#

I don't think it's that complex to create a post

opal aurora
#

if yes, in your image control, simply add "fill": true

full glen
nimble mortar
#

i think also it could be

"size": ["100%", "100%"]
#

but idk

full glen
nimble mortar
#

maybe it's cause the type of panel

#

idk

tender flare
chilly yacht
#

it'll only fill to what size the image is

nimble mortar
#

ah

#

that makes sense

ancient vine
#

how would i go abt getting started

#

i dont really understand where to start and anything i read just isnt helpful to me

left yew
ancient vine
#

i js dont understand how it works

past stirrup
#

The Bedrock wiki is a good starting point

weak lintel
#

wiki info doesnt do much on its own

west dawn
#

Yeh the start is rough. luckily I had pablo where I was able to get my most knowledge of. Looking at others code and understanding it really helps. I find vanilla files a little to bloated as they extract everything into its own element and have stuff for tts and such

#

If you just want the bare minimum tho, I have some samples for a series I am making for custom form creation.
You can view my code here https://www.skyls.de/samples

west dawn
#

Idk if other json ui devs would be down, but we could make a website with community samples just like on my website

weak lintel
#

knowing the nature of JSON UI, im honestly not sure if people would eagerly join 😔

#

but damn it would be revolutionary

west dawn
#

true tho, I know that some people have this elitism

left yew
west dawn
#

the wiki does a decent job of explaining but not enough of a job to encourage the user to build anything. You need up knowing all those words and yet you have 0 experience

#

I like the adding hud element one tho

#

more of this is needed

weak lintel
#

especially preserve title one, it took 2 days for me to figure out how it works

#

(skill issue on my side but still)

weak lintel
#

just a question but do you need to use different name for preserved text binding if there are elements more than one that needs preserved text

full glen
#

How can I filter buttons on parent elements? Based on #form_button_text bao_comm_squaredeyebrows

"bindings": [
    {
        "binding_name": "#form_button_text",
        "binding_type": "collection",
        "binding_collection_name": "form_buttons"
    }
]
#

I tried checking if the button name starts with the key n@ in another binding but it doesn't seem to work.

undone marsh
full glen
#

I'm thinking of making one similar to the Java UI

#

But I need to solve the problem of the buttons xd

left yew
weak lintel
#

for preserved texts, would it work if i define data control element outside and reference it in an element's controls?

hexed briar
#

No.

chilly yacht
#

wrote in discord

#

but should be right

weak lintel
full glen
chilly yacht
#

where have you put it?

chilly yacht
# hexed briar No.

Sorry for the ping, but do you know if its possible to flag if a button's collection index is divisible by 2 or 3?

#

Like would "(((#collection_index * 1) / 2) = 0)" work?

#

oh wait

#

idek

hexed briar
#

@/that_andro would be the right person for that type of question.

full glen
chilly yacht
hexed briar
#

too much side-projects and I'm certainly busy 24/7.

#

i could if i have free time (probably only around saturday-sunday).

#

but still pretty much depends on what side-projects i'd be doing.

#

it wouldn't. depends on the context though.

full glen
hexed briar
#

if it was something about making extreme complex of smashing maths and operators in some strings i'd rather bail out.

#

i do not like math/operators in json-ui as they are simply just "hacky" things to do.

chilly yacht
#

itll either return 0 or 1

#

1 if remainder

#

2 if no remainder

hexed briar
#

stuff like these should be easily debugged by having a dummy text that displays your conditions/output.

chilly yacht
full glen
left yew
hexed briar
chilly yacht
chilly yacht
#

flags cant start with numbers

#

Well if u have flags, the buttons cant start with numbers

#

so change it to like §1@

hexed briar
#

or a strange string that only their purpose is "splitting texts" into 10 different positions maybe

#

this is why i don't chat here.

chilly yacht
#

Yeah, the only reason i needed that equation was to fake a grid

#

Since when flagging items in grids it doesn't remove the blank spacing

left yew
#

I've dealt with that

#

So I just don't use grids 💀

hexed briar
chilly yacht
#

Yes ik

#

But I can automatically place certain buttons into seperate stack panels

left yew
#

I mean

#

You have screens like the ugc viewer with a search and grid

#

But iirc the properties of it won't work if applied to form buttons and that cuz of how they performed it

full glen
hexed briar
#

if you could ignore/destroy the element inside the grid, probably might work.

though as we do know it, #visible is not one of them.

opal aurora
hexed briar
#

it's literally just hides the panel like visible property, so kinda expected why it doesn't really clean or leave the empty space.

#

the existence is still there. not entirely gone.

opal aurora
#

but what you get may be tons of factories

hexed briar
#

it's just "if and else" spam at this point

opal aurora
left yew
#

iirc i did that

opal aurora
#

visibility hidden won't help, the only way to fix it is from servers

left yew
#

i forget which way it was, but i had the grid then factory and iirc it just spammed the same stuff everywhere

#

it was a rough rough concept at the time but i aint personally gonna deal with allat

hexed briar
#

this is why i don't do operators stuff in json-ui

opal aurora
hexed briar
#

Also iirc, #ignored basically kills the whole bindings if that bind returns to true.

#

might be useful if you're making alot of conditions if you don't want to sacrifice the game performance.

full glen
#

@chilly yacht Oh my god hahaha, tysm

chilly yacht
#

😆

ember oyster
weak lintel
#

the one that comes later doesnt update

#

but if i put separate elements in root panel instead of combining them into one, itll work

#

oh wait

#

i forgot to rename the data control elements 💀

weak lintel
sage vessel
#

Is there any way to hide this 007 number?

tropic badger
#

howd u got that???

#

?

fallow berry
#

hi are there default image files i can edit in making a custom slider/toggle/submit button for modalform?

opal aurora
weak lintel
#

is there any element related with crosshair? or is it hardcoded

hexed briar
#

crosshair is kinda hardcoded.

#

though you can create your own one

weak lintel
#

i can at least check if its hidden, right? (as in json ui)

opal aurora
#

to customize that crosshair, modify the textures/ui/cross_hair.png file

weak lintel
#

nah i just wanted to make an element to be different depending on the visibility

opal aurora
weak lintel
#

bummer

#

thanks for telling

left yew
weak lintel
left yew
weak lintel
#

that post was made by dr pepper gang

weak lintel
#

i can just make it to check for touch control

opal aurora
#

you mean, "visible" when using split controls?

weak lintel
#

i meant #using_touch binding

weak lintel
weak lintel
#

rip

vagrant nova
#

what is this error

hardy geyser
#

texture error🤓

tender flare
#

is there any way to get the item name in the container_item object?

#

i want to do a search bar for inventory items (if you have something like this I would really appreciate it)

simple crystal
#

what is this extra button???

weak lintel
#

but uh

#

where did it go 💀

simple crystal
#

idk

#

i just launched latest ver

#

when i press the button it doesnt even work

undone marsh
west dawn
#

yeh everything is just broken rn

#

this is from earlier today

chilly yacht
#

realms are down rn i think

west dawn
#

yup

ember oyster
#

Does anyone know how to disable the 2x2 crafting grid or displat a picture that force player to change to classic setting?

last pollen
#

Could someone explain to me what does tts mean in buttons

last pollen
#

Thank you

narrow fox
#

How can I separate name from textField and add scroll to it?

chilly yacht
#

why

midnight sentinel
#

Can someone please say how to use aux id for server form icons? I've searched across this ds server and wiki and couldn't find anything

opal aurora
chilly yacht
narrow fox
chilly yacht
#

perchance

#

just put the custom text into a scrolling panel

chilly yacht
#

edit the default textfield

#

theres something called custom_text i think

#

its the label

#

my b

narrow fox
#

Hmm

chilly yacht
#

find custom_label and edit that

narrow fox
#

Bro, I am not an expert in JSON UI. Can you create it for me?

weak lintel
#

trial and error is the best here

narrow fox
chilly yacht
#

yeah

#

just make a new one

#

and put the label inside of a scrolling panel

#

then reference the scrolling one

opal aurora
chilly yacht
#

minecraft big bad at updates

#

they edit stuff for no reason

#

like unnecessary changes

midnight sentinel
#

Is there any example of server form with aux ids used for icons?

oak verge
midnight sentinel
#

no icon

#
"dynamic_button": {
    "controls": [
      {
        "panel_name": {
          "type": "panel",
          "size": [34, "100%c"],

          "controls": [
            {
              "image": {
                "type": "panel",
                "layer": 2,
                "size": ["100%c", "100%c"],
                "offset": [-2, 0],
                "controls": [
                  {
                    "[email protected]_renderer": {
                      "size": [32, 32],
                      "bindings": [
                        {
                          "binding_name": "#form_button_texture",
                          "binding_name_override": "#texture",
                          "binding_type": "collection",
                          "binding_collection_name": "form_buttons"
                        },
                        {
                          "binding_type": "view",
                          "source_property_name": "((#texture - '§aaux_item§a') * 1)",
                          "target_property_name": "#item_id_aux"
                        }
                      ]
                    }
                 }
               }
            ]
         }
      }
    ]
  }
}
#

just for sake of test i've used this simplified approach

#

i've also set text of button to #form_button_texture to be sure that its setting correctly

#

i've searched across all this discord server but haven't found any solution

chilly yacht
#

@midnight sentinel #form_button_texture isnt the button text

#

its the 2nd argument

#

form.button(TEXT, TEXTURE)

#

you put it in the texture

midnight sentinel
#

i guess im just not using this formula

chilly yacht
#

hm, idk

midnight sentinel
#

i just forgot formula

#

thx for help anyway

chilly yacht
#

bruh 😭

chilly yacht
midnight sentinel
chilly yacht
midnight sentinel
#

FINALLY

chilly yacht
#

👌

oak verge
# chilly yacht yeah

i have no idea how but i suppurated them somehow
how to make it contained and scrollable?

chilly yacht
#

Like I said

#

Put the label in a scrolling panel

oak verge
narrow fox
oak verge
#

alr

oak verge
nova bay
warm escarp
#

#1273341865705607315

trim gull
#

When do y'all think OreUI will be available to addons?

#

Since it's like pretty much done and they're just porting it across the game right now

tender flare
final matrix
#

how to change size of exp bar is it possible via ninslice

jovial hemlock
#

i dont think its going to come out for us addon devs

trim gull
vagrant nova
#

can some one help me fix this texture missing bug

jovial hemlock
#

Look what it says in the Q&A

#

Probably it will for education edition or something else

raw barn
raw barn
jovial hemlock
#

Still I don't think so

raw barn
#

Kayla has stated they plan to release oreui for creators but it isnt ready yet #old-update-discussion message

#

Creators means add-on developers...

tropic tangle
#

As long as they keep support for JSON everything will be fine fr

raw barn
tropic tangle
#

ahhh idk

#

but still used

#

because ore ui will never give the same possibilities as json does

#

would be a damn lag fest

raw barn
tropic tangle
#

oh i didn't know that

#

then its just stupid

jovial hemlock
raw barn
jovial hemlock
#

for this reason it wont

tropic tangle
#

@jovial hemlock as mojang would care about its users

raw barn
tropic tangle
#

Then why not just keep JSON in

raw barn
#

Also JSON UI technically isnt officially supported

jovial hemlock
raw barn
jovial hemlock
tropic tangle
#

backwards compatibility basically

jovial hemlock
#

for example they are not allowed to upload experimental stuff

raw barn
#

Oh you meant marketplace addons

jovial hemlock
jovial hemlock
#

and they cant lock the version of the workd

#

world

raw barn
jovial hemlock
#

because are addons

jovial hemlock
#

and mojang is not taking that risk

final matrix
#

how to render the paper doll only upto the chest

jovial hemlock
final matrix
#

how actually

#
"player_head": {
       "type": "panel",
       "anchor_from": "top_left",
       "anchor_to": "top_left",
        "clips_children": true,
        "size": [
            28,
            38
        ],
        "layer": 2,
        "offset": [
            -4,
            -17
        ],
        "controls": [
            {
                "player_head_renderer": {
                    "type": "custom",
                    "renderer": "paper_doll_renderer",
                    "size": [
                        35,
                        85
                    ],
                    "offset": [
                        0,
                        20
                    ]
                }
            }
        ]
    },
#

look what should be changed

#

@jovial hemlock

final matrix
#

to

jovial hemlock
#

oh wait

#

and is not working?

final matrix
#

?

#

need rootpanel to make it work

#

right

#

soory I think you are busy in vscode

jovial hemlock
raw barn
#

#1019692489596215388 message The fact they don't officially support json ui edits?

#

Anyways, I digress, we can agree to disagree. But my initial point was that OreUI will be supported for creators

opal aurora
last pollen
#

Can anyone send me a example toggle that opens up a new full screen panel

final matrix
#

close button or xbutton

#

@last pollen

vagrant nova
opal aurora
vagrant nova
# opal aurora ui_common.json
"container_item": {
      "type": "input_panel",
      "size": [ 18, 18 ],
      "layer": 1,
      "$cell_image_size|default": [ 18, 18 ],
      "$cell_overlay_ref|default": "common.cell_overlay",
      "$button_ref|default": "common.container_slot_button_prototype",
      "$stack_count_required|default": true,
      "$durability_bar_required|default": true,
      "$item_renderer|default": "common.item_renderer",
      "$item_renderer_panel_size|default": [ 18, 18 ],
      "$item_renderer_size|default": [ 16, 16 ],
      "$item_renderer_offset|default": [ 0, 0 ],
      "$background_images|default": "common.cell_image",
      "$background_image_control_name|default": "bg",
  
      "$focus_id|default": "",
      "$focus_override_down|default": "",
      "$focus_override_up|default": "",
      "$focus_override_left|default": "",
      "$focus_override_right|default": "",
      "focus_identifier": "$focus_id",
      "focus_change_down": "$focus_override_down",
      "focus_change_up": "$focus_override_up",
      "focus_change_left": "$focus_override_left",
      "focus_change_right": "$focus_override_right",
      "focus_enabled": true,
      "focus_wrap_enabled": false,
      "focus_magnet_enabled": true,
  
      "controls": [
        {
          "item_cell": {
            "type": "panel",
            "size": "$cell_image_size",
            "layer": 0,
            "controls": [
              {
                "$background_image_control_name@$background_images": {
                  "layer": 1
                }
              },
              {
                "item": {
                  "type": "panel",
                  "size": "$item_renderer_panel_size",
                  "layer": 0,
                  "controls": [
                    {
                      "[email protected]_count_label": {
                        "layer": 9
                      }
                    },
                    {
                      "$item_renderer@$item_renderer": {
                        "size": "$item_renderer_size",
                        "offset": "$item_renderer_offset",
                        "anchor_to": "center",
                        "anchor_from": "center",
                        "layer": 7
                      }
                    }
                  ]
                }
              },
              {
                "[email protected]_bar": {
                  "layer": 8
                }
              }
            ]
          }
        },
        {
          "item_cell_overlay_ref@$cell_overlay_ref": {
            "layer": 3
          }
        },
        {
          "[email protected]_selected": {
            "layer": 4
          }
        },
        {
          "item_button_ref@$button_ref": {
            "tts_ignore_count": true,
            "tts_skip_message": true,
            "tts_inherit_siblings": true,
            "layer": 5
          }
        },
        {
          "[email protected]_item_lock_overlay": {
            "size": "$item_renderer_size",
            "offset": [ 1, 1 ],
            "anchor_to": "top_left",
            "anchor_from": "top_left",
            "layer": 6
          }
        },
        {
          "[email protected]_lock_cell_image": {
            "layer": 2
          }
        },
        {
          "[email protected]_container_transfer_mode_overlay": {
            "size": "$item_renderer_size",
            "offset": [ 1, 1 ],
            "anchor_to": "top_left",
            "anchor_from": "top_left",
            "layer": 10
          }
        }
      ]
    },
opal aurora
#

(common.cell_image)

vagrant nova
#

nope

#

u think i should replace with new vanilla inventory ui screen

opal aurora
#

what

final matrix
#

@opal aurora
is it possible that the crosshair changes image when on entity or block

vagrant nova
opal aurora
final matrix
#

ok

#

is their any possible way

opal aurora
final matrix
#

ok

weak lintel
#

on a scale of 0 to 10, how possible is it to modify xp bar's scale?

weak lintel
#

or would it be easier to just make a different bar

final matrix
#

@weak lintel is it possible

weak lintel
#

to?

final matrix
#

custom bar

weak lintel
#

i have a template in #1272053595491008643 message

vale turtle
#

how would i set a font for a button?

crimson zealot
#

I remember someone sharing an UI add-on where player is able to put some kind of actionbar# in front of the title actionbar command and that would appear in an another place in the screen and works independently of the vanilla actionbar. Anyone knows any?

crimson zealot
#

I remember their profile picture and profile banner, but not their name 😭

#

I think I've talked to them in DMs and not in the server or they deleted the post because I can't find any message related to that

gentle orchid
#

Sad 🥲

#

Can someone please answer what makes a label not show when directly added to the root_panel controls? 🤔

I'm having this problem where the preserved text panel does not show for some reason, I can ever make the game title disappear when using the update text, but no one answered: https://discord.com/channels/523663022053392405/1273385779363709031

gentle orchid
crimson zealot
#

As I said, it gives the player ability to add a second actionbar that's independent of the vanilla one. It was used by putting some kind of prefix in front of the actionbar text.

gentle orchid
feral plank
#

can someone help me?

#

`{
"mob_effects_renderer": {
"ignored": false
},

"hud_title_text/title_frame/title": {
"modifications": [
{
"array_name": "bindings",
"operation": "insert_back",
"value": [
{
"binding_type": "view",
"source_property_name": "(not (('%.6s' * #text) = 'kirby.'))",
"target_property_name": "#visible"
}
]
}
]
},
"root_panel": {
"modifications": [
{
"array_name": "controls",
"operation": "insert_front",
"value": [
{
"effects": {
"type": "panel",
"factory": {
"name": "hud_title_text_factory",
"control_ids": {
"hud_title_text": "effect_renderer@effect_renderer.new_effect_renderer"
}
}
}
}
]
},
{
"array_name": "controls",
"operation": "insert_front",
"value": [
{
"effects": {
"type": "panel",
"factory": {
"name": "hud_title_text_factory",
"control_ids": {
"hud_title_text": "mobevent_renderer@mobevent_renderer.mobevent_renderer"
}
}
}
}
]
}
]
}
}`

#

i also evaluated the mobevent renderer inui defs

#

i dont know why it wont show

warm escarp
#

#1273730772003459165

midnight sentinel
#

Can hower text be localized?

last pollen
#

Can someone send me example toggle that opens a popup

final matrix
#

x button is a different thing

#

both are different

#

I mean at least texture name

#

idk where x button textures are used though

pastel terrace
#

It is possible to create a new bar on the hud_screen screen. I already know that. However, I need to modify an existing bar, I want to move the experience bar to make it vertical, at the top of the screen. I want to create a mana system for a server, but for that I only have to work with resource packs. nothing bahavior. That's why I want to modify the experience bar instead of creating a new one.
[21:45]
Can anyone provide me with help to do this?

#

#1273805703970029681

tranquil void
#

heyall question

#

can i access a parent's variable inside a child control

#

example

{
  "panel1": {
    "size": [200, 100],
    "$textthing": "Hello",
    "type": "panel",
    "controls": [
      {
        "labelthing": {
          "type": "label",
          "text": "$textthing"
        }
      }
    ]
  }
}
#

and no, I can't just declare it inside the child control

jolly rock
#

Is it possible to display the player's coordinates on another object? i try this but doesn't work

{
    "player_position": {
        "type": "label",
        "anchor_from": "bottom_middle",
        "anchor_to": "top_middle",
        "enable_profanity_filter": false,
        "color": "$chat_text_color",
        "text": "test",
        "layer": 9,
        "bindings": [
            {
                "binding_name": "#player_position_text",
                "binding_name_override": "#text",
                "binding_condition": "always_when_visible",
                "binding_type": "global"
            },
            {
                "binding_name": "#player_position_visible",
                "binding_name_override": "#visible",
                "binding_condition": "always",
                "binding_type": "global"
            }
        ]
    }
}```
tranquil void
jolly rock
#

You can do it

tranquil void
#

so that code would work

#

ty

#

does it work if it's nested

#

so if it's a child of a child

jolly rock
#

Work too

tranquil void
#

ight ty

opal aurora
#

if you are using common.common_panel, set "$show_close_button" to false

tranquil void
#

hi guys i need help again

#

I'm adding this to the controls of dynamic_button

{
    "label_thing": {
        "type": "label",
        "size": [
            "100%",
            "100%"
        ],
        "text": "#form_text",
        "bindings": [
            {
                "binding_name": "#form_button_text",
                "binding_name_override": "#text",
                "binding_type": "collection",
                "binding_collection_name": "form_buttons"
            },
            {
                "binding_type": "view",
                "source_property_name": "(not((#text - 'afr:l:') = #text))",
                "target_property_name": "#visible"
            },
            {
                "binding_type": "view",
                "source_property_name": "#text - 'a'",
                "target_property_name": "#form_text"
            }
        ]
    }
}
#

the text shows nothing when i use #form_text which is just the text but without an 'a'

#

when i use #text it displays

uneven epoch
left yew
# uneven epoch

Smart idea to build it into vsc.

I just built mine into my site lmao

uneven epoch
#

It's not even encrypted it's just obsfucated to hell 😭🙏

tranquil void
#

i genuinely wonder if msft will make it so you can encrypt your addons

#

like how marketplace addons are encrypted

uneven epoch
#

Just don't make pack cache available to the player 🙏

vital edge
#

i tried rendering a bunch of items in a single vertical scroll. but i have seem to have reached the limit. any suggestions on rendering beyond the limit?

wraith bluff
#

good job

tranquil void
#

im curious

wraith bluff
tranquil void
#

cause i might need it

wraith bluff
#

with their AUX id

tranquil void
wraith bluff
tranquil void
#

heyall me again

#

is there a way to make it so when an element has it's size set to 100%c, and it has two child controls, with one hidden, to make it so it only grabs the size of visible ones

#

so a child is 16 pixels tall the other is 32

#

the 32 one is hidden

#

how to make the parent be only 16 pixels tall instead of 32

uneven epoch
#

I think i overkilled the obsfucation by making 25 of every file completely fake and my pack is now 3 gigs

tranquil void
#

is there a way to autoadjust a label's size

distant gorge
#

Yow

#

what's the file pack to the bedrock resource packs folder

#

file path

final matrix
#

@opal aurora how to make the tabs side ways on left and right I am on android

opal aurora
final matrix
#

oh

opal aurora
final matrix
#

Long table

#

I just wanted to move the tabs

final matrix
opal aurora
final matrix
#

yes

#

how do I do it

opal aurora
final matrix
#

uh

opal aurora
#

but you want to modify which screen?

#

i have only inventory screen

final matrix
#

inventory left

opal aurora
final matrix
#

ok I will check

#

I need to adjust the offset and size I think

#

also the slider it's Width want to reduce that so only the scrolling textures are visible
I tried doing it but the size kept increasing instead of decrease

#

@opal aurora

opal aurora
#
{
  "recipe_book/tab_navigation_panel": {
    "size": [ 23, 166 ],
    "anchor_from": "top_left",
    "anchor_to": "top_right"
  },

  "recipe_book/gamepad_helper_bumpers": {
    "size": [ 16, 166 ],
    "anchor_to": "top_right"
  }
}
#

this will override tab panel size

#

and fix gamepad helpers

final matrix
#

didn't did anything

#

@opal aurora

opal aurora
final matrix
#

no error in code

opal aurora
final matrix
#

ok

opal aurora
final matrix
#

like this

#

got it @opal aurora

opal aurora
#

ok, tab textures need to be tweaked

final matrix
#

yes

feral plank
#

Is it possible to make an image fade out with animation?

warm escarp
#

how can i place the title in the top of the screen

#

"anchor_from": "??",
"anchor_to": "??",

feral plank
warm escarp
#

thx

warm escarp
#

no wait

#

nop it disappear

#

WAIT

opal aurora
#

is there a way to return 0 using bindings if a binding is a string and not a number?

#

tried by adding '0' at the beginning and it works only on positive numbers, not negative

#

i need that to handle invalid inputs

chilly yacht
#

"if type === string"

chilly yacht
#

then -0 - -9

opal aurora
chilly yacht
#

don't think it would be performant though

opal aurora
chilly yacht
weak lintel
left yew
weak lintel
#

yeah the level text

left yew
#

Hold up

#

Progess_text_label in hud screen then just add the
"color":
Stuff

weak lintel
#

oh

#

that was simple

left yew
#

Actually it's has a color thing in there

#

U just gotta change it from $experience_text_color

weak lintel
#

alr ty

left yew
final matrix
#

@weak lintel how did you removed the original exp bar

weak lintel
final matrix
#

isn't it joined to the hotbar

weak lintel
#

yeah

final matrix
#

did you separated it

weak lintel
#

i just pasted the vanilla ui and modified directly there

final matrix
#

oh

#

can I like make something like this

tender flare
#

is there an option to get the item name when inside of container_item?

final matrix
#

Difference BTW live player renderer and paper doll renderer

#

@weak lintel

weak lintel
#

i uh

#

dunno?

#

isnt this quite nice for a first proper json ui project

warm escarp
#

#1274029535641469040

young dune
#

Any tools for json ui?

left yew
#

#1253555342424674344 message

Working on v2 🙏😭

fossil prism
#

Is there a way to remove the animation when opening the form? I want the form to appear immediately

final matrix
#

why my tabs don't show icon on hover state?

young dune
#

How would I go about making the outer panel size base on the child image?

rocky quail
#

dude stop pinging tlgm, he can see this when he browse in this channel

final matrix
#

issue was solved

#

sorry

final matrix
#

is it possible to add button bindings to custom form?

left yew
weak lintel
#

is the element that renders horse jump power hardcoded or something?

#

i dont see the texture defined in vanilla ui

weak lintel
#

no i just want to change the scale and texture

left yew
#

textures/ui/horse_jump_full.png
textures/ui/horse_jump_empty.png

weak lintel
weak lintel
left yew
#

or

#

u can just remove it in the hud screen if its not needed for what ur doing

weak lintel
#

i wish i could remove it gx_Sunglasses_cry

#

but no its needed

left yew
#

ah

weak lintel
#

at least i know the texture exists

#

gonna try smth

#

ty

#

i just learned the unacceptable truth

#

why mojang

#

why is there an extra row of pixels

tranquil void
#

hi guys

#

question

#

is there a way to change an image's RGB

weary wind
#

Any solution?

chilly yacht
#

try binding it to something else

#

#title_text is a global server form binding

weary wind
chilly yacht
#

do #notification_title_text

weary wind
tranquil void
#

is there a way to make a button unclickable

chilly yacht
#

either change the clicked button name or "enabled": false it

final matrix
#

how does the left bar work do it need something to fill

tender flare
#

is there a variable for container_item item name?

weak lintel
#

ikr

opal aurora
weak lintel
#

yeppers

#

working on mcd content addon

#

this is what i have so far
(though i didnt make the mobs, items and the boss bar)

#

blocked

#

1 blocked message

#

j

weary wind
tender flare
#

is there a variable for container_item item name?

weary wind
#

Haha, it can’t be

weak lintel
#

hey json ui people

#

is toast ui pop up hardcoded

#

not the ui but the thing that makes it pop up

normal hamlet
#

Easiest way to get familiar and learn json UI?

distant gorge
midnight sentinel
#

Just google 'minecraft bedrock json ui'

#

and here you go

weak lintel
#

how do i use preserved texts for child label elements

#

do i have to put preserve texts on each elements? (please say no)

weak lintel
#

why tf is this not working nooo

tranquil void
# normal hamlet Easiest way to get familiar and learn json UI?

Step 1. Download the template from the bedrock samples github
Step 2. Open a random file (you will most likely be modifying either chest_screen.json, server_form.json or title_screen.json (i do not know if thats the file name))
Step 3. Ctrl + F on everything interesting
"x@y" means element of name x copies properties from element of name y, and if y has a full stop on the name it means it comes from a different file
Step 4. Piece it together
Step 5. Ask for help
Step 6. Give up
Step 7. Return to school
Step 8. Land a job as a depressed software engineer
Step 9. Live a boring life working 9-5 paycheck to paycheck
Step 10. Get laid off and replaced by AI
Step 11. Work retail for the rest of your life
Step 12. Retire
Step 13. Live a happy life in the american suburbs of Flushing, New York

normal hamlet
#

Life as soon as you touch mcbe addons:

tranquil void
last pollen
hearty robin
#

hi

final matrix
#

does anyone knows how can I render only the head of paperdoll

#

@pastel terrace
pls inform when the mana system works
I want the code for the mana progress property
for heart renderer

final matrix
#

any code reference @hearty robin

#

I mean like half body with head

hearty robin
final matrix
#

"player_head": {
"type": "panel",
"anchor_from": "top_left",
"anchor_to": "top_left",
"clips_children": true,
"size": [
28,
38
],
"layer": 2,
"offset": [
-4,
-17
],
"controls": [
{
"player_head_renderer": {
"type": "custom",
"renderer": "paper_doll_renderer",
"size": [
35,
85
],
"offset": [
0,
20
]
}
}
]
},

I mean like this but it only shows head in 2d I want 3d

#
 hud player renderer 
paper doll renderer
live player renderer```
hearty robin
final matrix
#

@hearty robin I also want like the portion from chest as well

hexed briar
#

it's confusing sometimes and does not always work.

#

e.g it does have a chance of preserved texts being desynced when there are too many strings going on.

#

it only works best if you're using multiple stats or something that isn't exactly "strings spamming" intensive.

hearty robin
final matrix
#

hu?

#
    "type": "panel",
    "size": [ 15, 15 ],

    "controls": [
      {
        "hud_player": {
          "type": "custom",
          "renderer": "hud_player_renderer",
          "layer": 1,
          "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_visible",
              "binding_name_override": "#visible"
            }
          ]
        }
      }
    ]
  },```
weak lintel
final matrix
#

it's the actual from hud screen

final matrix
#

@hearty robin

#

like only the body above stomach
do you know the size?

hearty robin
pastel terrace
#

Hello, I want to modify the screen to enter a server and leave it like this:

#

for this, I will need to remove some things and just put some input text and background for the background

#

Can someone help me?

upbeat frigate
#

Hello, quick question, If someone created an addon that uses ActionModalForm with json ui, and mine also uses ActionModalForm without json ui, will there be an incompatible issue or not? 😅 Like when both packs are installed in same world

digital blade
#

can u change default gamemode?

#

with scripts?

#

i dont find a way to change it

#

default

#

when players connect be on a specific gamemode

#

i guess i'll have to use playerJoin after events

weak lintel
#

what does "binding_type": "global" do?

#

i see it everywhere but i dont understand what it really does

tranquil void
#

hi

#

is there a way to modify a child element

tropic badger
weak lintel
#

so it gets the binding that exists in the ui?
smth like hud title text

tranquil void
#

so something like "main_screen_content/server_form_factory" in server_form

hexed briar
tranquil void
#

nvm what im trying to do doesn't really work

#

im trying to override the sever_fomr screen content

#

but when i think about "what would happen if another addon does the same as im doing" i get the result of incompatibility

hexed briar
#

sever_fomr does not exist.

tranquil void
#

grr

#

server_form

#

using modifications on the main screen doesn't work because it doesn't let me use bindings inside requires on the value array

#

for some reason it just like

#

when requires ends up as false i get an empty screen

hexed briar
#

well once again, bindings and variables does not mix.

tranquil void
#

yeah im aware

#

and i can't do the visiblity trick

#

because factories don't support it

#

and if i add a new child control it'll just make animations get removed

#

i loooove json ui

#

what i don't get is like

#

when other mods do this

#

it works

#

but when I do it, it doesn't

hexed briar
tranquil void
#

oh wait

#

nvm

hexed briar
#

¯_(ツ)_/¯

tranquil void
#

death to mojang

#

lemme see if this works

#

ight 2nd test didn't work

weak lintel
#

on a scale of 0 to 10, how plausible is it

tranquil void
#

cause accorindg to th docs, factories themselves don't support bindings

opal aurora
#

it does

#

factories and factory controls themselves

tranquil void
#

let's test it

opal aurora
tranquil void
#

yeah

#

that's what im referring to

#

because i can't disable the parent of the factory itself because that's the screen content

#

and adding controls on top makes the animations not work for both elements, which i DON'T want to modify

#

so how can i do what i want then

#

i want to override the long_form element from server_form and change it to my own depending on what #title_text says

tranquil void
#

can't do

#

i don't want to break compat with other addons

#

and no, i can't just add stuff on top of long_form, because long_form already has a background texture

#

do yall think this'll work

"third_party_server_screen": {
        "$ithinkitsextremelystupidihavetodothis|default": "#title_text",
        "modifications": [
            {
                "array_name": "bindings",
                "operation": "insert_back",
                "value": [
                    {
                        "binding_type": "global",
                        "binding_name": "#title_text"
                    }
                ]
            },
            {
                "array_name": "controls",
                "operation": "insert_back",
                "value": [
                    {
                        "labelthing": {
                            "type": "label",
                            "text": "$ithinkitsextremelystupidihavetodothis"
                        }
                    }
                ]
            }
        ]
    }
#

guess! what! happened!

#

this sucks man

#

why do addons have to be like this

#

let me check if there's a collision if i use a 2nd pack

hearty robin
tranquil void
#

the issue is i can't find WHAT part to modify

hearty robin
tranquil void
#

what i need to modify is the screen content

#

but there's NO way to get the form title inside the screen element

#

tried this

#
"third_party_server_screen": {
        "$title": "#title_text",
        "bindings": [
            {
                "binding_name": "#title_text"
            }
        ],
        "modifications": [
            {
                "array_name": "variables",
                "operation": "insert_back",
                "value": [
                    {
                        "requires": "(not(($title - 'afr:') = $title))",
                        "$screen_content": "server_form.extended_main_screen_content"
                    }
                ]
            }
        ]
    }
#

didn't work

tranquil void
#

but i can't get the title text inside the screen element

weak lintel
#

meanwhile me struggling with operators

tranquil void
#

whatcha doing

weak lintel
#

to get titles hidden

#

usual stuff

tranquil void
#

can i see the code

weak lintel
#

but for whatever the fuckin reason the game only gets the operator that comes first

weak lintel
#

it hides _mcdHud.soul propertly but not the latter

#

when i swap the positions it becomes the opposite

#

tried using two bindings modification but it doesnt hide both of them

#

we all struggle with json ui 🤝

#

but sometimes i wish i dont use this UI and yeet it away

#

but no its required for the addon

#

json and ui makes horrible combination lol

#

ive experienced it before minecraft's json ui

#

wishing for ore ui to have visual editor

#

ikr imagine the capabilities

#

maybe one day we could directly link UI with scripts

hearty robin
#

JSON UI is better than css 😃

weak lintel
#

i dont know how CSS works but this sounds false

#

also wishing for ore ui to allow us to drag UI elements with mouse

hearty robin
#

if you would have +20 years of JSON UI experience like me, then you would agree with me

weak lintel
#

if you had +20 years of JSON UI experience then youre definitely not from this planet

#

not because its impossible

hearty robin
#

It can. you just dont know it yet

weak lintel
#

it can but

hearty robin
#

yeah

weak lintel
#

i would prefer learning CSS over doing that in JSON UI

hearty robin
#

you asked me for it and there you have it

#

nothing to complain about lol

#

Just practice some more 🤫

#

do that then 🥭

left yew
#

Ong

hearty robin
#

i am but not because i think that json ui is better 🗣️

#

buddy

#

re read my sent data binding

weak lintel
#

we already get enough headache from json ui, what is this for

hearty robin
#

not telling buddy. that data binding of mine is not a global type

#

yeah I meant
Data Binding Array Object
-# Data Binding allows to bind hardcoded values/variables to an element property.

#

thats it buddy. Ill set your enabled property to false

analog snow
#

can i substring and remove text from a button's texture?

#

apparently it doesnt work

#
"image": {
  "type": "image",
  "size": ["20%", "100%"],
  "offset": [0, 0],
  "texture": "#icon",
  "bindings": [
    {
      "binding_name": "#form_button_texture",
      "binding_name_override": "#texture",
      "binding_type": "collection",
      "binding_collection_name": "form_buttons"
    },
    {
      "binding_name": "#form_button_texture_file_system",
      "binding_name_override": "#texture_file_system",
      "binding_type": "collection",
      "binding_collection_name": "form_buttons"
    },
    {
      "binding_type": "view",
      "source_property_name": "(('%.64s' * #texture) - '|')",
      "target_property_name": "#icon"
    },
    {
      "binding_type": "view",
      "source_property_name": "(not ((#icon = '') or (#icon = 'loading')))",
      "target_property_name": "#visible"
    }
  ]
}```
#

even though now that i tried putting the icon text in the label, it's correct

#

nevermind

tranquil void
#

so

#

i just rethought it

tranquil void
#

ok so

#

first hey guys

#

so

#

im gonna try just

#

modifying the variables of long_form

#

and replacing the child control with my own

hearty robin
#

JSON UI is better than scripting API

#

and html

tranquil void
#

question

#

can you turn off visibility of certain elements WITHOUT affecting the children via bindings

#

btw

#

why doesn't this work

#
"long_form": {
        "modifications": [
            {
                "array_name": "variables",
                "operation": "insert_back",
                "value": [
                    {
                        "requires": "($text_name - 'afr:') = $text_name",
                        "$custom_background": "server_form.no_background"
                    }
                ]
            }
        ]
    }
#

($text_name - 'afr:') = $text_name always evaluates to true

hearty robin
#

replace
($text_name - 'afr:') = $text_name
to
(($text_name - 'afr:') = $text_name)

winged flicker
#

How to know the value of #form_button_length, #maximum_grid_items, #players_grid_dimension, ...

winged flicker
tranquil void
#
"long_form": {
        "modifications": [
            {
                "array_name": "variables",
                "operation": "insert_back",
                "value": [
                    {
                        "requires": "(($text_name - 'afr:') = $text_name)",
                        "$custom_background": "server_form.no_background"
                    }
                ]
            }
        ]
    },
#

still always evaluates to true

#

somehow doing this crashed the game

#
"long_form": {
        "modifications": [
            {
                "array_name": "variables",
                "operation": "insert_back",
                "value": [
                    {
                        "requires": "($text_name = 'generic')",
                        "$custom_background": "server_form.no_background"
                    }
                ]
            }
        ]
    },
winged flicker
#

Hello, I'd like to create the list of players as shown on this screen but I can't manage it with the grid. What should I do so that there are 8 per line and then they go to the line below?

#
  "players_grid": {
    "type": "grid",
    "size": [ "100%", "default" ],
    "grid_item_template": "pause.player_grid_item",
    "grid_dimension_binding": "#players_grid_dimension",
    "collection_name": "players_collection",
    "anchor_to": "top_left",
    "anchor_from": "top_left",
    "bindings": [
      {
        "binding_name": "#players_grid_dimension",
        // Necessary do to a bug with grid item bindings not refreshing when the grid is inside a stack panel
        "binding_condition": "always"
      }
    ]
  },
hearty robin
tropic badger
hearty robin
rocky quail
#

arguing with json ui components is crazy

last pollen
#

Nan Pluto sa [ "100%c", "100%" ],

distant gorge
#

lmao the arguement

#

funi

distant gorge
tranquil void
#

it's "offset": [-10000, 0]

weak lintel
#

yall eat sandwiches in "orientation": "vertical"

weak lintel
#

does inserting an element with animation into root panel cause it to play animation regardless of trigger

distant gorge
#

Bro yout body is like "size": [ 5000000, 10 ]

weak lintel
winged flicker
last pollen
winged flicker
last pollen
#

Fait ce que je t’es dis et dans le player_grid_item replace le 20% pars un chiffre

winged flicker
#

Jsp cmt faire

#

Pour que y en ai 8 par lignes par ex pour chaques plateforme

last pollen
#

Ouai je voie ce que tu veux dire

#

Bas la grid fait la passer dans un stack_panel a la fin

#

Je pense que sa réglera le problème

winged flicker
last pollen
winged flicker
#

Stv on parle pas fin comme tu veux mais je vois pas trop ce que tu veux dire avec le stack panel

last pollen
winged flicker
#

Ah ok je savais pas merci

#

Possible add ami si jms j'ai besoin d'aide

last pollen
#

Oui

winged flicker
#

Merci tu me sauve

weak lintel
#

why tf are the titles canceling each other

vital edge
#

lol

weak lintel
#

does the element show up even if the chat is hidden?

vital edge
#

yeah. cause that wont matter since we're creating a new factory

weak lintel
#

ive never thought of using that

#

god

#

tysm man ill try something

vital edge
#

well now you do, and best of luck

weak lintel
#

ok nevermind

#

this is beyond my level

#

☠️

weak lintel
#

if

#

those toast ui

#

needs this much

#

dear god

vital edge
#

dude i get shy when someone looks into my code. its like taking a peek into my soul

#

anywho mine was complicated because it needed to be but in essence it should still be the same as doing it in titles

weak lintel
#

hmmmm

vital edge
#

except that it doesnt use title factories, but rather chat bindings

#

one major difference between the two is that title can use variables whereas chat only uses bindings

weak lintel
#

ok that might make it harder

#

ty for the tip though

#

by the way how does stack panel work

vital edge
#

a stack panel works exactly like a panel except instead of putting the elements in their own anchors, it stacks them side by side -- either horizontally or vertically

weak lintel
#

so when it triggers, it doesnt override on em

#

but instead stack like you said automatically

#

neato, ty

jovial summit
limpid solstice
tropic tangle
#

💀

hearty robin
warm island
#

How can I do this?

hearty robin
warm island
hearty robin
#

yo mama so fat she is the reason why a scrolling panel can be horizontal

warm island
#

I don't know how to do it

hearty robin
#

yo mama so fat, she would get a watchdog error if she tries to render herself in JSON UI

unique swan
hearty robin
#

yo mama so fat, she is the reason why "%" sizes can be a decimal number

weak lintel
#

(common mistake)

opal aurora
weak lintel
#

not normal to my standards

opal aurora
weak lintel
#

do you have the uhhh examples

#

i dont know much about factories yet

#

just the factory example

#

yeah i think i might not touch ui anytime soon, dont want to get burnt out

chilly yacht
#

wtf did i just find 😭

opal aurora
#

although the game can understand that

chilly yacht
left yew
#

That's why ur noob ☝️🤓

#

Nah

#

Hacker 😈😈

zenith vortex
#

how i can make anims?

#

how i can add anims to my elements?

#

yes

#

i read this but anyone have other example?

#

i want to add anims to my forms

#

but individual anims

hearty robin
chilly yacht
#

thats actually robotics

#

@vital edge sorry for ping but do you know if its possible to force a scrolling panel to have already scrolled to a certain spot?

#

like if i have a scrolling panel, id want it to scroll half way

rocky quail
hearty robin
untold dawn
#

is there any way i can learn UI from?
( basics )

gentle orchid
#

Does "atext" have any internal setting in actionbar? 🤔 I tried using different variable names (like $text, $input_text and $testing, but it sends a log saying it couldn't find the variable and expressions don't slice the texts correctly). But using $a_text, $atexts and $atext works fine 🤔 so confusing

tropic badger
# rocky quail ?

Yeah problem too, when the model gets through the screen the part of the model disappears, don't know why that's a thing.

untold dawn
#
{
    "player_inventory": {
        "type": "image",
        "anchor_from": "centre",
        "anchor_to": "centre",
        "size": [ 100, 100 ],
        "background_color": "black"
    }
}
```i think i did something wrong somewhere somehow![bao_doggo_smug](https://cdn.discordapp.com/emojis/939767354009747516.webp?size=128 "bao_doggo_smug")
weak lintel
rocky quail
untold dawn
weak lintel
untold dawn
#

i shouldn't call it "player_inventory"

hexed briar
weak lintel
#

well i knew it wasnt json ui thing Face

untold dawn
#

is there any way to learn UI lang from?

#

like a tutorial or something

untold dawn
#

jk

#

jeez why is it so complicatedbao_foxxo_derp

weak lintel
untold dawn
weak lintel
#

one of the hardest addon elements

weak lintel
untold dawn
#

i just want to add 1 image to the player inventory
i shouldn't have to learn the whole lang for it right?

weak lintel
#

spoiler alert:

||you have to understand how it works even if the stuff youre trying to do is very small||

untold dawn
hexed briar
#

If you know json and it's structure well, chances are. you'll likely able to do json-ui straight forward.

untold dawn
#

im completely lost

weak lintel
hexed briar
#

also it's "center", not "centre"

patent bramble
#

using rebinds is it possible to simulate a click action on all slots on the inventory?

untold dawn
weak lintel
#

you probably didnt specify where to render the image

#

in json ui

untold dawn
#

how should i do that?

#

dont send me the wiki link

#

I'm scared of those kinds of links

untold dawn
#

that's shouldn't be hard for someone who knows UI ig

#

np if u cantbao_doggo_blank

weak lintel
#

((i dont know ui that much))

untold dawn
patent bramble
#

How likely would it be to get a 1-on-1 teaching session with an expert at json UI?
I’ve tried everything else and it just won’t stick

weak lintel
untold dawn
weak lintel
#

im not even confident with my own json ui

#

how am i supposed to tell you

untold dawn
#

u dont have to

opal aurora
#

alternatively, use a slider, but it is not flexible

opal aurora
weak lintel
#

oh right TLGM

#

i did the chat panel you said yesterday

#

but uh its on the chat instead of the screen

opal aurora
weak lintel
#

the whole chat factory?

#

oml this is more confusing than i thought, alr

patent bramble
#

so wait how exactly would I pass an input to all inventory slots?

#

I’m trying to rebind a UI click to a quick move function and have it not consume the move event

#

If I sound like I’m talking gibberish

#

It’s cause I am

#

-# Please help me