#How to show title when another title based ui is called

1 messages · Page 1 of 1 (latest)

shell jetty
#

I have done my system that allow me to show a lot of ui stuff but i work like array where i put ui elements and once in a tick it call all ui elements with same id but it cause problem with title command. If u know how to move my sistem from title to action bar or another way to solve this problem I'll be very thankful

crimson raptor
#

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

crimson raptor
#

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

vivid nexus
#

would be nice. I cannot find a good real world example

desert bridge
#

@crimson raptor tbh idk why you made this that complex, these bindings for sure can be done in better and easier way

crimson raptor
#

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