#JSON-UI General

1 messages · Page 22 of 1

opal aurora
#

still doesn't work, it keeps increasing by 16 each time texts with new lines change

opal aurora
#

it has only additions, and no subtractions for "#line_length"?

glossy kraken
#

Hi friends ,I want to learn how to make ui can you please help me. And any youtuber or video/tutorial link on ui

opal aurora
#

it works very randomly, and sometimes it didn't want to update at all

#

and very laggy

fathom mica
undone marsh
opal aurora
#

it's too heavy

#

i think the game tried to infinitely add 1 until 2147483647, then overflowed and back to current length, which is not performant at all

lament kraken
mint lake
#

Good

primal aspen
#

How can I write text to the tooltip lore section with json-ui?

oak verge
#

can json ui remove the space between words?
for example using a script that add Arabic support
text appear like this
"تـ ـجـ ـربـ ـة"
but it should look like this
"تجربة"
so can json ui remove that space??

gray granite
#

how can i center a text in json ui?

#

"anchor_from": "center",
"anchor_to": "center",
right?

#
"long_form_panel": {
    "type": "stack_panel",
    "size": [
        "100%",
        "100%"
    ],
    "orientation": "vertical",
    "layer": 0,
    "anchor_from": "center",
    "anchor_to": "center",
    "controls": [
        {
            "hud_text": {
                "type": "image",
                "texture": "textures/ui/test1",
                "anchor_from": "center",
                "anchor_to": "center",
                "size": [ 250, 110 ],
                "offset": [ 10, 0 ],
                "bindings": [
                    {
                        "binding_type": "view",
                        "source_property_name": "((#form_text = 'This text should be centered'))",
                        "target_property_name": "#visible"
                    }
                ]
            }
        }
    ]
}
#

I cant get the text to be centered at all

broken trail
#

you cannot center elements inside stack panel??

#

if I remember correctly

#

if you want, wrap that element inside some panel and then add anchors to its child

gray granite
#

doesn work

broken trail
#

or use "use_anchored..." I dont remember but this may allow anchoring

broken trail
#

so then you dont need to wrap each element inside empty panel

broken trail
gray granite
#

im so confused rn

broken trail
#

set true and try it

#

inside stack panel

gray granite
chilly yacht
#

"use_child_anchors": true

#

and dont anchor at all shrug

chilly yacht
# gray granite ```json "long_form_panel": { "type": "stack_panel", "size": [ "1...
"long_form_panel": {
    "type": "stack_panel",
    "orientation": "vertical",
    "use_child_anchors": true,
    "controls": [
        {
            "hud_text": {
                "type": "image",
                "texture": "textures/ui/test1",
                "size": [ 250, 110 ],
                "offset": [ 10, 0 ],
                "bindings": [
                    {
                        "binding_type": "view",
                        "source_property_name": "((#form_text = 'This text should be centered'))",
                        "target_property_name": "#visible"
                    }
                ]
            }
        }
    ]
}```
#

all you need

#

size defaults to "100%", "100%", and anchors default to center

#

no

#

"middle" does not exist

#

"top_left"
"top_middle"
"top_right"

"left_middle"
"center"
"right_middle"

"bottom_left"
"bottom_middle"
"bottom_right"

simple crystal
#

X39dvJRu9K

#

go7hn

#

help

chilly yacht
#

still wouldn't work

#

can't offset in stack panels unless the child is nested

#

and i believe children in stack panels default to top left

left yew
chilly yacht
#

real fact checked 2024

simple crystal
true elm
#

anyone has a modal ui that places all the feilds nicely

left yew
simple crystal
#

no

left yew
simple crystal
#

pls help people

#

and go7hn

inner ruin
#

How can I make the action bar display anywhere I want on the screen?

oak verge
fathom mica
#

@opal aurora have you been able to get the \n?

wary hinge
#

Does anyone know a way to set a specific panel size based on a title of a server_form?

{
                "binding_type": "view",
                "source_property_name": "((#title_text = 'Furniture Venture'))",
                "target_property_name": "#visible"
            },
opal aurora
fathom mica
vale turtle
left yew
left yew
#

I mean yeah

#

But still

#

Legit everything u need is in game files

simple crystal
chilly yacht
hexed briar
#

the default is left.

chilly yacht
#

minecraft is strange

oak verge
#

left is default in a lot of games an apps

left yew
#

Chat please everyone provide me the source code to everything yall have ever worked on. 😢😢😢😢😢😢😢😢😢🙏🙏🙏🙏

chilly yacht
#

me too pls 😢😢😢😢🙏🙏🙏🙏

left yew
past stirrup
#

let’s goo!!

trim gull
#

this is more of a jsonUI thing

#

than a scripting thing

#
system.runInterval(() => {
    world.getAllPlayers().forEach(player => {
        let score = world.scoreboard.getObjective("coins").getScore(player.scoreboardIdentity).toString();
        player.onScreenDisplay.setTitle(`actionbar3 §g ${score}`);
    });
});```
left yew
#

I got you

#

Add this to ur code

#

Thank me later

trim gull
#

but the problem here
if I do title @a title actionbar3 balls

#

yk

#

it works perfectly fine

chilly yacht
trim gull
#

but like

chilly yacht
#

or only show when it’s flagged

trim gull
#

I want it ,_ ,

trim gull
#

title @a title title balls

#

for example

chilly yacht
#

what exactly is ur issue

trim gull
#

two issues

#
  1. only the host can see the the UI
#

(I need a test dummy to confirm however)

#
  1. the default title is showing up
#

^

trim gull
#

I don't know how do you that!!!1

#

uh

#

I'll continue like

#

trying to find solutions

#

but if you could just like

#

work your magic

#

and explain how you did it

#

🙏

digital blade
#

I just started on json ui, and copied vanilla _global_variables _ui_defs, and hud_screen, but for some reason a missing texture appears in the middle of the screen, how can i fix it?

chilly yacht
#

Don't crosspost pls 🙂

vocal urchin
vocal urchin
digital blade
trim gull
digital blade
opal aurora
vocal urchin
#

hud_screen.json

digital blade
#

thats the problem i took the whole vanilla file

#

let me delete code that is not edited

#

