1. Hello.
    Want modernize InfoPanel [make design for my server].
    Using Rustcui tool: RustCui - Editor
    Press "export" and see too hard for me code :D
    RustCui:
    Code:
    {
        "name": "4554-589b-6971",
        "parent": "Hud",
        "components": [
          {
            "type": "UnityEngine.UI.Image",
            "color": "0.48 0.48 0.48 0.55"
          },
          {
            "type": "RectTransform",
            "anchormin": "0.112 0.009",
            "anchormax": "0.177 0.046"
          }
        ]
      }
    And InfoPanel config file (for ex. bottom left dock):
    Code:
      "Docks": {
        "BottomLeftDock": {
          "AnchorX": "Left",
          "AnchorY": "Bottom",
          "Available": true,
          "BackgroundColor": "0.48 0.48 0.48 0.55",
          "Height": 0.1,
          "Margin": "0.043 0.009 0.108 0.046",
          "Width": 0.32
        },
    Maybe I'm so stupid ye but I rly cant understand this system
    What I need replace in InfoPanel.json using data from rustcui?
    Help me, please. Sorry for bad English.
     
  2. Wulf

    Wulf Community Admin

    That website exports as pure JSON, which is only intended for use inside of plugins, but isn't the format that most plugins use. The JSON format is what Rust accepts natively, bu most plugins here use the CUI helper that Oxide provides as it generally involves less code and has less room for error.

    The config for InfoPanel is a custom creation by the plugin itself and is simply there to accept specific values that are plugged into the CUI helper code that it uses from Oxide.

    So for you to use that JSON would mean either converting/re-writing the entire plugin to use pure JSON, or translating the JSON values to what the plugin expects in the config, or re-writing the portions that you want to change using the CUI helper.
     
  3. I think that the last version is the most convenient and simple.
    Where I can read some info about CUI Helper? Can't found it.
    So, how then do I make GUI? Is there any program with visualization like RustCui website?
    Thanks Alot, wait Your reply :)
     
  4. Wulf

    Wulf Community Admin

    The Rust CUI isn't exactly the most friendly to work with, as it generally involves a lot of tweaking and testing to get it how you want it to look. The CUI helper in Oxide can be found on our GitHub, though if you aren't familiar with C# then that likely won't help you much.
     
  5. Dont know U programs for easily make GUI's?
    I seen something like this was maded by @bazuka5801
    давай выкладывай базука)))
     
  6. Ahahahhaa, lol.
    I will not share my private tool ))))