1. Hi!

    Reading through the source code for RustCUI I can't directly see any way to update a particular UI, but was curious if any one else knew something I didn't. Is it possible to update a UI instead of destroying it then creating it again? For example changing a colour or font size etc.


    Cheers!
     
  2. Wulf

    Wulf Community Admin

    You'd update it the same way you created it, it has to get sent to the player each time.
     
  3. Yeah that's what I currently do, however with players that don't have such amazing connections it can sometimes result in a 'blank' frame I guess you would call it. I guess that tweaking the timing of destroying the old UI could possibly be adjusted.
     
  4. Wulf

    Wulf Community Admin

    Take a look at @Nogrod's plugins, he does a great job at optimizing GUI sending.
     
  5. He has a very interesting way of utilising RustCUI in GUIShop, quite different to how I use it but I can definitely see how that would make the experience of using such a GUI very smooth. It is very interesting, now that I understand so much more about C# (compared to knowing next to nothing but having little experience coding in the past when I first started) to see how others use things differently and seeing how much I can condense down my plugin and optimise the speed of it by changing things up a little.