InfoPanel

Moved

Total Downloads: 55,749 - First Release: Sep 25, 2015 - Last Update: Mar 13, 2018

5/5, 160 likes
  1. Hey Nuh Bacon,

    i really like the Design you made. Thank you for the work.

    Now i want to use it at my server aswell. But in which folder do i put the .json?

    I found two different ZLevelsRematered.json on my Oxide folder, i changed both of them but nothing happend.

    Can someone help me out?
    [DOUBLEPOST=1488186900][/DOUBLEPOST]
    This is how it looks with using all the .json files.
     

    Attached Files:

  2. I know it was aksed alot, but i cant really find an answer. I would like to display the RP from ServerRewards instead of the Money from Economics. I Read some Servers have this, but i dont really know how to set it up. If it doesnt work at all, please let me know.

    Edit:

    Code:
                public double GetBalance(string PlayerID)
                {
                    var player = RustCore.FindPlayerByIdString(PlayerID);
                    if (player == null) return 0;
                    return (double)(Interface.Oxide.CallHook("GetPlayerMoney", player.userID) ?? 0.0);
                }
    So this code should be the call i am looking for, now it should be easy to just call the RP instead or am i mistaken ?
     
    Last edited by a moderator: Feb 27, 2017
  3. Code:
    return (double)(Interface.Oxide.CallHook("GetPlayerMoney", player.userID) ?? 0.0);
    try this...
    Code:
    return (double)(ServerRewards?.Call("CheckPoints", player.userID) ?? 0.0);
    maybe this should work :D Dont know 100% ^^

    PS: here is my version :)
    Unbenannt-2.jpg
     
  4. doesnt work :(
     
  5. whats the name of ur server so i can add it
    [DOUBLEPOST=1488243586][/DOUBLEPOST]
    ????
     
  6. Thanks, and all you have to do is change the .json file in the oxide config folder.
    [DOUBLEPOST=1488255761][/DOUBLEPOST]
    Would you be willing to share the config files with me? that is how i wanted my layout to be except i have different icons ready to be used.
     
  7. Has there been any update on how to ad RP points into this mod?? I would like to use both Economics and RP on the info panel. I see people are working on it but has anyone figured it out?
     
  8. Not really, i am still at the beginning.
     
  9. Ok, i missread something :) Nvm.

    Can someone tell me the meaning of the $ sign? I really want to remove it.
     
  10. The $ sign is for currency (economics Plugin) if u want to remove it simply go in the config and change following

    Code:
        "Balance": {
          "AnchorX": "Left",
          "AnchorY": "Bottom",
          "Autoload": true,
          "Available": true,
          "BackgroundColor": "0 0 0 0.4",
          "Dock": "BottomLeftDock",
          "FadeOut": 0.0,
          "Height": 0.95,
          "Image": {
            "AnchorX": "Left",
            "AnchorY": "Bottom",
            "Available": true,
            "BackgroundColor": "0 0 0 0.0",
            "Height": 0.8,
            "Margin": "0 0.08 0.1 0.01",
            "Order": 1,
            "Url": "http://i.imgur.com/CEmJP4r.png",
            "Width": 0.2
          },
    "Available": true,
    into "Available": false,
     
  11. Are the chat commands an individual setting or does it apply to the server as a whole? For example: if I change the time format to server time, does that affect only me or anyone who ever plays on the server?
     
    Last edited by a moderator: Feb 28, 2017
  12. They are individual per player based and saved
     
  13. How do i change color on text? its yellow and when i try change it its gone or white
     
  14. for what?
    [DOUBLEPOST=1488396238][/DOUBLEPOST]Ok everyone that wanted RP in the info panel, get ahold of me ill send u the cs file, Thanks to Canopy Sheep. We got the code working to show Server Rewards RP in the info panel!! Here is my config file message me for the plugin file!
     

    Attached Files:

  15. Tried to use the one someone uploaded, want to change the color from mystic gaming to cyan

    Code:
    {
      "CompassDirections": {
        "e": "East",
        "n": "North",
        "ne": "North East",
        "nw": "North West",
        "s": "South",
        "se": "South East",
        "sw": "South West",
        "w": "West"
      },
      "Docks": {
        "BottomTLeftDock": {
          "AnchorX": "Left",
          "AnchorY": "Bottom",
          "Available": true,
          "BackgroundColor": "255 255 255 0.04",
          "Height": 0.035,
          "Margin": "0.04 0.160 0.063 0.067",
          "Width": 0.181
        },
        "BottomBLeftDock": {
          "AnchorX": "Left",
          "AnchorY": "Bottom",
          "Available": true,
          "BackgroundColor": "255 255 255 0.04",
          "Height": 0.035,
          "Margin": "0.04 0.160 0.022 0.027",
          "Width": 0.181
        },
        "BottomTRightDock": {
          "AnchorX": "Right",
          "AnchorY": "Bottom",
          "Available": true,
          "BackgroundColor": "225 225 225 0.05",
          "Height": 0.035,
          "Margin": "0.9 0.001 0.062 0.169",
          "Width": 0.186
        },
        "BottomBRightDock": {
          "AnchorX": "Right",
          "AnchorY": "Bottom",
          "Available": true,
          "BackgroundColor": "255 255 255 0.05",
          "Height": 0.035,
          "Margin": "0.9 0.001 0.023 0.169",
          "Width": 0.186
        },
        "TopRightDock": {
          "AnchorX": "Right",
          "AnchorY": "Top",
          "Available": false,
          "BackgroundColor": "0 0 0 0.4",
          "Height": 0.03,
          "Margin": "0.005 1 0.022 0.027",
          "Width": 0.19
        }
      },
      "Messages": [
        "Check out our forum! www.MysticGN.com",
        "live map: 10x.mysticgn.com:28016",
        "Welcome to www.MysticGN.com",
        "Want VIP kit? Donate here: www.MysticGN.com",
        "Watch out for the big ass heli ;)",
        "Vote at http://toprustservers.com/server/17117!",
        "READ THE RULES!",
        "TEAMSPEAK: ts.mysticgn.com"
      ],
      "Panels": {
        "AirdropEvent": {
          "AnchorX": "MiddleCenter",
          "AnchorY": "Bottom",
          "Autoload": true,
          "Available": true,
          "BackgroundColor": "0 0 0 0",
          "Dock": "BottomBRightDock",
          "FadeOut": 0.0,
          "Height": 0.95,
          "Image": {
            "AnchorX": "Left",
            "AnchorY": "Bottom",
            "Available": true,
            "BackgroundColor": "0 0 0 0",
            "Height": 0.9,
            "Margin": "0.001 6.7 0.1 0.9",
            "Order": 1,
            "Url": "http://i924.photobucket.com/albums/ad89/jojodavis08/Airdrop.png",
            "Width": 3
          },
          "Margin": "0 0 0 0.01",
          "Order": 4,
          "PanelSettings": {
            "ActiveColor": "21 1 0 1",
            "InactiveColor": "1 1 1 0.1"
          },
          "Width": 0.1
        },
        "Welcome": {
          "AnchorX": "Left",
          "AnchorY": "Bottom",
          "Autoload": true,
          "Available": true,
          "BackgroundColor": "0 0 0 0",
          "Dock": "BottomTLeftDock",
          "FadeOut": 0.0,
          "Height": 0.95,
          "Image": {
            "AnchorX": "Left",
            "AnchorY": "Bottom",
            "Available": true,
            "BackgroundColor": "0 0 0 0",
            "Height": 0.8,
            "Margin": "0 0.04 0.1 0.01",
            "Order": 1,
            "Url": "http://i.imgur.com/rMIY76R.png",
            "Width": 0.15
          },
          "Margin": "0 0 0 0.01",
          "Order": 7,
          "PanelSettings": {
            "RefreshRate(s)": "5"
          },
          "Text": {
            "Align": "MiddleCenter",
            "AnchorX": "Left",
            "AnchorY": "Bottom",
            "Available": true,
            "BackgroundColor": "0 0 0 0",
            "Content": "Welcome to Mystic-Gaming",
            "FadeIn": 0.0,
            "FadeOut": 0.0,
            "FontColor": "1 1 0 10",
            "FontSize": 15,
            "Height": 1.0,
            "Margin": "0.0 0.070 0 0",
            "Order": 2,
            "Width": 0.75
          },
          "Width": 0.8
        },
        "Clock": {
          "AnchorX": "Left",
          "AnchorY": "Bottom",
          "Autoload": true,
          "Available": true,
          "BackgroundColor": "0 0 0 0",
          "Dock": "BottomBLeftDock",
          "FadeOut": 0.0,
          "Height": 0.95,
          "Margin": "0 0 0 0.01",
          "Order": 1,
          "PanelSettings": {
            "ClockUpdateFrequency (seconds)": 4,
            "TimeFormat": "h:mm"
          },
          "Text": {
            "Align": "MiddleCenter",
            "AnchorX": "Left",
            "AnchorY": "Bottom",
            "Available": true,
            "BackgroundColor": "0 0 0 0",
            "Content": "No Content",
            "FadeIn": 0.0,
            "FadeOut": 0.0,
            "FontColor": "1 1 1 1",
            "FontSize": 17,
            "Height": 0.95,
            "Margin": "0 0.01 0 0.01",
            "Order": 0,
            "Width": 1.0
          },
          "Width": 0.2
        },
        "Compass": {
          "AnchorX": "Right",
          "AnchorY": "Bottom",
          "Autoload": true,
          "Available": true,
          "BackgroundColor": "0 0 0 0",
          "Dock": "BottomTRightDock",
          "FadeOut": 0.0,
          "Height": 0.95,
          "Image": {
            "AnchorX": "Left",
            "AnchorY": "Bottom",
            "Available": true,
            "BackgroundColor": "0 0 0 0",
            "Height": 0.8,
            "Margin": "0 0.06 0.1 0.03",
            "Order": 1,
            "Url": "http://i.imgur.com/dG5nOOJ.png",
            "Width": 0.188
          },
          "Margin": "0 0 0 0.01",
          "Order": 8,
          "PanelSettings": {
            "RefreshRate(s)": "1",
            "TextOrAngle": "text"
          },
          "Text": {
            "Align": "MiddleCenter",
            "AnchorX": "Left",
            "AnchorY": "Bottom",
            "Available": true,
            "BackgroundColor": "0 0 0 0",
            "Content": "No Content",
            "FadeIn": 0.0,
            "FadeOut": 0.0,
            "FontColor": "1 1 1 1",
            "FontSize": 15,
            "Height": 1.0,
            "Margin": "0 0 0 0",
            "Order": 2,
            "Width": 0.76
          },
          "Width": 0.5
        },
        "Coordinates": {
          "AnchorX": "Right",
          "AnchorY": "Bottom",
          "Autoload": true,
          "Available": true,
          "BackgroundColor": "0 0 0 0",
          "Dock": "BottomTRightDock",
          "FadeOut": 0.0,
          "Height": 0.95,
          "Image": {
            "AnchorX": "Left",
            "AnchorY": "Bottom",
            "Available": true,
            "BackgroundColor": "0 0 0 0",
            "Height": 0.8,
            "Margin": "0 0.01 0.1 0.01",
            "Order": 1,
            "Url": "http://i.imgur.com/Kr1pQ5b.png",
            "Width": 0.13
          },
          "Margin": "0 0 0 0.01",
          "Order": 7,
          "PanelSettings": {
            "RefreshRate(s)": "3"
          },
          "Text": {
            "Align": "MiddleCenter",
            "AnchorX": "Left",
            "AnchorY": "Bottom",
            "Available": true,
            "BackgroundColor": "0 0 0 0",
            "Content": "No Content",
            "FadeIn": 0.0,
            "FadeOut": 0.0,
            "FontColor": "1 1 1 1",
            "FontSize": 12,
            "Height": 1.0,
            "Margin": "0 0.02 0 0",
            "Order": 2,
            "Width": 0.848
          },
          "Width": 0.5
        },
        "HelicopterEvent": {
          "AnchorX": "MiddleCenter",
          "AnchorY": "Bottom",
          "Autoload": true,
          "Available": true,
          "BackgroundColor": "0 0 0 0",
          "Dock": "BottomBRightDock",
          "FadeOut": 0.0,
          "Height": 0.99,
          "Image": {
            "AnchorX": "MiddleCenter",
            "AnchorY": "Bottom",
            "Available": true,
            "BackgroundColor": "0 0 0 0",
            "Height": 0.7,
            "Margin": "0 1.8 0.1 0.1",
            "Order": 1,
            "Url": "http://i924.photobucket.com/albums/ad89/jojodavis08/Helli.png",
            "Width": 3
          },
          "Margin": "0 0 0 0.01",
          "Order": 5,
          "PanelSettings": {
            "ActiveColor": "0.7 0.2 0.2 1",
            "InactiveColor": "1 1 1 0.1"
          },
          "Width": 0.1
        },
        "MessageBox": {
          "AnchorX": "Right",
          "AnchorY": "Top",
          "Autoload": true,
          "Available": true,
          "BackgroundColor": "0 0 0 0.4",
          "Dock": "TopRightDock",
          "FadeOut": 0.0,
          "Height": 0.95,
          "Margin": "0 0 0 0.005",
          "Order": 7,
          "PanelSettings": {
            "MessageUpdateFrequency (seconds)": 20,
            "MsgOrder": "normal"
          },
          "Text": {
            "Align": "MiddleCenter",
            "AnchorX": "Left",
            "AnchorY": "Bottom",
            "Available": true,
            "BackgroundColor": "0 0 0 0.4",
            "Content": "No Content",
            "FadeIn": 0.0,
            "FadeOut": 0.0,
            "FontColor": "1 1 1 1",
            "FontSize": 14,
            "Height": 0.95,
            "Margin": "0 0 0 0.005",
            "Order": 0,
            "Width": 1.0
          },
          "Width": 1.0
        },
        "OPlayers": {
          "AnchorX": "Left",
          "AnchorY": "Bottom",
          "Autoload": true,
          "Available": true,
          "BackgroundColor": "0 0 0 0",
          "Dock": "BottomBLeftDock",
          "FadeOut": 0.0,
          "Height": 0.95,
          "Image": {
            "AnchorX": "Left",
            "AnchorY": "Bottom",
            "Available": true,
            "BackgroundColor": "0 0 0 0",
            "Height": 0.8,
            "Margin": "0 0.2 0.1 0.05",
            "Order": 1,
            "Url": "http://i.imgur.com/n9EYIWi.png",
            "Width": 0.35
          },
          "Margin": "0 0 0 0.01",
          "Order": 2,
          "Text": {
            "Align": "MiddleCenter",
            "AnchorX": "Left",
            "AnchorY": "Bottom",
            "Available": true,
            "BackgroundColor": "0 0 0 0",
            "Content": "No Content",
            "FadeIn": 0.0,
            "FadeOut": 0.0,
            "FontColor": "1 1 1 1",
            "FontSize": 14,
            "Height": 1.0,
            "Margin": "0 0 0 0.005",
            "Order": 2,
            "Width": 0.68
          },
          "Width": 0.31
        },
        "Radiation": {
          "AnchorX": "Left",
          "AnchorY": "Bottom",
          "Autoload": true,
          "Available": true,
          "BackgroundColor": "0 0 0 0",
          "Dock": "BottomBRightDock",
          "FadeOut": 0.0,
          "Height": 0.95,
          "Image": {
            "AnchorX": "Left",
            "AnchorY": "Bottom",
            "Available": true,
            "BackgroundColor": "0 0 0 0",
            "Height": 0.8,
            "Margin": "0 0.15 0.1 0.1",
            "Order": 1,
            "Url": "http://i924.photobucket.com/albums/ad89/jojodavis08/Radiation.png",
            "Width": 2
          },
          "Margin": "0 0 0 0.09",
          "Order": 6,
          "PanelSettings": {
            "ActiveColor": "1 1 0 1",
            "InactiveColor": "1 1 1 0.1",
            "RefreshRate(s)": "3"
          },
          "Width": 0.1
        },
        "Sleepers": {
          "AnchorX": "Left",
          "AnchorY": "Bottom",
          "Autoload": true,
          "Available": true,
          "BackgroundColor": "0 0 0 0",
          "Dock": "BottomBLeftDock",
          "FadeOut": 0.0,
          "Height": 0.95,
          "Image": {
            "AnchorX": "Left",
            "AnchorY": "Bottom",
            "Available": true,
            "BackgroundColor": "0 0 0 0",
            "Height": 0.8,
            "Margin": "0.3 0.9 0.1 0.05",
            "Order": 1,
            "Url": "http://i.imgur.com/XIIZkqD.png",
            "Width": 0.5
          },
          "Margin": "0 0 0 0.01",
          "Order": 3,
          "Text": {
            "Align": "MiddleCenter",
            "AnchorX": "Left",
            "AnchorY": "Bottom",
            "Available": true,
            "BackgroundColor": "0 0 0 0",
            "Content": "No Content",
            "FadeIn": 0.0,
            "FadeOut": 0.0,
            "FontColor": "1 1 1 1",
            "FontSize": 14,
            "Height": 1.0,
            "Margin": "0 0 0 0.005",
            "Order": 2,
            "Width": 0.63
          },
          "Width": 0.17
        }
      },
      "ThirdPartyPanels": {},
      "TimeFormats": [
        "hh:mm"
      ]
    }
     
  16. that will be on panels if u change it in the tect with the color code look at mine in top right corner
    [DOUBLEPOST=1488399382][/DOUBLEPOST]post your config file and what items u want color changed on
     

    Attached Files:

  17. Can i have yours? D:
     
  18. Wulf doesn't like separate versions being posted, but if anyone wants to change the code from Economics support to ServerRewards support, see below.

    Code:
    [PluginReference] Plugin ServerRewards
    static InfoPanel instance;
    Reference ServerRewards and create a static instance inside the plugin class and outside of anything else
    Code:
    void OnServerInitialized()
    {
       instance = this;
    }
    In OnServerInitialized(), set the instance.
    Code:
    public int GetBalance(string id)
               {
                   var player = RustCore.FindPlayerByIdString(id);
                   if (player ==null) return 0;
                   return (int)instance.ServerRewards?.Call("CheckPoints", Convert.ToUInt64(id));
               }
    Replace GetBalance with the above. Line 1316 for the current, unmodified version.

    Reference this thread for further info: External plugin call trouble | Oxide