ServerInfo
Moved
Total Downloads: 10,611 - First Release: Aug 29, 2015 - Last Update: Oct 27, 2017
- 5/5, 53 likes
-
Tell me how to make this panel When a player uses /help
-
Wulf Community Admin
I'd recommend taking a look at some of the existing resources and threads:
- Oxide/RustCui.cs at master · OxideMod/Oxide · GitHub
- Working with Oxide's new "CUI Helper" |
Oxide
- Community entity UI | Oxide
-
This is just GUI Help for Rust Experimental | Oxide
-
Every time i type /info to get the gui up my client locks up and stops responding for around 10 seconds, Has anyone else had this problem? Happens with the kits gui as well.
-
I have two doubts:
How do I make the entire image on the screen? Print: Screenshot
How do I create a new tab?
Code:{ "settings": { "Tabs": [ { "ButtonText": "Comandos", "HeaderText": "Comandos do Servidor", "Pages": [ { "TextLines": [ "<color=brown> • </color> <color=grey> Use </color> <color=brown> /tphelp tpr </color> <color=grey> Ajuda com tp </color>", "<color=brown> • </color> <color=grey> Use </color> <color=brown> /tphelp home </color> <color=grey> Ajuda com home </color>", "<color=brown> • </color> <color=grey> Use </color> <color=brown> /bgrade </color> <color=grey> Grade de contrução </color>", "<color=brown> • </color> <color=grey> Use </color> <color=brown> /clan help </color> <color=grey> Ajuda com clans </color>", "<color=brown> • </color> <color=grey> Use </color> <color=brown> /remove </color> <color=grey> Ferramenta remove </color>", "<color=brown> • </color> <color=grey> Use </color> <color=brown> /sil </color> <color=grey> Para colocar imagem em placa </color>", "<color=brown> • </color> <color=grey> Use </color> <color=brown> /ff on/off </color> <color=grey> Para ativar/desativar fogo amigo no clan </color>", "<color=brown> • </color> <color=grey> Use </color> <color=brown> /loja </color> <color=grey> Você adquire creditos com doações </color>", "<color=brown> • </color> <color=grey> Use </color> <color=brown> /mochila </color> <color=grey> Abre sua mochila </color>", "<color=brown> • </color> <color=grey> Use </color> <color=brown> /kit </color> <color=grey> Pegue seu kit </color>", "<color=brown> • </color> <color=grey> Use </color> <color=brown> /map </color> <color=grey> Abre um mapa dentro do jogo </color>", "<color=brown> • </color> <color=grey> Use </color> <color=brown> /trr </color> <color=grey> Solicitar um troca </color>" ], "ImageSettings": [ { "Position": { "MinX": 0.25, "MaxX": 0.75, "MinY": 0.25, "MaxY": 0.75 }, "Url": "http://i.imgur.com/pVq9FO7.jpg?1", "TransparencyInPercent": 10 } ] }, { "TextLines": [], "ImageSettings": [] }, { "TextLines": [], "ImageSettings": [] } ], "TabButtonAnchor": 4, "TabButtonFontSize": 16, "HeaderAnchor": 0, "HeaderFontSize": 32, "TextFontSize": 16, "TextAnchor": 3, "OxideGroup": "" } ], "ShowInfoOnPlayerInit": true, "TabToOpenByDefault": 0, "Position": { "MinX": 0.15, "MaxX": 0.9, "MinY": 0.2, "MaxY": 0.9 }, "BackgroundImage": { "Enabled": false, "Position": { "MinX": 0.0, "MaxX": 1.0, "MinY": 0.0, "MaxY": 1.0 }, "Url": "http://7-themes.com/data_images/out/35/6889756-black-backgrounds.jpg", "TransparencyInPercent": 100 }, "ActiveButtonColor": "#808080ff", "InactiveButtonColor": "##808080ff", "CloseButtonColor": "##808080ff", "NextPageButtonColor": "##808080ff", "PrevPageButtonColor": "##808080ff", "BackgroundColor": "#000000FF", "HelpButton": { "IsEnabled": false, "Text": "Help", "Position": { "MinX": 0.0, "MaxX": 0.05, "MinY": 0.1, "MaxY": 0.14 }, "Color": "#7F7F7FFF", "FontSize": 18 }, "UpgradedConfig": false } }
Last edited by a moderator: Nov 22, 2015 -
All I really want to do is a hello world, in js :\ -
Wulf Community Admin
-
I'll check the Extensions Page[but if you could link me the github page, it would be neat
)
OK, I got somewhere with the Extensions page; Reading a plugin that employs the `CUI` stuff, it does `using Oxide.Game.Rust.Cui`-- in the JS Extesion I saw something as `importNameSpace('RUST')` -- I'm assuming importNameSpace('CUI') works?Last edited by a moderator: Nov 23, 2015 -
PS: For those of you wondering, and without having tested it, I'm assuming
importNamespace("Oxide.Game.Rust.Cui") should call the correct library. Either that ooor importNamespace('Rust.Cui').
Javascript CuiHelper plugin/lib [WIP] | OxideLast edited by a moderator: Nov 28, 2015 -
My first page is blank white no matter what i do , even deleted config and reuploaded the plugin again making a fresh config , same problem .
-
The Plugin was perfect but now i got a error message every time.
Code:[Oxide] 6:54 PM [Error] Failed to call hook 'ShowInfo' on plugin 'ServerInfo v0.4.0' (NullReferenceException: Object reference not set to an instance of an object) [Oxide] 6:54 PM [Debug] at Oxide.Plugins.ServerInfo.AddMainPanel (Oxide.Game.Rust.Cui.CuiElementContainer container) [0x00000] in <filename unknown>:0 at Oxide.Plugins.ServerInfo.ShowInfo (.BasePlayer player, System.String command, System.String[] args) [0x00000] in <filename unknown>:0 at Oxide.Plugins.ServerInfo.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (System.Reflection.MethodInfo method, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hookname, System.Object[] args) [0x00000] in <filename unknown>:0
Last edited by a moderator: Dec 4, 2015 -
Code:
[Oxide] 12:04 PM [Debug] at Oxide.Plugins.ServerInfo.AddMainPanel (Oxide.Game.Rust.Cui.CuiElementContainer container) [0x00000] in <filename unknown>:0 at Oxide.Plugins.ServerInfo.ShowInfo (.BasePlayer player, System.String command, System.String[] args) [0x00000] in <filename unknown>:0 at Oxide.Plugins.ServerInfo_OnPlayerInit (.BasePlayer player) [0x00000] in <filename unknown>:0 at Oxide.Plugins.ServerInfo+<OnPlayerInit>c__AnonStorey2.<>m__0 () [0x00000] in <filename unknown>:0 at Oxide.Core.Libraries.Timer+TimerInstance.Update () [0x00000] in <filename unknown>:0
Last edited by a moderator: Dec 4, 2015 -
Can you add to set the transparenc of background?
-
how can i make the buttons smaler that i can put morge buttons on page one ?
-
hi guys, is there any ready made templates anywhere?, I can configure the text in this, but I cant remove all the images etc I don't know anything about editing things like this, I just want a simple page with 3 tabs, just no images, when I try to delete the images I just screw everything up, manythanks
-
Hello, I want to give here a small example looks like my ServerInfo.json (fully functional) for we find some examples and it is sometimes convenient to have a visual to understand things.
Click here because i'm limited by maximum number of characters and my .json file are more than 10 000...
ZeroBin
You will notice that I have left empty pages in order to make additions / changes later.
I hope I have given an explanation to those who need it.Attached Files:
-
-
I noticed on reload of the plugin it resets the changes I made during the running server is this normal or is there no way I can change while the server is up?
-
http://www.kzu-gaming.be/
KZU Gaming
KZU Gaming – Google+