#JSON-UI General

1 messages ยท Page 3 of 1

last pollen
#

any ideas how i can add the text from label or add an input from formAPI ?

hexed briar
#

#1067535382285135923

wispy cipher
#

they are asking for pocketmine stuff

hexed briar
#

It sounds like they are.

wispy cipher
wispy cipher
hexed briar
#

forms has all of that. that's why

#

still, it sounds like they are.

last pollen
broken trail
#

bruh

#

its ugly

wispy cipher
#

yes

#

php is ugly

#

json ui is ugly

#

php+json ui == mega ugly

last pollen
#

True

#

Any solutions ?

wispy cipher
#

simple, dont use php and dont use json-ui ๐Ÿ‘

#

๐Ÿ˜‚

worn oasis
#

๐Ÿ™

wispy cipher
#

lol

last pollen
#

๐Ÿ˜

hushed kettle
#

if i were to make a custom book would it go better if i modificated the server form screen or the dialog

#

im thinking i should use server form since its smaller than the npc interact

obsidian crest
#

and for now its easier to do server_form just cuz more ppl know how to do it

hushed kettle
obsidian crest
#

more people are basing their ui after javascript and npc has kinda become obsolete

#

just easier if your using the same method that most others are

hushed kettle
#

i can click them while they are behind my elements

worn oasis
#

the memory tier. How does that work?
Specifically, if i have Poison active, AND some of the textures fail. Will it fallback onto the Patriot Theme? Continuing until no more subpacks remain.
Im wondering bc sometimes my pack cross textures with other subpacks. Im trying to figure out why.

worn oasis
#

this is what happens in game sometimes. Usually after switching subpacks. So its gotta be the way the tiers work.

Here it is using an image from the poison pack instead of the image in the patriot pack. How can i fix this?

#

yeah once i restart the game it fixes but after switching packs it uses the highest tier pack first causing some of the textures to mix.

hexed briar
#

This basically game's stores caches.

#

The game will store texture caches and won't fully get rid of them after replacing another texture packs.

#

This could go same to development_*_packs folder, that folder is made specifically for making sure the game won't cache texture. although, sometimes that slipped and storing less cache instead.

#

that's why every resource packs with subpacks tell you to restart the game everytime you applied another subpack options.

#

there is no current way to fix this type of issue since it's literally the game fault itself, not users. although it could technically since you're doing something mojang haven't tried

#

unless mojang implement hot-reload for public (aka resource pack system that does not require you to restart the game not reloading the world. It is always reloading itself everytime, no cache saving. just, always reloading.)

worn oasis
hexed briar
#

It was the game related issues with caching as I mentioned.

worn oasis
#

its not possible to clear the cache? Would it be possible if i integrated a behavior pack into the pack?

hexed briar
#

well nope, they uses it's texture cache or debuff cache

#

what that is, is everytime you load up the game, the game will look up every applied resource packs and cache them

#

so it can loads texture flawlessly.

worn oasis
#

which memory tier is the default used pack? The lowest or highest?

#

so i just gotta restart the game to fix it

hexed briar
#

I don't think that matter though.

worn oasis
#

no the default pack question is unrelated to the caching thing

hexed briar
#

the default doesn't have memory tier since it's not subpack.

#

but I'll look into that in moment.

worn oasis
#

isnt one of the subpacks selected automatically when the pack is loaded?

hexed briar
#

you meant, the default subpack option?

worn oasis
#

yeah

#

i want to set the default selected pack to be the Monotone vanilla style one

hexed briar
#

well it doesn't seem that matter on which memory tier you have.

#

maybe try to put your desired subpack option in the lowest?

#

just checked it with my recent test pack.

#

if you want your desired subpack option to be default, you'll have to make that at lowest/bottom.

worn oasis
#

okay so the lowest tier is default then. Great.

#

i still haven't figure out the player list issue on the pause screen.
i gotta polish some more textures
i have to create the info screen
then i can release the pack

hexed briar
#

what I meant is, that.

{
      "folder_name": "test4",
      "name": "Arc-UI / DEBUGGING",
      "memory_tier": 1
    },
    {
      "folder_name": "test3",
      "name": "Arc-UI / Layout debugs",
      "memory_tier": 1
    },
    {
      "folder_name": "test2",
      "name": "Arc-UI / TESTING ELEMENTS",
      "memory_tier": 1
    },
    {
      "folder_name": "test1 (default)",
      "name": "Arc-UI",
      "memory_tier": 1
    }```
worn oasis
#

why are they all mem tier 1?

hexed briar
#

generated by manifest generators.

worn oasis
#

how does that work? i thought it had to increment by 1 for each pack?

#

oh

hexed briar
#

like I said, memory tier doesn't seem matter as long you put like, thousands of things that could potentially lag the game

#

memory tier could help with that

#

but since my test pack it's purpose is just test my uh, project

#

as you could read those names, memory tier doesn't seem matter to me

worn oasis
#

all i gotta say is, rip json ui in like 2 years

hexed briar
#

3 years

#

probably gonna take long honestly

#

but the hud_screen related stuff is definitely in backward compatibility

#

otherwise literally every marketplace maps and servers UI broke

worn oasis
#

i imagine json UI can still be modified after ORE UI releases. The screens wouldnt be used giving creators usage of those screens, but who knows at this point

#

i wonder if ORE UI would allow compatibility with JSON UI though. I mean i guess technically it has compatibility but hopefully when they release the ORE UI tools to edit they are compatibile with JSON UI that way creators can at least port their UI packs to ORE UI

#

a mc dev should rly be taking notes rn

hexed briar
#

Ore-UI might be uh, difficult to modify to say atleast.

#

They're html, with texture being sort of encrypted mess where every texture files has randomized names

#

since it's html/react, people could do many things what json-ui couldn't do. e.g implementing something that bad actor would do

#

Ore-UI runtime is a forked chromium, that where I'm concerned.

vapid root
#

Pretty late response, I'm on vacation. But yes this is server form being send over and over again to the client.
However things like scrolling panel will reset when doing this.

#

This is pretty much only usefull when you have a static page without any movement in it.

coarse torrent
#

what does the #sub_command property do? does it trigger commands or something?

worn oasis
worn oasis
#

bro still cant fix this stupid shit

#

it breaks more and more everytime i try to fix it

#

id remake it completely if i knew how to

#

this redinkulous

last pollen
#

Is it possible to have more than 1 custom NPC dialogue gui along with the vanilla one ?

worn oasis
#

thoughts?
Also, How do i get rid of the black box border around the craft toggle?

#

the Patriot theme is coming together nicely i must say.

terse marsh
#

How I can get basics of Json Ui?

wispy cipher
#

hello bot?

#

@limber quartz

#

hmm i guess its down

worn oasis
terse marsh
worn oasis
worn oasis
# terse marsh Get it. Its can be installed on low end laptop/pc and won't lag?

Also, learning JSON UI at this point is not worth it. The game is being updated to use ORE UI instead of JSON UI. Screens across the entire game are slowly being changed to the new system. Soon, JSON UI will be irrelevant. If you are creating mods or addons, learn ScriptAPI instead. However, if you insist on learning JSON UI. Know that documentation, and resources are very scarce. The only docs pertaining to minecraft can be found on wiki.bedrock.dev and even there it is all community built by testing. No actual documentation exists for it. Learning it will be a challenge as you have to figure it out on your own.

hexed briar
#

Json-UI might be irrelevant, but the backward compatibility will remain there. likewise, mojang aren't gonna ditch Json-UI without breaking legacy/marketplace maps that rely on Json-UI

#

Json-UI based UI on vanilla is still constantly getting updated, ranged from persona/skin screen to inventory screen and so on.

#

but it just we don't get any changelog of which UI elements get updated or any breaking changes that could potentially break the UI

#

Hell, we don't know if there is a new element type or not.

raven wigeon
#

what button is for the action form buttion in the server form file?

hybrid sierra
worn oasis
#

JSON UI is ass. Once my UI Pack is done im never touching it again.

obsidian crest
worn oasis
#

I enjoyed it at first. And now its almost complete at least the json ui part. So ill finish it up and ship it out to planet minecraft

stone coyote
#

whenever I think about ore ui being implemented, I just can't ressit the thought of people running ads in their addons lmao

#

although I don't think it'll be possible

hexed briar
#

yeah that is possible too.

#

ore-ui required internet to function, i.e making achievement work.

#

It's possible to find a way to dig and attempt to put weird ads and stuff

raven wigeon
#

Could someine help me in #1103046144780673134

#

Im really strungling haha

green grail
#

How to hide hud_screen with F1?

hexed briar
#

i suppose you press f1

#

actually I'm confused what does that mean.

hybrid sierra
hexed briar
#

are you wanted a button to hide GUI?

green grail
#

custom hud screen basically

hexed briar
#

your custom element doesn't get hidden when pressing f1?

green grail
#

I need to hide it with F1, right now it just hides the vanilla stuff

hexed briar
#

You'll need to put your elements in root_panel.

#

Or create hide gui bindings.

#

(alpha included because people still using hud alpha slider thing in video settings)

     {
        "binding_name": "#hud_visible",
        "binding_name_override": "#visible",
        "binding_type": "global"
      },
      {
        "binding_name": "#hud_alpha",
        "binding_name_override": "#alpha",
        "binding_type": "global"
      },```
