Hello.
Want modernize InfoPanel [make design for my server].
Using Rustcui tool: RustCui - Editor
Press "export" and see too hard for me code
RustCui:
And InfoPanel config file (for ex. bottom left dock):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" } ] }
Maybe I'm so stupid ye but I rly cant understand this systemCode:"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 },
What I need replace in InfoPanel.json using data from rustcui?
Help me, please. Sorry for bad English.
Need help with GUI (or cui idk)
Discussion in 'Rust Development' started by Red Apple 2, Jan 10, 2018.
-
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. -
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 -
Wulf Community Admin
-
Dont know U programs for easily make GUI's?
I seen something like this was maded by @bazuka5801
давай выкладывай базука))) -
I will not share my private tool ))))