#changing the offset of the UI element depending on other UI
1 messages · Page 1 of 1 (latest)
U can't check if the air bubbles are visible cus they always are
in that case, i should be using texts for it, like titles ( i will use that anyway )
like with some scripts, i can detect if the player head is in water or not,
Then you can use stack panels to fake offsetting it
na, I'll just use 2 different messages to render it correctly, 0 means above the hunger and 1 means above the air bubbles,
To change offset you need to use anchored offset.
cant you check if they are on screen? I dont know if its just a texture change or smth tho
so if it is just a diff texture change then check what one is being used? and if oene certian one is being used then change the offset?? Im not good at json ui so this might not be correct by miles
There are bindings that dictates wether they are visible but they are completely useless since it's always true so you can't actually detect them.