1. mTrX

    mTrX Scavenger

    Can anyone confirm that fadeIn is not working if you have 2 Elements for example tied to Overlay parent with different names, both set to fadeIn = 1.
    Somehow it skips the first container, it's instantly visible, and the second container is fading. 1 container only works fine, 3 containers: 2 won't work, 1 is fading fine.
     
  2. mTrX

    mTrX Scavenger

    Can anyone confirm this or am I doing something wrong? fadeOut seem to work fine, but fadeIn is bugged if you have more than two elements shown. Tried multiple ways, but 0 success.
     
  3. JoeSheep

    JoeSheep Master Researcher Plugin Developer

    Seems to be working fine for me with 2 containers. I've however noticed that fadeOut is a little odd, with it fading out then reappearing for a split second.
     
  4. mTrX

    mTrX Scavenger

    Mind to show me the UI json for your example? It's still not working for me. Box 1 pops up without fading while box 2 is fading normally.

    Here's mine:
    Code (Text):

    [
      {
        "name": "box",
        "parent": "Hud",
        "components": [
          {
            "type": "UnityEngine.UI.Image",
            "sprite": "Assets/Content/UI/UI.Background.Tile.psd",
            "material": "Assets/Icons/IconMaterial.mat",
            "color": "1 0 0 1",
            "imagetype": "Simple",
            "fadeIn": 1.0
          },
          {
            "type": "RectTransform",
            "anchormin": "0 0.9",
            "anchormax": "0.1 1"
          }
        ],
        "fadeOut": 0.0
      },
      {
        "name": "box1",
        "parent": "Hud",
        "components": [
          {
            "type": "UnityEngine.UI.Image",
            "sprite": "Assets/Content/UI/UI.Background.Tile.psd",
            "material": "Assets/Icons/IconMaterial.mat",
            "color": "0 1 0 1",
            "imagetype": "Simple",
            "fadeIn": 1.0
          },
          {
            "type": "RectTransform",
            "anchormin": "0.3 0.6",
            "anchormax": "0.4 0.7"
          }
        ],
        "fadeOut": 0.0
      }
    ]
     
    Last edited: Apr 22, 2017
  5. JoeSheep

    JoeSheep Master Researcher Plugin Developer

    Well, you can take a look here: GUI Announcements for Rust | Oxide. But I don't actually call it directly with JSON and instead use RustCUI.
     
    Last edited: Apr 22, 2017
  6. Wulf

    Wulf Community Admin Community Admin Oxide Developer

    Tsk tsk! Why call it directly?
     
  7. JoeSheep

    JoeSheep Master Researcher Plugin Developer

    Is that a question for me? :p
     
  8. Wulf

    Wulf Community Admin Community Admin Oxide Developer

    I misread your post, ignore! :p
     
  9. mTrX

    mTrX Scavenger

    I don't call it directly either, the CUI is an awesome helper class, but I made my own UI class for my purpose :). It's building up the json string itself. I get some neat results, just the fadeIn thing is bothering me ...

    [​IMG]
    [​IMG]
    [​IMG]
     
    Last edited: Apr 22, 2017