You need to name your button and then set 'close' : 'button name', so on click player will close this button + set 'command' 'your console command' -> button will close and call command to draw new gui - PROFIT!
Code:{ ""name"": ""TitlePanelBase"", ""components"": [ { ""type"":""UnityEngine.UI.Button"", ""close"":""TitlePanelBase"", ""command"": ""open.panel"", ""color"": ""0 0 0 0"" }, { ""type"":""RectTransform"", ""anchormin"": ""0.07 0.91"", ""anchormax"": ""0.93 0.98"" } ] }![]()
Community entity UI
Discussion in 'Rust Development' started by ShadowEvil, Jun 5, 2015.
-
-
-
-
You can set 'close' (client will close UI object with this name when button pressed)
Code:""close"":""TitlePanelBase""
-
So I am currently working on an Extension for the UI. I am building a simplified system that will work similar to that of a Unity GUI system.
I didn't have time to test this yet but the "command":"cmdName" line, can you actually send parameters along the command name? for example "command":"cmdName value1" ? -
-
-
Wulf Community Admin
-
-
I am currently running more than just a simple plugin. This is a full Class library focused on simplifying the UI system, so it is running more than just one class. I can understand if this is not allowed on Oxides website, so I will find another way to share it then.
also, If I am not allowed to talk about the extension on the oxide forums, please let me know so I don't get punished for it :s . -
Wulf Community Admin
The other option is instead discussing what could be added to the Oxide.Game.Rust.dll that we provide instead of making a standalone one, PR changes, and work with the other developers on making something more usable and stable that all would have access too. -
-
Wulf Community Admin
-
I have no clue...
-
The web page not screwed? =(
-
I think the thing I would be interested in is getting a minimap on screen... (; Using RustIO map would be amazing too...
I made a simple level bar and profile hud for the RPG Mod... But nothing too crazy as it is not that expanded with the UI at the moment... -
-
Hey guys, just started trying to code something with new ui and failed because of https://github.com/Facepunch/rust-community/issues/3 damn... Is there way to bypass it?