Updating view of button in custom menu?Solved
Hello everybody!
Can anyone tell me, what i need to do for updating color of existing button in my cutom menu? Is this real in general? Or it's necessary to redraw whole menu instead?
Thanks in advance!
Redraw the button I suppose.
Any CUI needs to be re-sent/redrawn to be updated on the Rust client.
5b6ed4c9ac8e4.jpg misticos
Redraw the button I suppose.

Thanks for the answer! But if the button is in complex CuiElementContainer? How i can identificate one specific button?
Sorry for stupid questions, the last time I programmed plugins was a long time ago.

5df88518bef43.png Wulf
Any CUI needs to be re-sent/redrawn to be updated on the Rust client.
Thanks! At this moment i do exactly what you said! First - i destroy created UI, next - i do some changes in variables, and last - draw new menu depends on new variables values. Works perfectly! Thanks!
Locked automatically