1. Hi,

    How to check - some CUI is open or no by player? Unfortunatly player can open more then one gui by command. I tried to research player object but it so large.
     
  2. Wulf

    Wulf Community Admin

    If a GUI from a plugin is being opened more than once, then they aren't handling it right. You'd need to store each GUI in a dictionary and destroy all old instances when a new one is called.
     
  3. There is no way to make the gui move though is there? Maybe like scrolling text or like anything like that
     
  4. Wulf

    Wulf Community Admin

    You can move it by updating, but no there is no actual animation in the Rust CUI as far as I know.
     
  5. Would it lag trying to update a cui fast?
     
  6. Wulf

    Wulf Community Admin

    It wouldn't be ideal, and it would likely decrease performance.
     
  7. Oh clear, that is not good solution i seem. Is good to add any structures/keys for player object? For example Player.GUI = True and change/check that.
    [DOUBLEPOST=1459943935][/DOUBLEPOST]
    I saw Cui code, it doesn't support Scrolling, but Unity has https://docs.unity3d.com/462/Documentation/ScriptReference/UI.Scrollbar.html I'm not sure about refresh that from remote server. If upload full menu and not refresh it by scroll down/up. It might work. (not sure)
     
  8. Wulf

    Wulf Community Admin

    There are a few examples of handling destroying the CUI and such in most of the plugins by me or @Nogrod that provide GUI, I'd take a look at those. Vanish, InfoPanel, etc.

    Any of the normal Unity stuff will not be usable, only what Facepunch provides via the Rust CUI, which is the same as what Oxide wraps.