InfoPanel

Moved

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

5/5, 160 likes
  1. Okay so I tried it out. It no longer shows the economics balance, which is good, but it does not show the RP balance, just says "No Content".
     
  2. yeah that's what i got so again I had to remove balanceRP and just keep Balance and it worked (Hence why posting the original just rp .json first)
     
  3. I didn't realize I had to do this other step first. It works now! You're the best!
     
  4. yes, it's why I put all the changes needed in the .cs file first ;-)
     
  5. anyway you can send me your cs file i keep getting errors
     
  6. Thank you very much for the file! Could you tell me what you need to remove to remove the block with RP / awards?
     
  7. OK SO IT TOOK FOREVER to figure out the margins to move the panels lol but finally got my UI set up and working with RP
     

    Attached Files:

  8. Question:

    Each section has a background color "0 0 0 0.4" and a length of that color.

    Example:
    https://s25.postimg.org/z3ccdgpqn/2017-11-27_20_42_44-_Rust.png

    This is a section of the info panel showing "coordinates" "airdrop" "helicopter" each area as a defined length of background color. I've tried everything to make it shorter, make it longer, push it left or push it right.

    The issue I am currently having is: I made my own graphics now I need to shorten the background so its not too long.

    Example:
    https://s25.postimg.org/ydtk14zhr/2017-11-27_20_47_20-_Rust.png

    I disable all background color on: (see code below) - the background color under the "DOCK" part of the code really isn't needed?
    Code:
                       { "TopLeftDock", new DockConfig
                            {
                                Available = true,
                                Width = 0.175f,
                                Height = 0.03f,
                                AnchorX = "Left",
                                AnchorY = "Top",
                                Margin = "0.005 0.340 0.005 0.005",
                                BackgroundColor = "0 0 0 0",  <----- changed
                            }
                        },
                        { "TopRightDock", new DockConfig
                            {
                                Available = true,
                                Width = 0.39f,
                                Height = 0.03f,
                                AnchorX = "Right",
                                AnchorY = "Top",
                                Margin = "0.005 0.005 0.005 0.005",
                                BackgroundColor = "0 0 0 0",  <----- changed
                            }
                        }
    I've played endlessly with the margin numbers under each section (not with the margins in the above code).
    Code:
                     { "Sleepers", new PanelConfig
                            {
                                Available = true,
                                Dock = "TopLeftDock",
                                Order = 7,
                                //AnchorX = "Left",
                                //AnchorY = "Bottom",
                                Margin = "0 0 0 0",    <----- changed
                                Width = 0.17f,
                                Height = 0.95f,
                                BackgroundColor = "0 0 0 0.4",
                                Image = new PanelImageConfig
                                {
                                    Order =  2,
                                    Width = 0.5f,
                                    Height = 0.8f,
                                    Margin = "0 0.05 0.1 0.05",  <----- changed
                                    Url = "https://s25.postimg.org/oo5nxiwin/Sleepers.png",
                                },
                                Text = new PanelTextConfig
                                {
                                    Order =  1,
                                    Width = 0.63f,
                                    Height = 1f,
                                    Align = TextAnchor.MiddleCenter,
                                    FontColor = DefaultFontColor,
                                    FontSize = 14,
                                }
                            }
                        },
    What am I missing? I've literally played with everything inside the brackets to see exactly what it did.

    *UPDATE*
    I think i figured this out. Width - 0.30f (example) is how long the background color will be but... do this will stretch out any graphics in that box so you have to adjust your graphic height and and width accordingly. (painful, very painful) I am sure this is a Unity thing...

    After a few hours of bastardizing Wulf code :) (not really but it seems like it) my info panel is complete.

    one last question to @Wulf is it possible to sort out the sleeper numbers with a format of XXX: example: 323 zzz. would make it easier once a server hits over XX for formating purposes.
     

    Attached Files:

    Last edited by a moderator: Nov 28, 2017
  9. Is there a way to move InfoPanel to the bottome of the screen?
     
  10. you have the option to do top or bottom, left or right. the margins placed in the code lets you move the text/graphic around from there.
    The post before my long post is from @Brokhawk he moved his info panel to the bottom of the screen
     
  11. i kept ALL of my margins at 0 0 0 0 i used RustCui - Editor to find my min max for each panel just a heads up for min max its max min min max in the json file so this in RustCui editor

    Code:
    "anchormin": "0.344 0.114",
    "anchormax": "0.641 0.137"
    is this in the json file

    Code:
    "0.641  0.344  0.114  0.137"
     
  12. exactly when you go on the pluggin they say that this one can be set up with the infopanel
     
  13. its its own entity they said in the plugin u can use info panel to do this but this makes it easier to do
     
  14. I am not understanding the way to edit this, any help please guys im trying to align everything to the bottom of the screen ?
     
  15. it took me quite a while to get mine down below
     
  16. I have a quick question, this may have been answered and I missed it. I have empty spaces at the ends of my Info Panel Bars, see attached. Is this something that can be tweaked pretty easily? I reinstalled the plugin with a fresh copy and it is still there. By no means is it game/plugin impacting, just tough on my voluntary OCD :)

    Please see photo at the link, the forum wouldn't let me upload despite the file being 24kb!

    Blank Space
     
  17. yes shorten the dock margins for which ever dock it is bottom right or whatever
    [DOUBLEPOST=1512334340][/DOUBLEPOST]
    do you want my config?

    https://i.imgur.com/o0ykuNx.png
     

  18. Man that does look sweet, if you want to share I'd gladly accept as well because I was about to start trying something similar with the panel placement. Also can you post your config for the Zlevels as well so it doesn't cause issues? I think that's why my margins on the left got janky! From me moving it over there originally. Thanks buddy.