#crosshair
1 messages · Page 1 of 1 (latest)
pls teach me!!!
i dont know a lot about uis
only basics
a bit
a basic setup would look like:
"cursor_renderer": {
"bindings": [
{
"binding_name": "#hud_title_text_string",
"binding_name_override": "#text"
},
{
"binding_type": "view",
"source_property_name": "(not (#text = 'sneaking'))",
"target_property_name": "#visible"
}
]
}
Then in the BP you can just send a title with "sneaking" when the player is shifting and clear it when they aren't. If you add more UI on top of this you'd probably want to set this up in a more dynamic way, but this is a simple way to do it.
is that on hus_screen.json?
hud_screen.json?
yes
not work, also i tried deleted all the elements but why is it still visible?
wait it work a bit
@warm peaklike this?
oh hmm lemme take a look. They might've updated the vanilla screen with a binding in its parent
yeah they updated a lot of stuff just recently and the vanilla screen im using is probably outdated
soo u knwo other way to make it works?
oh yeah they did.. lemme rewrite the original code I sent you
Try this:
// hide crosshair/cursor for given string
"root_panel/curor_rend": {
"bindings": [
{
"binding_name": "#on_new_death_screen"
},
{
"binding_name": "#hud_title_text_string",
"binding_name_override": "#text"
},
{
"binding_type": "view",
"source_property_name": "(not (#on_new_death_screen or #text = 'sneaking'))",
"target_property_name": "#visible"
}
]
},
where i add that
root panel or cursor renderer element
how to make the title text invisible?
I would recommend searching the ui chat for #hud_title_text_string. There are a lot of examples for doing this
give me source
You can just put it in the searchbar for this discord
uhhh can u just tell me how?pls ehenever u want, i wont scroll and idk what keyword to use in searchbar
wait
i can just copy this in "hud_title_text" im stupid
AND IT WORKS
thank you
glad you got it working 🙂