#How to show title when another title based ui is called
1 messages · Page 1 of 1 (latest)
preserve the title text and show it using custom json ui
to see if the title is the right one to preserve you can use bindings and flag variables to check if the content in the text contains what the flag variable has, e.g. "$title_one_flag": "§t§i§t§l§e§o§n§e"
then with bidings you will remove it from the title and its not the same as the old title text then you will not show the original title but you will show the custom one by doing the opposite binding
if i understand corretly this is what you would want to achieve on a basic level
the top bar uses 3 titles
top right
these were the only pictures i could find dont mind them being cursed
each one of them actually starts with §t§i§t§l§e§o§n§e §t§i§t§l§e§t§w§o and §t§i§t§l§e§t§h§r§e§e
i check the titles and then with binding do what i said above
in the script, because the title is only 1 command i have to update them in different ticks, so i use system.runTimeout(() => {},1 - 2 - 3 - etc..) for each one
so that they all get updated in different ticks
can you show me how you can check if something starts with a specific string?
would be nice. I cannot find a good real world example
@crimson raptor tbh idk why you made this that complex, these bindings for sure can be done in better and easier way
When I get home lol
I mean I did it when I was first starting with json ui
But idk a better way to do it
Like inside of the hud render for the title there’s a controller and it checks for the diff bindings with the flag variables and if it’s one of them it shows them inside of a different label
With different position and all