Animation on CUI?

Discussion in 'Rust Development' started by pdr, Feb 27, 2018.

  1. pdr

    pdr

    Hi, everyone. I've a plugin, that uses Rust cui, it shows a panel, when player triggers some things and i was thinking is it possible to make a smooth appearing and disappearing animation for that button, like popups above healthbar (build priv, workbench, comfort, etc.)

    Tell me if u know smth about this, tnx.
     
  2. Hello, you can use timer for it and the opacity of the color option "1.0 1.0 1.0 1"
    It should work
     
  3. pdr

    pdr

    Yo, dude i know, how to make fading cui, its not about that...
    As i wright above - if there are a way to make animation LOOK LIKE popups above hp/food/hydration bar?
     
  4. You mean the same animation like when you go in and out of tc priv?
     
  5. Wulf

    Wulf Community Admin

    There is no native animation in Rust's CUI, so you'd have to use a timer and basically spam the client with images to appear as if it's animated.
     
  6. pdr

    pdr

    Oh, i guess, it will cause lags both on client and serv, if it will be atleast 30 frames for that image, so nah, dats not the point, but thanks everyone.

    Oh, i just got a thought about what if ill spam not images, but the size of panel? Ill try this and watch, if its gonna lag.
     
    Last edited by a moderator: Mar 1, 2018