Rules GUI

This plugin displays the rules on connect.

Total Downloads: 9,369 - First Release: Jul 19, 2015 - Last Update: Feb 3, 2017

5/5, 25 likes
  1. The actual error is above the debug message.
     
  2. Is it possible to change the /rule command to something else?
     
  3. Open the .cs file search for [ChatCommand("rule")] and change it/.
     
  4. Oh that's awesome dude, thanks so much!
     
  5. how to fix this
    Code:
    [Oxide] 9:02 PM [Info] [info v2.18.0] icedemonzn joined the server, from South Africa.
    [Oxide] 9:02 PM [Error] Failed to run a 1.00 timer in 'RulesGUI v1.4.5' (NullReferenceException: Object reference not set to an instance of an object)
    [Oxide] 9:02 PM [Debug]   at Oxide.Plugins.RulesGUI.DisplayUI (.BasePlayer player) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.RulesGUI+<DisplayUI>c__AnonStorey0.<>m__0 () [0x00000] in <filename unknown>:0
      at Oxide.Core.Libraries.Timer+TimerInstance.Update () [0x00000] in <filename unknown>:0 
     
  6. Yeah I'm getting that same error as well. Disabled it for now.
     
  7. Does this happen for each player that connects ?
     
  8. Yep it does. We see no box come up to accept like before either. It just plops you into game and that error shows up in the console.
     
  9. I will look inyo it.
     
  10. I would love to have something like this for RoK (aside from the Information Announcer). Any chance you might be willing to port it?
     
  11. Thanks bud, much appreciated.
     
  12. There is no way to display gui in ROK but you just gave me a very good idea.
    [DOUBLEPOST=1453221349,1453207477][/DOUBLEPOST]
    I just joined to my server.. it works perfectly.. dont worry about this error.
     
  13. Hey PaiN, can i somehow move down the I agree" and "I disagree" buttons? Wound be so great, made a good looking picture with all the rules instead :)
     
  14. Hard to explain.. you will have to change the AnchorMIN and AnchorMAX of the button ;x
     
  15. Oh i found it, do you know the exact number to get them to the bottom? :)
     
  16. uhh i will just guess..

    Firstly remove the 2numbers or 1number from the right "50 12" for example.

    for anchormin change these two number to 0(zero)
    and for anchromax change these two numbers to 0.05 ? change the 0.05 value from anchormax to set the height.
     
  17. Ok, if i just change the "Disagree" to this:

    Button =
    {
    Command = "global.hardestcommandtoeverguess",
    Close = mainName,
    Color = "255 0 0 1"
    },
    RectTransform =
    {
    AnchorMin = "0",
    AnchorMax = "0.05"
    },

    the Disagree button disappears. :eek:
     
  18. you edited the whole AnchorMIN and MAX value.. i told you to edit the value the numbers from the right...
     
  19. Excuse me, now I understand! I got it to work, just one more thing.. can i move just the "I Agree" button to the left? because like you can see in the picture, agree button is not centered with the background. :) My apologies for wasting your time.
     

    Attached Files:

  20. to move left do the opposite

    Lower the left "column"
    AnchorMIN should be lower
    AnchorMAX more than the anchor min.