Yeah its hud screen the problem im sorry

vocal urchin
#

What texture packs do you have activated? @digital blade

digital blade
vocal urchin
#

Ok

digital blade
# vocal urchin

it still shows me that missing texture on the middle of the screen:(

vocal urchin
#

What did u even add in hud screen?

digital blade
#

i think i know

#

there's images i dont have?

chilly yacht
#

just edit the things you need in hud screen

#

theres some sort of bug with a namespace

#

idk which one but its somewhere in this discord

digital blade
#

well i didnt tried it

chilly yacht
#

yeah even if u remove it from the file itll still work properly because you didnt edit it or hide it

digital blade
#

how do i give jump between lines in actionbar?

chilly yacht
#

\n

digital blade
#

i have to edit something on the hud screen?

chilly yacht
#

no

digital blade
chilly yacht
#

they do

#

it has to be a titleraw though i think

#

then the rawtext thing

digital blade
chilly yacht
#

has to be titleraw

digital blade
#

it worked ty!

chilly yacht
digital blade
#

its there a way to anchor it to the middle right of the screen?

chilly yacht
#

yes

#

"anchor_to": "right_middle" and "anchor_from": "right_middle"

digital blade
#

it only moved the text

chilly yacht
#

the image not text

#

show code

digital blade
#

I did it

#

u had reason i anchored the text not the image

#

ty

chilly yacht
#

yeah, so children are anchored inside of the parent

#

so anything you put in controls will follow the parent

digital blade
#

ok i have tu put center on text

chilly yacht
#

yes

#

is so left tbh

#

id*

tropic badger
opal aurora
# tropic badger Are you able to share it? I might improve
{
  // this code was meant to return only one line of text from a multiline string,
  // and this needs to be repeated multiple times to extract all lines from a multiline string
  "example": {
    "type": "label",
    "text": "#text",
    "property_bag": {
      "#line_length": 0
    },
    "bindings": [
      {
        "binding_type": "view",
        "source_property_name": "#line_length",
        "target_property_name": "#line_length"
      },
      {
        "binding_name": "#hover_text",
        "binding_type": "collection",
        "binding_collection_name": "$item_collection_name"
      },
      {
        "binding_type": "view",
        "source_property_name": "(#hover_text)",
        "target_property_name": "#t"
      },
      {
        "binding_type": "view",
        "source_property_name": "(('%.' + (1 + #line_length) + 's') * #t)",
        "target_property_name": "#line_check"
      },
      {
        "binding_type": "view",
        "source_property_name": "(not ((#line_check - '\n') = #line_check))",
        "target_property_name": "#is_new_line_found"
      },
      {
        "binding_type": "view",
        "source_property_name": "((#is_new_line_found * -1) + ((not #is_new_line_found) * 1) + #line_length)",
        "target_property_name": "#line_length"
      },
      {
        // here for overflow-safety, remove at risk
        "binding_type": "view",
        "source_property_name": "((#line_length > 100) * 100 + (#line_length < 101 and #line_length > 0) * #line_length + (#line_length < 0) * 1)",
        "target_property_name": "#line_length"
      },
      {
        "binding_type": "view",
        "source_property_name": "(#line_length * #is_new_line_found)",
        "target_property_name": "#line_value"
      },
      {
        "binding_type": "view",
        "source_property_name": "('§z[' + #line_value + ' / ' + #line_length + '] ' + (('%.' + #line_length + 's') * #t))",
        "target_property_name": "#text"
      }
    ]
  }
}
lament shoal
#

can we like write our own code

#

no offence but this chats kinda sometimes pasted code here

#

you can’t necessarily learn anything if you just grab code

left yew
#

As shown in the video this image will 100% fix your json ui problems

chilly yacht
lament shoal
#

trust

tranquil void
#

hi json ui-ers

#

is there a way to change size on a panel?

#

so like

#

setting one of the axis to a variable

#

without replacing the entire size array

tranquil void
#

you're so #FUNNY

#

currently laughing hard

zenith vortex
#

Does anyone know how to use the edit_box in JSON UI?"

sly gorge
#
"text": "('You are NOT standing at: ') + #text",
          "shadow": true,

          "bindings": [
            {
              "binding_name": "#player_position_text",
              "binding_name_override": "#text",
              "binding_condition": "always_when_visible",
              "binding_type": "global"
            }
          ]```How do I mention the variable there in the "text" 😭
#

When I open it in-game, it shows the string how it is.

distant gorge
#

Is it possible to like, make a label turn different colors when at a specific coordinate?

celest plaza
#

Use, "font_type": "Minecraft Ten"

bright sand
#

hey guys how would i auto fit the width based on the text content inside?

opal aurora
#

here's my fixed version:

          "text": "#text",
          "shadow": true,

          "bindings": [
            {
              "binding_name": "#player_position_text",
              "binding_condition": "always_when_visible",
              "binding_type": "global"
            },
            {
              "binding_type": "view",
              "source_property_name": "('You are NOT standing at: ' + #player_position_text)",
              "target_property_name": "#text"
            }
          ]
bright sand
#

bruh what's that

opal aurora
distant gorge
#

Hmmm

last pollen
tropic badger
#

Me genuinely tweaking after getting image of vector instead of an answer to my question:

tropic badger
#

not yet i was in school this week

fathom mica
#

@opal aurora I just remembered, so you need the line from the top, right? just cut it using size, I did it in the resource 'unobstructive item name' maybe it can cut another line with the cut text

#

but I don't know whether other text that becomes '...' can still be detected or not

fathom mica
tropic badger
opal aurora
opal aurora
fathom mica
tropic badger
fathom mica
jolly rock
#

Is possible to remove this space on actionbar?

sly gorge
#

God damn json ui is impossible for me 😭

#

I'm trying to show a panel when there's a action bar text "Hey." I have no idea how ;(

tranquil void
#

chat i need help again

#
{
    "third_party_server_screen": {
        "modifications": [
            {
                "array_name": "bindings",
                "operation": "insert_back",
                "value": [
                    {
                        "binding_name": "#title_text"
                    }
                ]
            },
            {
                "array_name": "variables",
                "operation": "insert_back",
                "value": [{
                    "$screen_content": "a@server_form.afr_screen_content_basic"
                }]
            }
        ]
    }
}
#

inside the same file i have a panel named afr_screen_content_basic

#

and it displays a label just for testing

#

but for some reason it still display the regular screen

wary hinge
#

How should #form_button_length be used? Is it '4' or 4?

distant gorge
chilly yacht
#

custom slider, textfield, and toggles

chilly yacht
opal aurora
#

check if position text is equal to a specific text (not recommended because this method does not support localizations)

simple crystal
celest plaza
tranquil void
#

im experimenting w stuff again

#

do you all think this would work

#

it did not, in fact, work

sly gorge
opal aurora
tranquil void
#

thought it'd work since there's "binding name" and "control name"

opal aurora
tranquil void
#

i wanna use modifications because i have seen it done before

#

specifically on chest_screen

#

but for some reason here it doesn't

opal aurora
#

uh, both do the same thing

tranquil void
#

what i can do is like

#

manually add the control

#

so do "array_name": "controls"

#

but it looks ugly, no animation

#

and now it's complaining about something else

#

lovely

opal aurora
#

uh, animations

vocal urchin
tranquil void
#

got this error when replacing the $screen_content using modifications

#

this is the entire file

{
    "namespace": "server_form",
    "new_screen_content": {
        "type": "panel",
        "size": [
            50,
            50
        ],
        "layer": 20,
        "controls": [
            {
                "type": "label",
                "text": "test test test test"
            }
        ]
    },
    "third_party_server_screen": {
        "modifications": [
            {
                "array_name": "bindings",
                "operation": "insert_back",
                "value": [
                    {
                        "binding_name": "#title_text"
                    }
                ]
            },
            {
                "array_name": "variables",
                "operation": "insert_back",
                "value": [
                    {
                        "requires": "('a' = 'a')",
                        "$screen_content": "server_form.new_screen_content"
                    }
                ]
            }
        ]
    }
}
#

the requires thing being a = a is just for debug

chilly yacht
#

like @server_form.third_party_server_screen

#

then modify it

tranquil void
#

afaik i don't have to

#

unless im overriding it completely

opal aurora
chilly yacht
opal aurora
tranquil void
#

yeah even adding "@" it breaks

chilly yacht
#

yes u are overriding it, but the default one is called from common

opal aurora
#

the "test test..." part, missing element name and properties

chilly yacht
#

and then i guess for base screen u need button mappings?

tranquil void
#

huh

tranquil void
#

ohhhh

#

OHHHH

opal aurora
tranquil void
#

great, mc crashed

chilly yacht
#

@tranquil void json { "namespace": "server_form", "new_screen_content": { "type": "panel", "size": [ 50, 50 ], "layer": 20, "controls": [ { "label": { "type": "label", "text": "test test test test" } } ] }, "third_party_server_screen": { "button_mappings": [ { "from_button_id": "button.menu_cancel", "to_button_id": "button.menu_exit", "mapping_type": "global" } ], "modifications": [ { "array_name": "bindings", "operation": "insert_back", "value": [ { "binding_name": "#title_text" } ] }, { "array_name": "variables", "operation": "insert_back", "value": [ { "requires": "('a' = 'a')", "$screen_content": "server_form.new_screen_content" } ] } ] } }

#

works for me!

tranquil void
#

that just overrides the entire thing

chilly yacht
tranquil void
#

which is what im trying to avoid

#

i got it fixed tho

chilly yacht
#

then u have to extend it right?

tranquil void
#

yeah

#

i can just use modifications tho

chilly yacht
#

wym

tranquil void
#
{
    "third_party_server_screen": {
        "modifications": [
            {
                "array_name": "bindings",
                "operation": "insert_back",
                "value": [
                    {
                        "binding_name": "#title_text"
                    }
                ]
            },
            {
                "array_name": "variables",
                "operation": "insert_back",
                "value": [
                    {
                        "requires": "('a' = 'a')",
                        "$screen_content": "server_form.new_screen_content"
                    }
                ]
            }
        ]
    }
}
#

modifications doesn't override anything but it allows you to remove and add stuff without affecting compat

chilly yacht
#

yeah

#

thats what mine was wym?

tranquil void
#

you cloned button_mappings

#

which overrides the button mappings

graceful elbow
#

can you have more then 1 server_form file?

tranquil void
#

huh

chilly yacht
#

but now it doesnt

tranquil void
#

anyw back to developing stuff

opal aurora
graceful elbow
tranquil void
#

yeah i think so

#

anyw this is basically what i wanted to do

chilly yacht
#

may i ask what the point is?

tranquil void
#

"API"

chilly yacht
#

just flag diff forms

tranquil void
#

it allows you to add custom elements to forms

chilly yacht
#

based on title

tranquil void
#

yeah

#

that's what it does

#

except i need to override the entire main panel first

#

which is why i did that

#

anyw

#

the first one, extended screen content, enables the elements and that's it

#

so it allows you to resize the form and add images/labels to action forms

opal aurora
chilly yacht
#

why not just do this

tranquil void
chilly yacht
#

i can do whatever i want with forms

tranquil void
#

im using it on requires

chilly yacht
#

add labels, images resize etc..

opal aurora
# tranquil void

not either, "bindings" can only be used in "bindings", and properties to override, like #offset, #text, or #visible..., can't be used in "variables"

tranquil void
#

and yup you were right

#

it doesn't render

chilly yacht
#

thats how i made these

#

all flagged through title

tranquil void
#

that's cool

#

im js messing around basically

#

really cool tho

opal aurora
tranquil void
#

so i can't use bindings in requires

opal aurora
chilly yacht
#

u cant use bindings in variables i think

tranquil void
#

i assume you hardcoded those UIs

chilly yacht
#

wym?

tranquil void
#

so you can'r dynamically add the elements

#

you have to specify which UI to display from the title

chilly yacht
#

i can

tranquil void
#

oh ok

#

my bad

chilly yacht
#

its just a nested panel

#

with things inside of it grabbed from other places

#

like 200 lines i think only

#

like heres the start of one

#

just import the title, if i want to add the body i can

#

i can change everything on the title text

tranquil void
#

do you uhh

#

understand what i even meant

#

i'll explain it better in a bit cause i think i'm confused

chilly yacht
#

not really tbh

opal aurora
# tranquil void wdym binding strings
{
  "example": {
    "type": "label",
    "text": "#text",
    "$use_this_binding|default": false,
    "variables": [
      {
          "requires": "($use_this_binding)",
          "$text_binding": "#this_binding"
      },
      {
          "requires": "(not $use_this_binding)",
          "$text_binding": "#that_binding"
      }
    ],
    "bindings": [
      {
        "binding_name": "$text_binding",
        "binding_name_override": "#text"
      }
    ]
  }
}
chilly yacht
#

do u mean modifications?

tranquil void
#

i see

opal aurora
#

the part #this_binding is an entire string

tranquil void
tranquil void
# opal aurora ```json { "example": { "type": "label", "text": "#text", "$use_thi...

would this work

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

or do i have to add the current_title variable to the definition from the start

#

yeah i need to insert it

opal aurora
#

only binding string comparisons in "requires" are allowed, for example: "requires": "($text_binding_name = '#sample_binding')",, when this #sample_binding is a literal string (# included)

tranquil void
#

im confused like always

#

so if i first insert the binding

#

i have this variable

#

"$afr_current_title|default": ""

#

then i do this

{
                "array_name": "variables",
                "operation": "insert_back",
                "value": [
                    {
                        "$afr_current_title": "#title_text"
                    }
                ]
            }
#

can i use that variable on the requires of other variables

#

or would it just give me nothing

#

i tested it and it gave me nothing

#

im like really bad w jsonui stuff

#

in simpler terms

#title_text is a hardcoded binding and i want to check it's contents inside requires

tranquil void
#

yeah i'm about to give up

tranquil void
# opal aurora no

so, sorry for insisting with getting help, but how would i do what im trying to do then

#

I'm trying to check if the first 5 characters of the "#title_text" binding are "afr:e"

#

and if they are, then i change variables

tranquil void
#

man i hate this

opal aurora
tranquil void
#

sad

#

so what im doing just can't be done then i assume

opal aurora
#

bindings can only change bindings and variables can change bindings but not vice versa

tranquil void
#

so first i'd have to assign the binding to a variable i assume

opal aurora
tranquil void
#

i don't want to use #visible because it disables the animations

#

basically

#

i can just insert everything as a new panel

opal aurora
#

like, if binding value equal to a title text, then show this form, else show another form

tranquil void
#

but it removes the animation

opal aurora
#

you can still add animations to it, if you specify "animation_reset_name": "screen_animation_reset" to form panel

#

here's how: set $screen_animations of the entire screen to either empty, or only "fade/alpha" animations, then, in each form content, add "animation_reset_name": "screen_animation_reset", and add custom "anims" to them

#

(animations i used here are from vanilla, only play when enter/exit screen)

tranquil void
#

meh im probably just going to give up

tranquil void
#

does the UI have a set max size

tranquil void
#

i think i figured a way to do it

opal aurora
tranquil void
#

is there's a default max size for the ui in general

#

cause doing math the UI is 480x270px

opal aurora
tranquil void
#

yeah im aware

#

lemme reword

#

Is the screen size a set value

#

or does it change with the game's dimensions

#

so if you have a phone is the UI size different from desktop

opal aurora
tranquil void
#

since size_binding is relative to the parent size

tranquil void
#

sad

opal aurora
#

size bindings only accept float numbers

tranquil void
opal aurora
#

but why did you need that complex solution

#

when i can use just %

tranquil void
#

i asked if the screen had a set size for a reason

#

i'm going to change the size binding later via bindings

#

so i need to set a default value

#

either way that's not my problem rn im dealing w something else

#

thx for all the help btw

hardy geyser
#
"long_form_dynamic_buttons_panel": {
    "type": "stack_panel",
    "size": ["100% - 4px", "100%c"],
    "offset": [2,0],
    "orientation": "vertical",
    "anchor_from": "top_middle",
    "anchor_to": "top_middle",
    "collection_name": "form_buttons",
    "controls": [
      {
        "[email protected]_button": {
          "collection_index": 0
        }
      }
    ],
    "bindings": [
      {
        "binding_type": "collection_details",
        "binding_collection_name": "form_buttons"
      }
    ]
  }```

guys I wanna ask is it possible to use this method to set the buttons property collection index which is >7 or something? or I must set for each?
hardy geyser
#

🤔

hardy geyser
hardy geyser
#

yea 👍

#

try nineslice it

tranquil void
#

heyall hwo do I convert a string/number to a float

#

the problem

{
    "binding_type": "view",
    "source_property_name": "(((((('%.10s' * #title_text) - ('%.7s' * #title_text)) * 1)) or 1) + 0.0) / 2",
    "target_property_name": "#size_binding_x"
}
#

#title_text is always "afr:e:0225:0200:Text"

#

when i do "/ 2" it gives me 0

#

when i don't do "/ 2" it gives me 1

upbeat frigate
#

Hello, quick question. Is json ui responsive? Similar to what you can do with html and css like that? Or it just depends on which device you put created it? Sorry for this question😅

hardy geyser
#

nuh uh its not css 😭

tropic badger
#

e.g 100%

hardy geyser
#

yep

#

it can only check pocket/pc I think

opal aurora
fathom mica
#

uh

distant gorge
fathom mica
sly gorge
#

What is $child_control?

fathom mica
narrow fox
#

How do I put a textField at the bottom of the form(Pic 1), and it does not move depending on what is above it(Pic 2)?

trim gull
dusty ether
#

How would I be able to get a prefix such as "§d§e§s§c" and have text in a button (server_forms) and edit the text after the prefix and make it smaller or something? Example: "Warps\n§d§e§s§cWarp Around!" but "warp around!" is smaller text than Warps

sly gorge
opal aurora
#

uh how can i explain that, de-arranged the codes?

narrow fox
#

How can I make the scroll bar at the bottom when opening the form?

steep crown
#

im making a plugin to display random images of dogs using an open API and displaying them via form buttom images

#

could someone please point me to a jsonui resourcepack to display this image across the whole form

#

< 3

steep crown
steep crown
#

my own learning does not seem to be working 😭

steep crown
vale turtle
#

So background?

steep crown
#

uh

#

yeah

#

i guess if thats all thats showing lmao

vale turtle
#

well why u using buttonIcon for that

steep crown
#

beacuse it uses a url call

#

its random images

vale turtle
#

There’s a file called form background or somewhat

steep crown
#

a random image every time

steep crown
#

is uses the "message" string

#

to get an image

#

nvm i got it lol

narrow fox
narrow fox
steep crown
#

lmaooooo

#

im horible w/ forms

#

this simple image thing took me 20 mins

narrow fox
steep crown
hardy geyser
last pollen
#

Can anyone tell me if I can make my element not reset using title? Like, it ignores any other string and stays on the screen

runic portal
#

can anyone help me with my notification that uses chatsceen to activate?

#

mine is so fucked up right now 😭

fierce cove
#

hello, can I add a custom color? like §a

lean estuary
#

how do i go on and find JSONUI developers?

runic portal
#

how do i get the middle of the screen as the X value in an offset animation

fierce cove
#

for the in-game chat for example

tropic badger
terse dock
#

can someone help help me with this its really weird and i havent changed any forms:

chilly yacht
#

don't cross post

harsh perch
#

I've taken a look through the Bedrock wiki about Ore-UI but it's still pretty confusing for me. Does anyone have a tutorial that I could take a look at?

harsh perch
#

I wasn't sure

#

JSON UI then

tranquil void
#

yeah you have to use json ui

#

ore ui is gonna be out in around 3 years

#

give or take two months

tropic tangle
#

No you cannot, you can add a "custom font" with glyphs but idk if that's worth it for you

opal aurora
# fierce cove ?

no, you can only use any of 26 available colors, or you can use multiple text elements with different "color" properties

lament kraken
#

which one is better?

opal aurora
#

for ease of reading, the first one feels better

glossy kraken
#

Hi how to decode javascript

glossy kraken
#

How I can see original Minecraft code

jovial hemlock
#

How can I make my server form button a pressed animation?

#

It's a custom button, and it only has hover

#

But not the pressed animation, anyone that can give me an example?

rancid pollen
#

why my hotbar are breaking in The Hive server?

pure thorn
#

I know it is not available yet, but what is so special about Ore UI?

glossy kraken
#

How can I do in phone

#

I am learning about ui please

#

Thnx and sorry for ping

chilly yacht
#

@tropic badger isn’t that the UI you made??

left yew
chilly yacht
#

he stole their UI i think

#

@zenith vortex

#

not sneaky

chilly yacht
#

Yeah it’s stolen

#

Just confirmed with the person who got it commissioned!

left yew
left yew
wind walrus
left yew
#

@zenith vortex next time you post skidded stuff please clean that monitor 💀

zenith vortex
#

I want learn xd

#

AM yes i am a kid

#

And i speak spanish

left yew
# zenith vortex I want learn xd

Yeah learn by putting in the work and not by skidding a pack and then proceeding to share it in a server where people will notice

zenith vortex
#

Man

zenith vortex
zenith vortex
#

Xd

left yew
#

@chilly yacht didnt u just confirm with the staff at the server

#

i think bros not telling the truth or somethin @chilly yacht

hexed briar
#

this is definitely json-ui moment of all time

left yew
#

ong

zenith vortex
#

I honestly don't know what's happening anymore xd

zenith vortex
#

A

chilly yacht
#

“i want to learn” then “i made it from scratch”

#

LMAOAOA

#

😂😂😂😂😂

zenith vortex
#

a

#

I only trying learn.... And is the true

chilly yacht
#

no you’re trying to steal

#

you’ve stolen their packs and are just editing them

zenith vortex
#

Mmm not

chilly yacht
#

mmm yes

#

if you’d like i can verify even more?

#

i can go ask for the file names and namespaces

zenith vortex
#

Okeu

#

Say this

#

Do u want more fotos ?

#

I created this

#

I don't modify nothing

chilly yacht
#

Well i’m asking now

#

So hopefully you’re not lying!

#

Even if you didn’t steal the code, you still stole the design 🙂

zenith vortex
#

Mmm

#

Not exactly

#

Xd

chilly yacht
#

😬

zenith vortex
#

I don't even know the package

chilly yacht
#

like @left yew said, we should just ban all code stealers

hexed briar
#

bro's legitimate a liability

chilly yacht
tropic badger
zenith vortex
chilly yacht
#

Like 60+ people work on each project

hexed briar
#

oh so basically a marketplace training program

chilly yacht
#

i think yeah

left yew
chilly yacht
#

yeah that

#

I imagine there’s a development team, and then all of the kids play their projects or something

opal aurora
#

my method:

// file: ui_common.json
{
  "scrolling_panel": {
    "$use_large_scroll_box|default": false,
    "variables": [
      {
        "requires": "$use_large_scroll_box",
        "$scroll_size": [ 15, "100%" ], // default [ 4, "100%" ]
        "$scrollbar_box_size": [ "100%", "100%" ]
      }
    ]
  },

  "scrollbar_box_image": {
    "size": "$scrollbar_box_size",
    "$scrollbar_box_size|default": [ 5, "100%" ]
  }
}
#

then, inside your scrolling panel, set $use_large_scroll_box to true, you can set $scroll_size to whatever you like

#

because i don't want every scroll box be that big

#

you need to add those codes to a fresh new ui_common.json file

#

what you will get is something like this

#

you can apply that same technique

#

here's inside container scrolling panel, as you like:

#

yes, it's required

#

there is, but "padding size" instead, "$scroll_bar_left_padding_size"

#

in your scrolling panel

#

no, put it in your actual scrolling panel, not here

#

wait

#

it's your scrolling panel

hexed briar
#

bro is vsauce

opal aurora
#

by default the size is [ 0, 0 ], but you can put negative value

#

did you put "sub-pixel" sizes?

distant gorge
#

Stopppp lolll

jovial hemlock
#

the mockups

#

and actually i learned too

#

is not that hard to do

#

idk how is this like 40 usd 💀

#

ik but is really easy json ui

#

we only have to read the documentation

#

i still need to read more to learn some stuff

#

wdym?

#

probably you have another control or panel offsets?

tropic badger
jovial hemlock
#

the server no

tropic badger
jovial hemlock
#

but they are easy to make

#

the json ui code

tropic badger
jovial hemlock
#

the assets

tropic badger
jovial hemlock
#

i mean its easy to get the photo edit it and now all u have to do is code the json ui

tropic badger
# jovial hemlock not really

For example i made this, its dynamic when searching too, for example it will take the whole width when it just one button but it must work on search bar too

jovial hemlock
#

yea but the assets where already there

#

they only needed the json code

#

yea i got that

tropic badger
jovial hemlock
#

im learning a lot

#

no, if i lower them 😏

#

since its not that hard to do, more simple than scripting

#

probably if they dont provide the assets

#

then yea

#

ill stay with the same cost

tropic badger
#

i know my worth, i can do complex uis, ive been doing this for year now, it doesnt matter

#

u just need to know ur worth

jovial hemlock
#

it will take you less time

#

if you read

#

the full wiki docs

#

and test every single property

#

thats why it will take you more time

#

you have to understand the concepts and why you do or paste stuff

#

i didnt know anything of json ui like 0% i started to read like for 2 days

#

and now look..

#

it doesnt take me too much time

#

and now i can actually learn faster from others code

#

😮

#

i suck at textures u.u

tropic badger
#

I suck at texturing 😦

#

that looks good, it looks like better containers

#

from java

#

is it "better containers"?

#

Very nice though i like them

narrow fox
mint lake
#

😘

opal aurora
#

i didn't think $scrolling_content_anchor_from and _to was set to top_left

opal aurora
#

it might be because it's already defaulted to top left

#

it's just to disable scrolling when content already fit (touch only)

#

use something like "scrollbar overlay"

#

but instead of overlaying on scrolling panel, just offset it outside the panel

#

there is one when using touch

#

usually scrollbar will be at the right of scroll panel and doesn't overlap on it, right?

opal aurora
#

im panicking because of your 4+ random pings

#

i forgot where to set scrolling content grid size

#

i don't have a pc turned on right now

limpid quarry
#

Man, I need to learn json ui better. All this default stuff looking rough.

opal aurora
#

because of missing properties?

oak verge
#

is it possible to separate label from input filed
or is there some work around
like duplicating the input and hiding the label in one and the input in another

hard patrol
#

What UI file contains the title screen's splash text?

blazing sonnet
#

Hi, does anyone know how to change the scale of a GUI? something similar to what this bar does

vital edge
opal aurora
hard patrol
#

Thank you! I am only going to move them :3 💖

opal aurora
#

ah, you want to move splash text offset

hard patrol
#

Yea ^^

#

I was also looking at changing the animation for the recipe unlock toast. I am not sure if it's hardcoded, but when I tried to change it, it plays the start animation when the animation ends.

opal aurora
hard patrol
#

Hmm, I'll try that.

opal aurora
#

i already ended the last animation, with end_event: toast_animation_finished, but still, weird

hard patrol
#

Yea. I was talking about that. It's strange. When I added my custom anim and added the "next" property, it plays the anim as it should, but for some reason the item & block icons don't shuffle.

opal aurora
hard patrol
#

Also, how'd you do that smooth animation? I wanted to do something similar for a while but never knew how people do it.

opal aurora
hard patrol
#

sure ^^

opal aurora
#

including that small crafting table icon, because java edition has that

hard patrol
#

Oh

#

if you want to ^^

opal aurora
#
{
  "recipe_unlocked_anim_start": {
    "anim_type": "offset",
    "easing": "out_quart",
    "from": [ 300, 0 ],
    "to": [ 0, 0 ],
    "duration": 1,
    "next": "@toast_screen.recipe_unlocked_anim_wait"
  },

  "recipe_unlocked_anim_wait": {
    "anim_type": "wait",
    "duration": "$display_time",
    "next": "@toast_screen.recipe_unlocked_anim_end"
  },

  "recipe_unlocked_anim_end": {
    "anim_type": "offset",
    "easing": "in_quart",
    "from": [ 0, 0 ],
    "to": [ 300, 0 ],
    "duration": 1,
    "destroy_at_end": "$toast_control"
  },
  "recipe_unlocked_popup/input_panel/label_panel/label_panel/label": {
    "line_padding": 0
  },

  "recipe_unlocked_popup/input_panel/label_panel": {
    "anchor_from": "left_middle",
    "anchor_to": "left_middle"
  },

  "recipe_unlocked_popup/input_panel": {
    "min_size": [ 165, "100%cm" ]
  },

  "recipe_unlocked_popup": {
    "size": [ "100%cm", "100%cm" ],
    "$display_time|default": 3,
    "$toast_control": "recipe_unlocked",
    "$offset_anims": [
      "@toast_screen.recipe_unlocked_anim_start"
    ],
    "anchor_from": "top_right",
    "anchor_to": "top_right",
    "modifications": [
      {
        "array_name": "controls",
        "operation": "insert_back",
        "value": [
          {
            "crafting_table_icon@toast_screen.item_renderer": {
              "size": [ 9, 9 ],
              "anchor_from": "top_left",
              "anchor_to": "top_left",
              "offset": [ 2, 2 ],
              "layer": 1,
              "property_bag": {
                "#item_id_aux": 3801088
              }
            }
          }
        ]
      }
    ]
  }
}
opal aurora
#

mine having same problem as well

hard patrol
#

Ohh

opal aurora
#

destroy_at_end literally breaks everything...

#

end_event must be specified like this to work properly:

    "$anim_event_name|default": "toast_animation_finished",
    "end_event": "$anim_event_name"
#

$anim_event_name is likely another hardcoded variable

strong raven
#

Someone know how to make the panorama of the loading screen or start screen dont move

#

to make show only one image?

opal aurora
#

end_event is unfortunately strictly required

hard patrol
#

Hmm, yea, something is weird. The icons stays at 1 icon and when the close sound plays, it plays again. Super weird.

opal aurora
#

some valuable(?) information

main plaza
#

Can the paper doll always be shown? Because it is only seen when you crouch down and make movements.

opal aurora
runic portal
mint lake
#

How do I create a search box in an action form?

#

I failed at it.

opal aurora
mint lake
opal aurora
#

either use a custom form for server-side searching, or vertical stack panel for in-form searching

opal aurora
# hard patrol hmm

i can confirm those events are very valuable indeed
there is no "close sound", but it now works properly

runic portal
#

any ideas on how to fix this? im using 2 panels, one for the tabs (small buttons) and one for the big buttons.
When i add another tab button it fixes the small buttons?

opal aurora
# opal aurora i can confirm those events are very valuable indeed there is no "close sound", b...

replace all old anim controls with these:

{
  "recipe_unlocked_anim_start": {
    "anim_type": "offset",
    "easing": "out_quart",
    "from": [ 300, 0 ],
    "to": [ 0, 0 ],
    "duration": 1,
    "next": "@toast_screen.recipe_unlocked_anim_wait",
    "end_event": "toast_animation_in_finished"
  },

  "recipe_unlocked_anim_wait": {
    "anim_type": "wait",
    "duration": "$display_time",
    "next": "@toast_screen.recipe_unlocked_anim_end"
  },

  "recipe_unlocked_anim_end": {
    "anim_type": "offset",
    "easing": "in_quart",
    "from": [ 0, 0 ],
    "to": [ 300, 0 ],
    "duration": 1,
    "end_event": "toast_animation_out_finished"
  }
}

further fixes may be needed

runic portal
#

also my whole ui bugs the fuck out when i resize the window.

main plaza
#

I made the custom paper doll but it keeps hiding :c

opal aurora
main plaza
#

I'm going to try it, I'll be back

main plaza
left yew
runic portal
#

thanks guys!

hard patrol
patent bramble
#

Is anyone here a big json UI nerd? (There’s a pack I’m trying to learn from but no matter how many times I read through it I can’t understand how it’s doing what it’s doing)

patent bramble
#

I don’t think this is simple enough to just compare them

#

but I’ll try

#

it’s using a lot of custom elements to manipulate player input

#

that’s as much as I know

trim harbor
#

can work bedrock ?

left yew
#

Personally im okay 🙂

patent bramble
#

all good

#

Guess I’ll have to try and get in touch with the creator

left yew
patent bramble
#

Ok? No-one needs to see if no-one has an answer

#

plus i managed to get in touch with the pack author

runic portal
#

how does nineslicing work?

left yew
#

Ight it's over used now icl

runic portal
#

bruh

opal aurora
#

in minecraft, it will be something like [ <left>, <top>, <right>, <bottom> ], everything between two opposite sides will be stretched out to fit it into any element size

#

there are two other accepted types, <non-array value> will specify for all 4 sides, and [ <horizontal>, <vertical> ]

tropic badger
#

Using 9 (Nine) Slice in Game Maker Studio 2

There's a NEW feature available today called 9 Slice. The idea isn't new, but GameMaker has added official support for Nine Slice, and it's awesome! Let's check it out and learn how to use it.

My video on the GMS 2.3.2.556 Patch Notes Update: https://www.youtube.com/watch?v=TFnvejq8sbI

My Exclusive...

▶ Play video
obtuse oyster
#

can i make modal form textfield accept multiline text? if so, how?

runic portal
#

can i assign variables based on what the form button text is?

graceful lantern
#

Yes you can with bindings

runic portal
runic portal
#

@graceful lantern ?

patent bramble
#

How would I go about “unlinking” the absorption hearts from the regular heart UI

weak lintel
#

before i dive into json ui, i need to know smth

#

can i use action bar to make a custom progress bar without breaking the action bar itself

chilly yacht
#

yes

#

well maybe

#

not sure if you can preserve actionbar text

weak lintel
chilly yacht
#

but you can title and subtitle

weak lintel
#

wait i thought it was the opposite

jovial hemlock
#

thats what i did

weak lintel
#

hmmm i just need to know if i have to remake the vanilla title ui to "act" normally if the title doesnt have string variable

#

and idk if im understanding json ui right either

chilly yacht
#

does anyone know the default size of labels?

tropic badger
chilly yacht
#

i meant the size of the panel

#

like "size":

#

because its not "100%" or "default"

tropic badger
left yew
#

This?

chilly yacht
#

but when i put that size it breaks

#

its just a normal label

weak lintel
#

im still not used to string formatting uhhh

#

how do i make title text to check for mcd_soul: text and get the number that comes after the text
and make the title to not show up if it has mcd_soul:

opal aurora
#

(literally)

#

what it means is it will automatically resize itself so no word wrapping by default

chilly yacht
chilly yacht
#

^ talking about collection indexes

opal aurora
#

?

#

use for what

chilly yacht
#

just if i want to fake a grid

#

so buttons that are common factors of 1 will be first stack, 2 is 2nd, 3 is 3rd, 4 is 4th

chilly yacht
#

wym?

opal aurora
chilly yacht
#

i’m just wondering if i can do arithmetic sequences

opal aurora
#

something like this?

chilly yacht
#

yes

opal aurora
chilly yacht
#

well kinda

#

it’s like

#

a^n = a^1 + (n - 1) * d

opal aurora
chilly yacht
#

well it returns multiple numbers?

opal aurora
weak lintel
#

you could make it compare 18 and 19

#

and 30 and 10

#

idk if itll work though lol

opal aurora
#

not that way...

weak lintel
#

@opal aurora i have a question

#

how do i set the image's texture (texture path) with actionbar text

#
{
      "advancement_icon_texture_path": {
          "type": "image",
          "$atext" : "$actionbar_text",
          "texture": "#texture_path",
          "layer": 1,
          "anchor_from": "left_middle",
          "anchor_to": "left_middle",
          "offset": [
              "4%",
              0
          ],
          "size": [
              22,
              22
          ],
          "bindings": [
              {
                  "binding_name": "($atext - 'adv.texture_path.')",
                  "binding_name_override": "#texture_path"
              }
          ]
      }```
#

this is what i have rn, i cant figure out what to do

weak lintel
#

currently pullinf my hair off rn

tropic badger
#

yes

opal aurora
weak lintel
#

hmmm the docs are vague so i dont know which and what to use

opal aurora
#
{
      "advancement_icon_texture_path": {
          "type": "image",
          "$atext" : "$actionbar_text",
          "texture": "($atext - 'adv.texture_path.')",
          "layer": 1,
          "anchor_from": "left_middle",
          "anchor_to": "left_middle",
          "offset": [
              "4%",
              0
          ],
          "size": [
              22,
              22
          ]
      }
#

didn't check if it works or not

weak lintel
#

i am so stupid

#

wait

#

wouldnt that work even if theres no 'adv.texture_path.'? like the ui receiving the path even if theres no 'adv.texture_path.'

#

meh its a whatever, ty either way

opal aurora
weak lintel
#

ye i figured

#

learning json ui is absolutely horrifying, how did you even make ui addon??

patent bramble
#

Is there any way to link json UI with entity files?

#

I wanna create buttons to change stuff in my pack and I can’t figure out how stuff like better bedrock does it

opal aurora
#

you use paper doll renderers to show texts from it via molang

patent bramble
#

But I would need to tie to render to the button somehow in the entity file

#

Rn the method im using as a check is a specific item in the offhand but I want to make my pack way more flexible

opal aurora
#

it must be related to ui to be able to be toggled

patent bramble
#

Welp that’s that i guess

opal aurora
#

you can use something like commands or tags instead

patent bramble
#

Now I’m going to back to trying to recreate a feature from someone else’s pack

opal aurora
patent bramble
#

I need to use json UI to manipulate inputs via controls

patent bramble
#

Cause I’m honestly thinking about saving up to comm someone to create 1-2 files for me

opal aurora
#

ui is not related to entities

#

as i said, use something like scripts or addons to manage, particles are totally not related to ui, you need server side settings

#

just server forms, not hud

#

and what bb did is not server related, it was a bunch of hud toggles, since it's client side and can't be saved

weak lintel
patent bramble
# opal aurora what

This is completely unrelated and besides all json UI I would do is confined to resource pack only

weak lintel
#

how tf do i use it nooo its so vague

#

do i just add the preserved title template onto the json

weak lintel
#

yeah thats what im trying to figure out

#

i just dont know what to do

#

its either just slapping the preserved text template in or editing the whole thing based on the template

#

i could try both but json ui itself is already killing me

opal aurora
#

im losing brain cells...

weak lintel
#

relatable

opal aurora
opal aurora
patent bramble
#

to be able to sort through chests quicker and easily dump my inv?

#

I’m not using this in PVP or anything

#

I’m a technical player and any efficiency I can get is gladly appreciated

#

I basically need help remaking this

#

This is the normal pack when installed. (Besides my custom Lang file) and I kinda just want to move stuff around

#

(I don’t like using packs seriously if they aren’t designed by me or made as a gift for me, which has never happened yet but eh)

#

I’ll prob make an alternative subpack that disables anything that would cause issues on servers

#

I just need help actually recreating the feature

weak lintel
#

GOD WHY IS THIS NOT WORKING

weak lintel
patent bramble
opal aurora
patent bramble
#

why is that OP specifically? All it does is save some time

weak lintel
#

its basically equivalent to auto looting

#

without a step (or extra?)

patent bramble
#

Ah so they’re classing it as flat out cheats 😔

#

I’d like to reiterate I will be making subpacks that disable certain features for server usage

#

My goal isn’t to create a cheats pack

#

just some general Utility for gameplay

#

Issue is I’m horrible with json UI so I’d need help setting it up

#

@opal aurora
Btw is there a way to extend/stretch the background of chests?

#

Not the most detailed but I kinda wanna include the UI within the bounds of the chest BG

weak lintel
#

p sure thats possible

#

(i just dont know how)

patent bramble
patent bramble
#

I’ve tried samples

#

They don’t help

#

found out I am way better at creating logic than creating code

#

my glaring weakness

weak lintel
#

based on that

patent bramble
#

I can read through a large pack and know exactly how it works but when it comes to creation / editing

#

I’m hopeless

#

(I’ve been trying for several years now ^^;)

opal aurora
patent bramble
weak lintel
#

ive been struggling with this one json ui in particular

#

for an hour

#

mad respect to JSON UI experts

weak lintel
#

i just decided to use actionbar

#

and now i cant set the bar length because bindings is not a thing for actionbar

#

someone save me from this hell

patent bramble
#

I just didn’t try in the first place lol

weak lintel
#

json ui people

#

how on earth do i make a custom bar with actionbar if i cant use bindings to change the clip ratio

#

well screw it im moving back to title

green ivy
#

Does anyone know how to change the position of the actionbar text in Minecraft?

weak lintel
#

how did the devs even make something really hard with json

weak lintel
#

hooray, there goes my first crash in json ui

weak lintel
#

a custom progress bar (not xp)

#

using clip

tropic badger
weak lintel
#

holy

#

thank you SO MUCH MAN

#

This is gonna save my life

tropic badger
#

tell me if u have a problem on it so i can update it, it kinda trashy rn

weak lintel
#

oh wait

#

does the bar reset if you make a title that doesnt start with bar.?

tropic badger
weak lintel
#

uh

#

your ui also crashed my game

weak lintel
#

should i just stop

small vessel
#

How do I put a specific texture on the button according to its name?
If anyone has a template or a wiki to help me I would be grateful

weak lintel
#

cant believe i couldnt figure this out yet

#

it has been hours

#

☠️

weak lintel
#

how was it

#

how was your sanity

#

yep its json ui

#

i tried that too but

#

i still couldnt figure out

#

did it work

#

at this point im thinking of just feeding the entire json ui documents into chatgpt

#

wtf actual?

#

this is not gonna be fun

#

the dude didnt even misunderstood at all

#

mate went into wrong website

#

☠️

hybrid aurora
#

Hello, is there a way to start a form's flipbook texture animation when i open the form ?

undone marsh
#

I feel bad for tlgm...

chilly yacht
#

why did you @ him?

lucid pewter
#

Is there a way to reduce look
sensitivity through json ui?

opal aurora
lucid pewter
opal aurora
#

i think there is a way to do that, similar to bows, but this channel isn't for it

tropic badger
chilly yacht
pastel terrace
#

respect.

chilly yacht
#

still stop @ him

opal aurora
opal aurora
whole jasper
#

@whole jasper

tropic badger
#

@tropic badger

rocky quail
#

@rocky quail