Jump to content

CCarrMcMahon

Members
  • Posts

    2
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by CCarrMcMahon

  1. Patch File <-- Open in new tab, right click, and save as... Ok, so I don't know if you have modified the EntityBox.cs file or the HotBar.cs file, but I am going to give you a patch file I just made that should work. If it doesn't apply, I will try to help you modify the code to make it work if you are having trouble. The patch file pretty much just moves anything related to the ExpBar over to the HotBar.cs file. Since the ExpBar is only drawn for us, we can completely remove it from the EntityBox.cs file since we don't need to draw it for other entities. In addition to moving some variables and methods over, it also deletes the section of code that runs the update method since we need to update it in the HotBar.cs file now. Along with that, it removes any lines of code that hide the ExpBar if it is an entity other than ourselves (since it no longer exists in the EntityBox). As for how the json files work, when you create an ImagePanel, Label, or other similar objects, you specify the parent object that it is attached to along with the name you want displayed in the json file. When looking through the json files, you will see that some things are children of something else, thats because those children used that object as their parent in the code. So something like this: ExpBackground = new ImagePanel(HotbarWindow, "EXPBackground"); Creates a new ImagePanel object named ExpBackground with the parent HotbarWindow and is named EXPBackground in the json file. When you modify the bounds or alignment of EXPBackground now, it is in reference to the HotbarWindow. At the end of the initialization, the code will deserialize and you will get the resulting json file. Once you apply the patch and build, you will need to modify your HotbarWindow.json file to fit your needs. I would recommend keeping a backup of the original TargetBox.json file so you can reference the width, height, and other settings of the ExpBar since after you build, it wil be deleted from TargetBox.json. Hope this helps and sorry I'm a bit late, just saw this about an hour ago. @ me if you have any questions and I'll will try to help as much as possible.
  2. Hi, I was wondering if anyone would happen to know if mutes and bans are automatically undone after the given duration expires? If so, would you also know where in the code it checks if the duration has expired? I have looked around the code for a while and haven't been able to find anything that checks if the EndTime is less than the current time. I also haven't been able to get the unmutes to work. Any information would be greatly appreciated. Thanks
×
×
  • Create New...