green grail
#

on each element right

#

or can it be like a global binding

hexed briar
#

on each elements, but it'll be better if you put your own elements in root_panel since they're here by default. therefore it's "global binding"

#

which, shouldn't be time consuming on creating each element bindings just to hide your elements

green grail
#

yup got it working

#

Thank you Arc!

hexed briar
#

๐Ÿ‘

worn oasis
#

@hexed briar if i send you my UI pack, can you fix my pause screen player list issue? I cant get it fixed and and i cant ship the pack until i do.
Basically the issue with it is, the player list is free floating. Not anchoring to the top right. Its supposed to be anchored top right of the screen but it doesnt and it kinda all over the place, moving as the screen resizes.

#

ive tried anchoring it but i cant get it where i need it

hexed briar
#

well possibly. I could fix it later or probably now

#

still doing college project stuff atm

worn oasis
#

i dont want to intrude on what your doing, just whenever you have free time.

hexed briar
#

like I said, possibly.

#

it's your choice.

#

usually at bed time I just play some mindustry or half life because I'm bored

#

( because that is only my free time chair )

worn oasis
#

im uploading to medafire rn ill DM it to you

worn oasis
#

Arcdustry is literally the JSON UI god nobody can tell me otherwise.

hexed briar
#

no I'm just regular person who just wanted to help out.

worn oasis
#

my screen is empty...

hexed briar
#

h

wispy cipher
#

h

hexed briar
#

turned out there's 2 minecraft trial screen.

#

a screen where it showcase what minecraft is and prompts if you want to buy the game or not

#

mojang

#

what the hell are you drinking

#

1 trial screen, a actual screen instead of regular dialog or prompt is not enough?

#

jesus hell

#

now we have 2 trial screens, 1 are designed to looks like dialog even though it is actual screen, another was full screen instead of dialog

#

they're not even the SAME FILES

#

I hope I don't find another TRIAL SCREEN

worn oasis
hexed briar
#

I've already got trial screen working for first time.

#

I've rewriting the setting screens for 2rd time with pretty much all everything from vanilla

something seems odd.
why is vanilla requires 3 elements for button list in settings left panel

#

looking at 2 of them, there doesn't seem to be anything here.

#

is this mojang a way to troll people

worn oasis
#

bro the base game JSON UI code is fucking everywhere. Incomprehensibly Cluttered and redundant.

#

i added a padding between the background panels and now the stack doesnt work...

#

im not rewriting the settings screen

#

if you have an extra version i can use that removes the redundant garbage id rewrite that but the current one is just yucky

#

yeah the padding causes that to happen. I remove it and it works fine

#

like what

#

im using the pack icon as the base to set up the screen. But why does the padding mess it up?

broken trail
#

whats this padding element type?

hexed briar
broken trail
#

nothing

#

?

#

thats why it breaks

hexed briar
#

no element type either

broken trail
#

add here type: panel

broken trail
hexed briar
#

it if works, it works.

#

now I'm going back to having crisis with settings screen because why does mojang need 3 elements in one panel with 2 of them being empty'd

#

( those aren't pudding either, just empty elements )

worn oasis
#

i got it, i didnt set a type. i made it a panel and it worked

#

now i can start populating it with information

#

i gotta make the labels and images for everything bc ima put credits, changelog, socials, and general info about the pack into the screen.

#

im able to make long texts right? it wont fuck it up?

hexed briar
#

just did some research about win10_trial_convertion_screen and tabbed_upsell_screen.

the win10 one are for windows trial screen, and upsell one are for mobile.

#

basically if you're making that for win10 screen, mobile people won't see your screen.

worn oasis
#

im using the win10_trial_conversion_screen bc who tf playing the trial?

hexed briar
#

you don't realize that mobile has difference between screens?

worn oasis
#

i do.

hexed briar
#

only PC people gets your info screen while mobile doesn't.

#

you see the issue yet

worn oasis
#

thats one of the issues i have. it only happens on the settings screen. the resized buttons are messed up. Ill change the tabbed_upsell_screen to the same thing and put the button for it in the same place.

#

then add a binding to it to show the right one depending on platform

#

correct?

hexed briar
#

you don't have to add bindings, since it already hardcoded that way.

worn oasis
#

but i have to have the button visible at all times depending on the platform

hexed briar
#

Mobile > tabbed_sell_screen
PC > win10_thing_bruh

worn oasis
#

the pc button has to always be visible on pc and the mobile one visible on mobile

hexed briar
#

you don't get it

#

it is the same button ID

worn oasis
#

so i have to at least remove the #trial binding

#

then the button will show either screen?

#

the 1 button will show both screens?

hexed briar
#

well if people press the trial ID, mobile people gets tabbed sell screen and PC gets win10 screen. it is the same ID and hardcoded that way

worn oasis
#

oh okay so i just gotta copy paste the code from the win10 screen to the tabbed screen and its good?

hexed briar
#

Console should get tabbed sell screen aswell ( honestly I don't think trial exists in there )

hexed briar
worn oasis
#

they better get one of the screens lmao

hexed briar
#

don't copy and paste the entire elements

#

just reference them

worn oasis
#

wym?

#

how i do that?

hexed briar
#

reference is basically, you use @ and accord element to be used after element name.
I.e [email protected]

worn oasis
#
"[email protected]_screen": {
  "$screen_content": "win10_trial_upsell_screen.screen_content"
}```?
hexed briar
#

yeah

worn oasis
#

okay cool

hexed briar
#

you gonna have mobile testers lmao

worn oasis
#

i have my brother xD

#

but he isnt jailbroken so he cant download it and can only use the texture pack in a world

#

so no and yes i have mobile tester

hexed briar
#

iOS I see

worn oasis
#

nah he on android and lazy im on IOS

broken trail
#

one question, for what you need this screen, basically 2 screens for one thing?

hexed briar
#

android needs no jailbreak to test it.

worn oasis
#

so i cant do it, he can but isnt rooted is what i meant so he cant. He doesnt want to root bc its too much effort when it can literally take like 10 mins

#

he is trying to use zarchiver or whatever and cant get into the folder to put the pack in

#

we tried the .mcpack but that didnt work either

hexed briar
#

which, that is somehow even funnier since both screen are actual screen rather than dialog itself, just to make it like dialog.

worn oasis
#

yeah its a mirage, an illusion, a facade.

#

posers

broken trail
#

yeah I know but whats the purpose of this? do you want to crate something like there something like modal available everywhere I guess?

worn oasis
#

but as a creator i appreciate that i can override it entirely and have a custom screen

broken trail
#

because this button id can be used everywhere right?

hexed briar
#

mostly people probably go for showing UI information or probably the "music+" thing

hexed briar
worn oasis
#

im doing UI information and credits bc ppl dont read the text files in the pack

hexed briar
#

might gonna test text editor in there with cache screen on.

broken trail
broken trail
hexed briar
#

this also can be used to show your addon's information entirely rather modifying and using help screen honestly

broken trail
#

also editing these screens are really terrible idea because firstly; you need to remove everything from there and then add literally same things to two files

worn oasis
worn oasis
broken trail
#

then add custom toggle instead of modifying whole screen

worn oasis
#

i got alot of information to add i cant add more dialogs i can only modify existing screens

hexed briar
#

not really necessary to remove the whole screen if you don't make them not rendering from the referencer at all.

#

but I digress, probably best for optimization without creating more lags I suppose

#

if people want to do it, just let them be

worn oasis
#

the screen itself is a scrolling panel that will contain Credits, Changelogs, Information, and Social links.

#

i doubt ill need it to scroll but

broken trail
#

in this example 2 screens

broken trail
hexed briar
#

you could just create your custom UI file, and make 2 of those screens reference the same root panels from your custom UI, that is best way.

#

those 2 works the same anyways, and so shouldn't interfere anything that much

worn oasis
broken trail
hexed briar
#

it is only the way for all platforms to see your stuff rather than only PC or non-pc platforms

#

or even better don't use that screen at all and instead use it somewhere like settings screen or custom toggles

worn oasis
#

yeah ill reference the root panel in the tabbed screen. Once i get the win10 screen looking good.

hexed briar
#

it should look the same.

worn oasis
#

ik but idk how im gonna change it yet. i still got alot to add to it

#

this is my settings screen.

broken trail
#

and thats how I made it here

worn oasis
#

i did basic edits to it but im not rewriting it so the mobile bug where the buttons are smaller than the icon will stay indefinitely

#

idk how to do that bruh i got like half a percentage of experience with json ui

#

idk how to add a changelog popup dialoge thats what i wanted to do in the first place but i think it was Arcdustry that said i could just change the trial screen

hexed briar
#

I'm still in process of rewriting the entire settings screen and so far nothing seems goes wrong expect empty elements that does nothing, I feel those were debug tools that was removed in vanilla template.

worn oasis
#

bright side tho, i can enable spectator mode toggle lmao

broken trail
hexed briar
broken trail
worn oasis
#

is making a popup dialogue like that hard?

broken trail
#

not really if you know that you write

worn oasis
#

it seems easier to populate with content but idk how it works so

hexed briar
#

shouldn't be hard

#

just series of toggle with bindings that toggle elements visuals

worn oasis
#

idek where i would start tbh

broken trail
#

kinda complicated but its just index where default value is 0 or your custom one

hexed briar
#

yeah that too, did that twice before.

#

unfortunately it doesn't work with animations I've created to designed to run once it's pressed troll_lowres

broken trail
#

yeah for animations you need pressed type button

#

generally in one way it works

hexed briar
#

It only works in one way or another.

#

can't reset itself without breaking anim as whole

worn oasis
#

this is all very confusing, for now i will stick to the seperate screen. Whats the best way to about adding a list? just a label and the \n ?

hexed briar
#

\n works in label, so I suppose

#

actually, rawtext works in too.

worn oasis
#

if there is a better more effective way i would like to do that

broken trail
#

clip from 9 months ago :PP

hexed briar
#

clip from probably more than 6 months ago

#

the issue is where sometimes the button doesn't play it's anim when pressing for several times without resetting the screen

#

secondly, controller breaks it entirely since it can interact it.

#

so I have no idea but to scrap this entirely.

worn oasis
#

why is the labels hanging off the left side?

hexed briar
#

fonts.

#

increase your font size by I guess put [ "100%c + 4px", "default" ]

worn oasis
#

the font_scale_factor? i thought that was just a number?

#

i can put percentages in that?

hexed briar
#

It is value numbers

#

but font_scale_factor expecting much larger numbers rather than small.

worn oasis
#

? why is the left one showing the background image but the right one isnt?

limber quartzBOT
#
How to remove block shadow

There are three main reasons a block may have a shadow.

The first thing to add to prevent a shadow is the minecraft:material_instances component with face dimming and ambient occlusion turned off:

"material_instances": {
    "*": {
        ...,
        "face_dimming": false,
        "ambient_occlusion": false
    }
}

The second is to set the minecraft:light_dampening component to allow all light to pass through:

"minecraft:light_dampening": 0

The last thing to doโ€”if at this point there is still somehow a shadowโ€”is to ensure your block geometry does not clip into the ground, if you are using one. No element should go below y=0.

worn oasis
#

nvmd bro i missed the smallest detail

#

smh

#

i gotta add a back button somewhere. so mobile and console users can get back to title screen

broken trail
hexed briar
#

there is already a reset event.

#

and no, even waiting it to finish it's anims, the issue still occurs.

broken trail
#

ah yeah I can see

#

so its even worse

hexed briar
#

yeah, there's nothing I could do. besides I've already asked the same question about 6 months ago. so it is what it is.

broken trail
#

yea

#

in conclusion its buggy and not really usable in stable way

hexed briar
#

It's more like "you're not supposed to do that" kind of things.

broken trail
#

rather we (mojang) werent ready for things like this :DD

worn oasis
#

con one of you guys give me a like example dialogue popup?

#

because i dont have nearly as much as i thought i would and am not going to be able to populate this screen fully.

#

i think a scrolling popup is what i want idc if its more difficult to create than a seperate screen

worn oasis
#

how do bindings work?

#

do i need variables and bindings on both buttons (open and exit)?

small badger
#

Can anyone help me with json ui

viral oxide
worn oasis
#

when creating a popup dialogue, do i need bindings and variables on both the open and close button? Or do i just need bindings?

#

i dont understand bindings or variables but depending on what i need for a popup box i can figure it out

hexed briar
#

you want popup box?

#

*dialog

worn oasis
#

yes

#

i feel the content i need to fit would be better suited in a popup panel rather than an entirely different screen

#

but ive only ever changed vanilla code and dont really have an understanding of how to implement a custom dialogue like that

#

linkvertise is so ass bro

#

why do ppl use it

worn oasis
#

i wish i could understand anyone elses project.

#

i download packs to try and learn the code but idk how to actually navigate the files properly

small badger
hexed briar
hushed kettle
limber quartzBOT
small badger
#

I already read everything

worn oasis
small badger
#

will chip

#

It's not because I've read everything that I know everything

hard patrol
#

No!

#

Not a good way to talk to someone who wants to teach you. Of you keep up with that attitude you can forget being helped.

small badger
#

Mane is the truth! If I'm asking someone to teach me, it's because I don't know, then the guy comes and says I know everything will be chipped

stone coyote
#

Is there any way to edit tooltips?

#

I want to add some text that changes on account of some condition

wispy cipher
#

lang files maybe?

worn oasis
# small badger Mane is the truth! If I'm asking someone to teach me, it's because I don't know,...

nobody is going to teach you. You can use the docs to figure it out and ask questions as you learn. Nobody wants to do JSON UI let alone teach it. There is not much in terms of docs, mojang has terrible code, even if someone did teach it to you, it would still take a while to learn it. In terms of my last few messages, you said you had read the JSON UI documentation. If you read it and understood it then you shouldn't need a teacher. If you read it and didnt understand it, then you didnt read it. I suggest you just start messing with stuff and experimenting. JSON UI is a hard language to learn, teach, or use. I wish you luck.

stone coyote
small badger
#

Bro, yesterday I spent a long time testing it, almost arriving at what I want, 5 things are missing that I don't know

#

Which is like changing the texture of the background and the button, placing the button text on the side of the button and not inside, and leaving button 5 and 6 next to each other

#

And how to put the ui to be placed only in a certain form and not in others

worn oasis
#

Changing button and background textures are easy there is video for that bc its basic texture pack creation. Idk how to move the button text or if its even possible. Idk what buttons 5 and 6 are so i cant out my thoughts there. For the ui being placed in a specific place youd need bindings or to edit whole screens. And im not trying to be mean when i say โ€œif you read it and understood it, you dont need to be taught. If you didnโ€™t understand it then you didnt read itโ€ im just stating the fact that if you did read all of the docs and retained the information then a teacher isnt needed. But if you read it and didnโ€™t understand it then you should keep reading it until you do. I can link some videos for UI customizing but there is not much in terms of the code.

#

Today, I introduce you to the wild world of Minecraft: Bedrock Edition's JSON UI. Enjoy!

Timestamps:
0:00 - Intro
1:10 - UI Files
1:32 - Namespace
1:52 - Elements
2:32 - The Element Hierarchy
3:36 - Phrases
4:25 - "Controls" Property
5:12 - @ Copying
5:54 - Example File
7:24 - "Type" Property
9:08 - Outro

Playlist: https://www.youtube.com/play...

โ–ถ Play video

Hello Everyone
Welcome back to another Episode of texture pack tutorial โœจ๐Ÿ˜„
Today I'm going to teach you how to customize GUI ๐ŸŽจ
this tutorial is PERFECT for beginners who have no idea
with "newgui" folder.๐Ÿคทโ€โ™€๏ธ?๐Ÿคทโ€โ™‚๏ธ?
so Sit Down, relax, and enjoy the video. ๐Ÿ“บ

Also, I'm Going to Upload Video Every 1 Week.
so don't miss the next video ๐Ÿ‘

Subscrib...

โ–ถ Play video

I know that there isn't ANY documentation on how to actually utilize this in your addons. If you have any questions feel free to message me on discord or ask in the comments.

Download the project here:
https://drive.google.com/drive/folders/1LfQxJwwPxt-ScasqxsF2SLKnlI6tcAo5?usp=sharing

Here are some links from the video:
Bridge: https://editor...

โ–ถ Play video
worn oasis
#

those are what i watched first before jumping into it so i knew what to expect. Through asking questions, getting community input, and a little time i had a finished project. So while nobody will teach you JSON UI you can learn alot by asking the right questions.

small badger
raven wigeon
#

can we flip the hunger bar?

worn oasis
#

then you could do whatever you wanted to it

raven wigeon
#

so idk if we can flip it

worn oasis
#

yeah i dont think so then, because its created in the source code. You may be able to move it but i dont think you can flip it.

#

the panel type for it is custom so the renderer isnt available to use, if you created a behavior pack with it you might be able to do something with ScriptAPI

raven wigeon
worn oasis
raven wigeon
#

Or ltr
Left to right

worn oasis
#

oh you meant like mirror it, idk if you can without editing the base code or rewriting the renderer yourself

raven wigeon
worn oasis
raven wigeon
#

Allright

small badger
#

If you look closely, there was a black border around the yellow

#

How to fix?

hexed briar
#

you can only use what vanilla has offered.

small badger
#

๐Ÿ˜ฆ

gaunt briar
#

Hey guys. I was reading through this server and I just want to confirm that resource packs can't use ore-ui yet.

normal moat
obsidian crest
#

using titleraw would it be possible to have 2 different lines and it adjusts them to be next to each other with an image behind like the image above?

#

its just a quick mockup i made

wispy cipher
#

just complicated because json ui is stupid

#

well unless you want to use 2 of title/subtitle/actionbar/scoreboard

#

its pretty easy if you are on a server that isnt vanilla and you can send different scoreboard sidebar packets to each individual player

wispy cipher
#

And it probably won't change in the near future

hexed briar
#

Tooltips aren't grids, e.g text able to stack each others when another text is loaded. instead they're single text bindings that are hardcoded.

#

Therefore, it is not possible.

#

Although you can change it with ridiculous hard way, a c++ operator thing and stuff I suppose.

#

or better is do not give that items an enchanted info's and you should able to detect the text and change it's conditional rendering

hexed briar
#

otherwise, it won't work even with bindings, because subtitle does not have factory and therefore can't reload itself.

wispy cipher
#

yeah you basically have to run both the title command and the subtitle command every tick

#

which is bad

hexed briar
#

and don't even think that subtitle will always 100% work, since I've always facing subtitle not loading when doing that command for every tick.

wispy cipher
#

works for me

#

i use it and haven't had problems with it

#

lol

hexed briar
#

mine always does, title always load but subtitle always not.

wispy cipher
#

hm

hexed briar
#

even with rawtext also.

wispy cipher
#

i do it through the scripting api, maybe it doesnt work with commands?

hexed briar
#

There's several members here having exact same problem as mine before.

#

Could be.

wispy cipher
#

odd

hexed briar
#

back then we do classic command way, not gametest and stuff yet.

wispy cipher
#

lol i also used to do everything through commands but the scripting api is just better

#

i recommend checking it out

#

it's pretty easy to learn

hexed briar
#

yeah I've already done script-api stuff before.

#

actually in really early stage of gametest which before being renamed to script-api.

#

although I don't make maps and stuff anymore so, yeah. I stopped indefinitely.

wispy cipher
#

ah alr

halcyon spear
#

In the chat UI screen why does a new button I added not change at all even when nothing has been added the the icon

"test_image": {
    "type": "image",
    "size": [ 14, 14 ],
    "texture|default": "textures/ui/help.png"
  },
  "[email protected]_button": {
    "$button_content": "test_image",
    "$pressed_button_name": "example button name!",
    "$focus_id": "my.ExampleButtonId",
    //"$focus_override_up": "",
    //"$button_tts_header": ""
  },
#

Yes I did add it to the buttons and this is added to the ui

#

But the button acts like the chat settings

hexed briar
#

texture is not a variable.

#

you can't just add |default in property/non-variable.

#

and secondly, you don't have to add a image format in there. It'll work with regardless.

hexed briar
#

For standard textures, nope. but for button/dynamic related textures, yeah it will.

small badger
#

Like I take an image of me there if I put it can there be a problem?

hexed briar
#

since button/dynamic related texture has 2 exact same file name with different file format, one are .png and one are .json

hexed briar
small badger
#

Mine doesn't have any "botao" file

hexed briar
#

?

small badger
#

I understood

hexed briar
#

I have understand absolute nothing to your questions at all.

small badger
small badger
hexed briar
#

"did not quite understand" "I understood a a lot of what you explained"

ok.

#

anyways you wanna remove that border?

small badger
#

Yes

#

And I want to put a background image but it's difficult

hexed briar
#

put that "$border_visible": false in your button elements.

#

should hide the border entirely.

small badger
#

I'll try

#

He was

#

Now all that's missing is the bottom and removing that gray thing

opal aurora
halcyon spear
#

I believe you are talking about the extra comma?

opal aurora
#

Yes

halcyon spear
#

Has the code been corrected?

"test_image": {
    "type": "image",
    "size": [ 14, 14 ],
    "texture": "textures/ui/help.png"
  },
  "[email protected]_button": {
    "$button_content": "test_image",
    "$pressed_button_name": "example button name!",
    "$focus_id": "my.ExampleButtonId"
    //"$focus_override_up": "",
    //"$button_tts_header": ""
  },
small badger
#

Can anyone tell me how to change the background texture for an image?

halcyon spear
#

I believe you are talking about the background colour of a div like element?

small badger
#

I don't want to change the color

#

I want to change the background texture

#

like that blue one

obsidian crest
#

did you just slice the text and move one up or

small badger
#

?

wispy cipher
small badger
#

Someone help there please only these 2 things are missing

wispy cipher
halcyon spear
#

What's the max value for setting the size to fit the screen?:

"size": [
      2100,
      2100
    ],
wispy cipher
#

"100%"

small badger
#

it's fuck

worn oasis
#

explain the process of a popup dialogue to me. Idk if i need Bindings and Variables to make it show up and dissapear.

#

OR how can i create a hyperlink button to take users to like my youtube channel for example

worn oasis
#

but the feedback button takes you to a link? why can i just use the hyperlink button in common_buttons and set the link to my own?

#

why not?

left yew
worn oasis
#

well then the dialogue thing is my best bet for what i want to do but idk how to do that. Any help?

small badger
#

I ended up changing the image so it was transparent how do I fix it?

#

Or how to change the background without changing the Mine's own texture, it would be much better

small badger
#

Someone help me ๐Ÿ˜ฆ

worn oasis
#

"alpha": 0.5 <- 50% Transparency

worn oasis
#

if you clarified your qeustion and issue a bit better i may be able to help more.

small badger
worn oasis
#

the property should work on image types so idk why it wouldnt work.

small badger
#

Maybe I put it in the wrong place

#

What is the right location?

worn oasis
#

the images base element. So where you called the "texture": "<path>"

small badger
#

I didn't use "texture": "textures/ui"

#

I had asked and no one had told me

worn oasis
#

so how do you call the texture?

small badger
#

I changed it in the game

worn oasis
#

which texture did you change?

small badger
#

control.png

small badger
worn oasis
#

where is control used? do you know what menu screen its nested in?

small badger
#

Not only was I testing one by one until I saw which one changed the background of the form

#

It took a long time until I found

worn oasis
#

which screen is the form on?

#

are you using server_form?

small badger
#

Yes

small badger
worn oasis
#

gimme a few to find it

small badger
#

?

worn oasis
#

i cant find the control.png image or where it calls it. so im not sure

small badger
#

she is not called

#

Do not ask me why

#

Would it be here? Or is it in the other element?

worn oasis
#

but if you can find the panel its all contained in you can find the image of the background, it would look similar to this

"control_image_example": {
  "type": "image",
  "size": [ 100, 100 ],
  "layer": 3,
  "texture": "textures/ui/control.png
}```
small badger
#

Ignore my .json mania

worn oasis
#

i checked the server form idk where it is

worn oasis
#

i know

#

you may have to comb through other forms maybe settings common or something to find it but that is an example element of what the texture would look like in the code

small badger
#

But how would I put a background texture bro? By form_server.json

worn oasis
#

youd have to overwrite the panel containing all the elements and set your own up using the example i gave

#

basic stuff

small badger
#

I didn't understand

#

You're complicating things

#

๐Ÿ˜

#

Overwrite what?

worn oasis
#

the panel that holds the elements of your screen. so everything inside the pink box is apart of a panel somewhere... find that, and you can trace all the elements back and change them to fit your needs.

small badger
#

As I remember it only had 2 panel elements

worn oasis
#

then do some tracing and find each element. The background image should be somewhere in those 2 panels. If not in the panel explicitly then you can trace to find it.

small badger
#

How am I going to track

worn oasis
#

bro

small badger
#

is not helping

worn oasis
#

im not explaining the basics of reading JSON UI. Its easy to trace elements back. Its like impossible to explain how to comb through the code.

hexed briar
#

notepad editor

notepad editor

small badger
#

Mano example there in the second photo

worn oasis
#

yo @hexed briar shine some of your godly light on this man

small badger
#

"long_form_panel":

worn oasis
#

he needs jesus and your here in the flesh

hexed briar
#

my apologies I unfortunately can't, suffering from fever and vomit at the moment

small badger
hexed briar
#

no improvement

#

getting worse by worse everyday if I thinking about json-ui

small badger
#

So it gets worse ๐Ÿ™‚

hexed briar
#

I might be back in couple of days or weeks.

worn oasis
#

mans alergic to it

small badger
#

Oh I do not know

#

Ha I don't know

worn oasis
#

welcome to JSON UI; Where you never know.

small badger
#

But you know more than me

worn oasis
#

barely

small badger
#

I doubt

worn oasis
#

ive repurposed vanilla code while trying to learn it

small badger
#

This is what I'm doing I think

#

Bro help just put the background there my menu is 95% ready

worn oasis
#

i cant help you. You have to go through the code and find the fix yourself.

#

not every issue can be fixed by an external source

small badger
#

Man I won't find

worn oasis
#

keep looking

#

youll find

hexed briar
#

a hint: the background is dialog texture and located in common dialog elements.

#

other than that, I can't help any further just for my health sakes.

small badger
#

Dude I don't even know what you're talking about

#

Same thing happened when I was in the dark looking for a needle

hexed briar
#

that is only what can I help.

small badger
#

But I don't know where

#

Because from what I saw there is no more with "common dialog"

hexed briar
#

ui_template_dialogs.json?

#

Always check the element referencer and the file location where it was referred. It was just common json-ui standards

#

even I learned about that since day one.

#

I'm going to rest.

small badger
#

english > portuguese

small badger
hexed briar
#

that was common dialogs file in ui folder from vanilla resource pack template.

small badger
#

But what about him?

hexed briar
#

what "him"

small badger
#

I thought

#

The control image

hexed briar
#

that is the last hint.

#

I'm going to rest.

small badger
#

I will need to put this file in the ui folder as well

worn oasis
#

take it easy Arc, get well soon.

small badger
#

I went to test it, nothing changed ๐Ÿ˜

small badger
#

I understand nothing

#

Does anyone out there know that can help?

worn oasis
#

go do stuff so i can get to lvl 20 and use my adfoc.us link

hexed briar
small badger
#

I didn't understand almost anything you sent bro

#

You said a file name there I found the name of the image "Control" I tried to change the "Alpha": 0.0 it was not

hexed briar
#

which "control"

#

also these were very simplest and basic json-ui thing.

small badger
#

The background image of the menu

#

Six did not say how to change the background image of the menu

#

Six say something there, it just confuses me, it doesn't help me bro

hexed briar
#

who is "six"?

#

are you good??

#

I don't understand absolutely nothing what you've said and meant for. one, all you have to do is to keep finding the referencer where that image was originally located. two, that was the simplest thing ever since I've read the whole wiki, able to do what it said in one day

#

seriously can't you just, find it yourself even I give you a hint? like, it's not gonna help anything and making you even more desperate at asking people about how to do that thing etc. that right there is really simple. even someone here managed to find and use advantage of it in 2-4 days.

#

dialog element isn't not really THAT hard to modify. It just like walking into public park after you done couple of basic elements.

wispy cipher
#

^^

hexed briar
#

this IS the main reason why I don't wanna answer very common and over asked questions, since you could just scroll down abit more in the #1067869374410657962 forum and you should able to find the answer you wanted.

small badger
#

Bro, you gave the tip but I changed it there, nothing changed, it remained transparent

#

It's not despair I just want to finish soon

hexed briar
#

I gave you a tip about how to find the dialog element.

#

not the WHOLE finding background image thing. also about using referencing element aswell so you can find that

small badger
#

"control"

#

You said there, but I didn't understand, I just found the element

hexed briar
#

"I didn't understand"

#

that was your absolute fault for that.

small badger
#

Am I to blame?

#

So whenever I ask it will be the person's fault for not understanding the question?

#

Not even helping is helping, it's fuck to understand

hexed briar
#

do you even read.

#

like, how many time I said

#

and you just being "hey uh I don't understand" for every answers I said?

#

and you wanna blame me for not being helpful enough?

wispy cipher
#

fr ^^

hexed briar
#

if that so, you should actually go to any minecraft addon's server that based in your language.

small badger
#

How will I understand if I didn't understand what you wrote

#

?

hexed briar
#

my english is literally very understandable even a person who doesn't know english that much knows what am I saying.

#

and I don't even know what in the hell why do you able to write english but can't understand them

small badger
#

I don't have to know

hexed briar
#

well like I said, not my fault. rather than yours.

#

if you can't understand, that's on your.

small badger
hexed briar
#

Skill issue. EXTRAROFEL

small badger
#

Not everyone has the privilege of being fluent in English

#

But instead of helping so confusing

hexed briar
#

well that what was this discord server for, globally for english which you should know that every servers is based in english. if you don't know how to speak proper english, I suppose you should find another addons server that is the same as your native language.

small badger
#

Mano, there are some guys here from DC on this server who know how to explain and I can understand now, you're fucked if I don't understand, I basically screwed up

hexed briar
#

what are you trying to comply?

#
  • didn't understand your message at all?
small badger
#

Comply?

hexed briar
#

you just said "you're f----- if I don't understand, I basically screwed up" and "guys here DC on this server who know how to explain and I can understand now"

small badger
#

Bro, I just want to change the background of the form so I won't ask anything

hexed briar
#

This is equivalent to someone having a stroke.

#

I already told you how to find it.

small badger
small badger
hexed briar
#

so you basically just ignored all of my tips.

#

again

small badger
#

I tried to change the "Alpha"

hexed briar
#

I told you how to

  • find that file
  • use the element referencer so you can find that background element
small badger
hexed briar
#

you didn't mention about referencer.

#

And another tip that wasn't said

  • it is COMMON AND BASIC json-ui stuff, not even THAT hard to modify that dialog element
small badger
#

for you it's bro

#

For me, it is not difficult to understand that we are not the same

hexed briar
#

WDYM I SAID LIKE MANY TIMES

small badger
#

Said whateeeeee

#

The faster I get it the less I'll ask

hexed briar
#

I'll say the final time, if you don't understand it you're on your own. this one is even more BASIC.

#

main_panel_no_buttons > dialog_background_hollow_3

#

find it in dialog template file.

#

it literally directed to THAT dialog texture element.

small badger
#

Isn't Dialog Background Hollow 3 another texture other than the background of the menu?

hexed briar
#

it was dialog texture that was used in forms.

small badger
#

This texture is the edge bro

hexed briar
#

that is the texture

small badger
#

simple thing bro

worn oasis
#

I told him that im not explaining how to read basic json

hexed briar
#

I'm pretty much getting recovered very seriously from doctor, so yeah I may be active for quite sometime and go help out people here.

obsidian crest
#

is it possible to use live_player_renderer for an input panel, or no bc there isnt the right properties/bindings do i have to use paper_doll_renderer?

hexed briar
wraith bluff
#

alr, I've been looking around here for a while, and I think it's time that I started learning how to do this, I was just wondering how exactly people get like custom Action Forms etc, I saw something a little while ago about having like some $ namespace in the action form's title? I'm not exactly sure

#

is ti something to do with like testing if the action form's title is a certain string, then if it is, the ui uses a modified version?

hexed briar
#

Well. the $ next to name are identified as variables.

#

the same goes to #, which for bindings.

#

you can use and fetch what your forms title has with variables or bindings. and use them to conditional rendering and you should get the custom forms.

#

the same method everyone still using to this day.

#

Some people call it "flag" rather than conditional rendering, I suppose it's help better understanding. but I'd rather go to conditional rendering.

wraith bluff
#

ah ok. thanks. Imma try make something then

wraith bluff
hexed briar
#

that element does not have button.

#

so, probably not.

wispy cipher
#

messageform and modalform uses customform, actionform uses longform

hexed briar
#

well, I don't know anything about server forms since I've never make any server gui related things.

wraith bluff
#

heh ok

hexed briar
#

although I do know npc screen well, forms seems pretty much easier to do so

#

npc screen is absolutely hell. don't mess with it

wraith bluff
#

lmao ok, I won't

hexed briar
#

what can I say for npc screen is it's ridden with pretty much unnecessary stuff that barely works after attempting to modify one element.

#

you modify that button? another element broke.

wraith bluff
#

So with the custom forms, I can do like as the title maybe: $custom.1 (then the actual title), and then inside of the json ui I can like remove the $custom.1 part right? and then just set the forms display title as the "title" - $custom.1

#

idk if that was explained right lol

hexed briar
wraith bluff
#

Like the preserved text thing in the wiki

hexed briar
wraith bluff
#

nah but I mean like how they remove the string

#

from the title

hexed briar
#

oh, you can hide text if you want.

wraith bluff
#

cause it only does it if the title contains the like right string

#

then it removes that string from the whole title so that it's only like the uh part that you want to display

#

idk

hexed briar
#

you can do that if you get the correct operator.

#

i.e (#my_text - textthatishidden) something like that

wraith bluff
#

(#preserved_text - $update_string)

#

yeah

#

alr imma try make something (probably gonna fail horribly)

hexed briar
#

'' is required if you want to make them show.

wraith bluff
#

wdym?

hexed briar
#

normally in json-ui, to paste text correctly you'll need '' around them. ('hello there')

#

but this one without '' is essentially uh, abusing json-ui thinking that it is some sort of property that does not exist

wraith bluff
#

so just a string?

hexed briar
#

therefore it hides the string.

#

at the same time no errors and things works intended

wraith bluff
#

wut I'm confused lmao

hexed briar
#

well it is a string.

#

well it kinda hard to explain smh

wraith bluff
#

k lol

#

is there like a vscode extension that helps with json ui or somethin?

hexed briar
#

there was only json-ui snippets by "LeGend".

#

other like, showing proper UI and stuff. that does not exist anymore

#

people actually attempted to create proper json-ui stuff like that, eventually it got canned. if I remember correctly, there was 2 projects.

wraith bluff
#

too much stuff changing all the time?

#

or just json-ui being broken asf

hexed briar
#

probably changes every update. since mojang does not provide any changelog related to json-ui and therefore people (include myself) have to find bugs or anything that changes.

#

so probably why those projects are canned.

wraith bluff
#

ah ok

#

hmm so there's not really anything to learn from or to help?

hexed briar
#

well there is a wiki introduction about json-ui.

#

and some video that does the same thing but more understandable for beginners.

#

mojang never give us any documentation about how json-ui works whatsoever. everything from wiki is just people digging json-ui file and stuff

wraith bluff
#

yeah

#

hopefully ore-ui comes out soon!

hexed briar
#

yeah

wraith bluff
#

wait so if I want to make a custom form type, do I just copy the one that's already there, and then like add onto it?

#
"long_form@common_dialogs.main_panel_no_buttons": {
    "$title_panel": "common_dialogs.standard_title_label",
    "$title_size": [ "100% - 14px", 10 ],
    "size": [225, 200],
    "$text_name": "#title_text",
    "$title_text_binding_type": "none",
    "$child_control": "server_form.long_form_panel",
    "layer": 2
  },```
#

Pretty sure this is the main part for the ActionForms

#

though I'm not sure what I'm supposed to do now

hexed briar
#

can't add a new UI in json-ui, only modify.

wraith bluff
#

ah so do I have to add like bindings in there

hexed briar
#

yeah

wraith bluff
#

man this is gonna be confusing

hexed briar
#

that's json-ui for you everyone.

wraith bluff
#

heh

#

holdup so binding_name gets the value, and then binding_name_override sets the value to whatever you get from binding_name?

#

or the other way around

#

these docs are confusingly written

#

ah wait I'm supposed to be using a control right?

#

or wait

#

idk

#

huh

hexed briar
#

binding_name gets the source of binding functions, binding_name_override "probably" override what above from, binding_type is element type that bindings can modify to, source_property_name is operator modifier or strings, binding functions can be used in here too. target_property_name is where the string should be located or toggle the binding functions I.e hiding the element etc

#

mostly conditional rendering thing, binding_name, binding_type, source_property_name and target_property_name is required.

wraith bluff
#

so... I use source_property_name to edit the title string, then use target_property_name to set it?

hexed briar
#

yeah, if your source_property_name doesn't have operator, it should display just fine. although not toggle and stuff, just string.

although if you've using operator for that, that thing will check whenever it is correct condition or not. if it was, it should show you the element/hide the element ( depends on what you want of course )

wraith bluff
#

wait so can I like remove parts of strings and then set the title to the new one? so if I pass in like "custom Title Test", could I test if the title contains the custom part, and if it does, remove it from the string, then use the custom form with the title as just "Title Test"

#

or something

hexed briar
#

yeah you can.

hexed briar
wraith bluff
#
hexed briar
#

#form_text was the default form text

wraith bluff
#

ok

#

uh

#

hmm

wraith bluff
#

ok, I seem to have made something

#

when you have an actionform with oc_games_form as the title, it makes it invisible

#

fun

#

yo this is actually cool

#

oop

#

I just crashed my game

#

oof

#

lmao

#

it looks so shitty

#

well I mean at least I made something

hexed briar
soft oar
#

Does anyone know what's the ui element that shows this green button when selected + hovered?

hexed briar
#

pressed.

#

setting buttons uses toggle instead of button and acting like "button", essentially I guess fake button. It has 4 states. ( Idle, idle hover, pressed, pressed hover )

although the assets still using as default button textures.

#

If you're looking for that button texture, textures/ui/button_borderless_lightpressed I suppose.

soft oar
#

thank you.

small badger
halcyon spear
#

Where and what is the file for the uncategorised buttons on the top?:

wraith bluff
#

Hmm anyone know how grids work

#

Iโ€™m trying make a like button grid for an action form

#

And Iโ€™ve got all the grid settings, but then when I try add the button factory and collection stuff it just crashes my game

wraith bluff
#

ok well I got the grid to kind of work

#

but the grid_dimensions don't seem to be working right

opal aurora
#

it is not recommended to put factories inside grids

#

but grids inside factories

wraith bluff
#

i have it set to 2,2 but it shows a row of 6 buttons, and theres few buttons missing

wraith bluff
#

unless theres a different way

#

I also wanna make a custom button but idk how to do that

opal aurora
wraith bluff
opal aurora
#

just change icons size to a fixed value

wraith bluff
#

I'll send a screenshot of what it looks like right now

wraith bluff
opal aurora
#

maybe "automating" it...

#

with grid_rescaling_type

wraith bluff
wraith bluff
opal aurora
wraith bluff
#

i have grid_rescaling_type set to none

wraith bluff
opal aurora
#

higher (but before texts)

wraith bluff
#

Ik, I want to make it so the button is invisbble until you hover over it

#

that's why I wanted to make a custom button

#

but idk

opal aurora
#

ah

wraith bluff
#

rn it's just the grid

#

focusing on that first

#
"custom_dynamic_buttons_grid_panel": {
        "type": "grid",
        "size": [
            "100% - 4px",
            "100%c"
        ],
        "offset": [
            0,
            0
        ],
        "grid_fill_direction": "horizontal",
        "grid_dimensions": [
            2,
            2
        ],
        "grid_rescaling_type": "none",
        "anchor_from": "top_middle",
        "anchor_to": "top_middle",
        "grid_item_template": "server_form.custom_dynamic_button",
        "factory": {
            "name": "buttons",
            "control_name": "server_form.custom_dynamic_button"
        },
        "collection_name": "form_buttons",
        "bindings": [
            {
                "binding_name": "#form_button_length",
                "binding_name_override": "#maximum_grid_items"
            }
        ]
    },```
#

it's weird cause I have grid_dimensions set to 2,2

#

shouldn't that make it only have two rows and columns

#

but it's showing 6 columns

#

or something idk

#

and when I set the grid_fill_direction to vertical, it just stacks all the buttons on top of each other in one grid slot

#

I probably have it set up wrong idk

opal aurora
wraith bluff
#

it like fills it right, but it doesn't follow the grid_dimensions

opal aurora
#

i don't think "factory" inside "grid" elements are valid

wraith bluff
#

so I get a row of 6 instead of 2

wraith bluff
#

maybe the collection is wrong?

opal aurora
#

maybe the content log gui might help you

wraith bluff
#

I have it on

#

not getting anything from it

opal aurora
wraith bluff
#

it's there

#

"collection_name": "form_buttons"

opal aurora
#

ok..

wraith bluff
#

don't know what that does tho

#

is it the grid_item_template?

#

hmm

opal aurora
#

your idea is almost identical to this (from store_item_list_screen.json):

#
{
  "store_offer_grid": {
    "type": "grid",
    "size": [ "100% + 2px", "100%c + 4px" ],
    "grid_rescaling_type": "horizontal",
    "grid_item_template": "store_item_list.store_offer_grid_item",
    "clip_state_change_event": "$store_factory_clipping_event",
    "$store_offer_grid_prefix|default": "list",
    "$store_offer_grid_collection_name|default": "list_collection",
    "collection_name": "$store_offer_grid_collection_name",

    "$store_offer_grid_bindings|default": [
      {
        "binding_type": "$store_factory_collection_details",
        "binding_collection_name": "$store_factory_collection_name",
        "binding_collection_prefix": "$store_factory_collection_prefix"
      },
      {
        "binding_type": "$store_factory_binding_type",
        "binding_collection_name": "$store_factory_collection_name",
        "binding_name": "#max_grid_offers",
        "binding_name_override": "#maximum_grid_items"
      }
    ],
    "bindings": "$store_offer_grid_bindings"
  }
}
wraith bluff
#

hmm

#

holdon lemme pull that up

opal aurora
#

ignore clip_state_change_event, it's not for server form screens

#

from there you can dynamically change maximum_grid_items instead of grid_dimensions, which is worse

wraith bluff
#

eh

#

wait what does grid_rescaling_type do?

#

is that like the size of the grid slots ot like the amount of slots

#

or whatever

opal aurora
#

always from top and from left

wraith bluff
#

but like what does it do

opal aurora
wraith bluff
#

wait so should the grid_item_template be different from the button

#

cause I have them both the same

#

or

opal aurora
wraith bluff
#

here:

"custom_dynamic_button": {
        "type": "panel",
        "size": [
            96,
            96
        ],
        "bindings": [
            {
                "binding_type": "view",
                "source_control_name": "image",
                "resolve_sibling_scope": true,
                "source_property_name": "(not (#texture = ''))",
                "target_property_name": "#visible"
            }
        ],
        "controls": [
            {   
                "button": {
                    "type": "button",
                    "default_control": "button_hidden",
                    "hover_control": "button_hover",
                    "pressed_control": "button_pressed",
                    "locked_control": "button_locked"
                }
            }
        ]
    }```
wraith bluff
#

but that's the button

#

do I need to add stuff for the grid in there

opal aurora
opal aurora
wraith bluff
#

ye

opal aurora
wraith bluff
opal aurora
#

example: [ "50%", "100%x" ] to make a grid with 2 columns

wraith bluff
#

but that's the button isn't it?

#

that'll make the button like not square

opal aurora
#

it should be square

wraith bluff
#

uh

#

wait

#

hm

opal aurora
#

100%x is 100% size of the x value

wraith bluff
#

should I make seperate things for the grid_item_template

opal aurora
#

no

#

everything inside only one grid_item_template control

wraith bluff
#

no but I mean

#

rn I have the grid_item_template as the button

#

should it be like a different thing

#

seperate from the button that I'm putting in afterwards

opal aurora
#

no

wraith bluff
#

so what ur saying I change the size from 96,96 to 50%, 100%x on the button?

#

this stuff is confusing

wraith bluff
#

alr

opal aurora
#

or you can change the x value to something smaller in percentages, like:
33% for 3 columns grid
25% for 4 columns grid

wraith bluff
#

why would changing the button fix the grid tho?

#

now I just have two massive buttons

opal aurora
wraith bluff
#

this is what 96 looked like

opal aurora
#

instead of 50%

wraith bluff
#

ok ig

opal aurora
#

those 2 massive buttons are intended, except if you want to have the "y" value smaller

wraith bluff
#

yeah but the grid still isn't working

#

I have it set to 2 rows and 2 columns

#

so why are there 5 columns

#

is it like stacking all of the buttons in one column or somethin?

#

pain

opal aurora
# wraith bluff

if you want to have only 2 columns, you need to override y value

#

(it means you can't get square buttons)

#

except if you limit grid panel size

#

so try: [ "50%", 40 ]

wraith bluff
#

what the

#

well then what is the point of grid_dimensions

#

doesn't that have the rows and columns?

#

why doesn't it do anything

opal aurora
#

while "maximum_grid_items" does not like "grid_dimensions"

#

"maximum_grid_items" make grids dynamic

wraith bluff
#

ohh

#

so if I use maximum_grid_items then grid_dimensions doesn't work anymore?

halcyon spear
#

What's the button is for:
"namespace": "realmsPlus_landing",

#

button.realmsPlus_landing?

opal aurora
#

how those 2 work are completely different

opal aurora
halcyon spear
opal aurora
halcyon spear
#

Could you add the nessasery content to this button so is to hide when another UI is overlapped? Also add any button I'd:

"button@common_buttons.light_text_button": {
    "$pressed_button_name": "button.main_menu_button",
    "$button_text": "Example",
    "anchor_from": "center",
    "anchor_to": "center",
    "size": [
      100,
      100
    ],
    "offset": [
      0,
      0
    ]
  },
opal aurora
#

the game should automatically "un-render" previous screen ui

halcyon spear
#

It does not

opal aurora
#

if screen changes while "force_render_below" is set to false

halcyon spear
#

"hud_screen": {
"always_accepts_input": true,
"render_only_when_topmost": false,
"$use_loading_bars": false,
"$screen_animations": [],
"force_render_below" : false
}

opal aurora
#

wait, there is more

#

"render_only_when_topmost"

#

(this must set to true)

halcyon spear
#

The button is still on screen when these properties are here:

"hud_screen": {
    "always_accepts_input": true,
    "render_only_when_topmost": true,
    "$use_loading_bars": false,
    "$screen_animations": [],
    "force_render_below" : false
  }
#

Text on screen and an image hides but not the button

opal aurora
#

i just see nothing wrong...

#

is force_render_below inside pause_screen or any other similar screens?

halcyon spear
#

I just unexpectedly for the problem!

#

What's a button I'd that will work?

opal aurora
#

no

merry pike
#

Hi can get selected item name in json ui?

hexed briar
#

light_text_button is not glyph and therefore does not contains $button_content components.

halcyon spear
#

Is this better?:

"button@common_buttons.light_text_button": {
    "$pressed_button_name": "button.main_menu_button",
    "$button_text": "Example",
    "anchor_from": "top_center",
    "anchor_to": "top_center",
    "size": [
      16,
      16
    ],
    "offset": [
      0,
      0
    ],
    "button_mappings": [
      {
        "to_button_id": "$pressed_button_name",
        "mapping_type": "pressed"
      }
    ]
  },
#

The button doesn't quite redirect to another UI id

#

How can I also make my own button redirect to a new UI?

hexed briar
#

simple, you can't.

#

you can only modify the screen, not to create them.

#

you can modify screens and make them look new and just it.

halcyon spear
#

Can I just change the realms file screens?

#

If so what's it's redirect I'd?

hexed briar
#

just look at screen that has one of those.

#

and I don't think you can change realms screen, likewise you'll break something that mojang doesn't want you to do.

last pollen
#

my first custom ui !!!

wispy cipher
soft oar
#

hey guys, what is the element name and the texture path of the background?

hexed briar
#

They're dialog 3.

#

The same dialog that was used in server forms.

#

the texture are ui/dialog_background_hollow_3

lean nexus
#

is it possible to change the offset of the hotbar slots? like i want the 1st slot in the middle or something like that, is it possible and how?

rapid barn
#

How to make the sound with loop?

"custom.sounddd": {
    "category": "player",
    "sounds": [
      "sounds/mob/player/customsound"
    ]
  }
hexed briar
#

you can't.

#

not possible.

grizzled crypt
#

you could POSSIBLY make it possible

#

by using gametest

#

you would just have to ask, basically get the length of the sound, convert to ticks ( length * 20 ) then make a function that repeats the sound every length of ticks

grizzled crypt
#

could prob just ask in #1067535382285135923 and youd get an answer

#

like an auto music player basically?

last pollen
#

Every image has to have something like this. (If you want to expand it from it's normal size)