Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Implemented new menu system based on button objects and more OOP style * Moved MenuBankLogs to the new menu system * Fix loadGUI not loading the correct menu file * Removed unused code from MenuBankLogs * Changed loadGUI to loadMenu * Moved MenuCoops to the new system * Fixed coops button not having the proper type * Removed the identifier * Moved MenuCounts to the new system * Moved MenuGlobalWarps to the new system * Cleaned code * Changed modifyButtonItem to work on ItemStacks and not ItemBuilders * Rename targetPlayer in button object to a better indicative name * Updated methods for better menus customizations * Converted MenuBiomes to the new system * Fixed incorrect file name * Fix general errors * Changed patterns to work with button builders instead of button instances * Moved MenuBorderColor to the new system * Moved MenuConfirmBan to the new system * Moved MenuConfirmDisband to the new system * Moved MenuConfirmKick to the new system * Moved MenuConfirmLeave to the new system * Moved MenuControlPanel to the new system * Fix compilation errors * Move MenuIslandRate to the new system * Move MenuIslandRatings to the new system * Fix compilation issues * Moved MemberManageButton to new system * Moved MenuMemberRole to the new system * Moved MenuMembers to the new system * Changed menu buttons to get as a parameter an instance of the menu they associated with instead of the abstract SuperiorMenu object * Moved MenuMissions to the new system * Moved MenuMissionsCategory to the new system * Fix compilation errors with FileUtils#loadMenu * Moved MenuPlayerLanguage to the new system * Changed parameters of button methods to get an instance of the menu instead of viewer and target * Moved MenuIslandFlags to the new system * Moved MenuUniqueVisitors to the new system * Moved MenuUpgrades to the new system * Moved MenuValues to the new system * Moved MenuVisitors to the new system * Moved MenuWarpCategories to the new system * Moved MenuWarpCategoryIconEdit to the new system * Moved MenuWarpCategoryManage to the new system * Moved MenuWarpIconEdit to the new system * Fixed incorrect field names * Fixed incorrect parameter given to updateObject * Added getButtons to pattern builders * Added getButtons to patterns * Moved MenuWarps to the new system * Fixed MissionsModule not working with the new menus system * Fixed PagedSuperiorMenu giving incorrect parameters to buttons * Moved MenuIslandBank to the new system * Fix missing field name * Moved MenuIslandChest to the new system * Moved MenuIslandPrivileges to the new system * Moved MenuIslandCreation to the new system * Moved MenuTopIslands to the new system * Fixed errors with method calls for deposit & withdraw methods * Moved MenuWarpManage to the new system * Moved SuperiorMenuSettings to the new system * Moved SuperiorMenuCustom to the new system * Moved all internal menus to their own package * Fixed null issues with mapButton methods * Fixed incorrect menu file names * Fixed incorrect detection of biome field * Fixed empty dummy button can be null * Fixed potential null issue with setting island warp icon * Fixed menuPattern being null * Fixed no-access-item not initialized correctly * Fixed null-issues with bonusWorth and bonusLevel for island-creation * Fixed null issues with ItemBuilder for null items * Fixed menus not loading items * Fixed incorrect detection of object indexes * Fixed detection of button's indexes * Fixed incorrect detection of disabled-settings items * Fixed upgrade buttons not checking for island's upgrade level * Fixed detection of default warp icon * Fixed icon-lore edit not closing the menu for the player * Fixed detection of rows size for MenuWarpCategories * Changed MenuWarpCategories to non-paged menu due to warp categories can have custom slots * Fixed NPE when the permissions section is invalid * Fixed NPE when the items section is invalid * Added detection for issues with yaml-foramtting issues * Added hard-coded limits for patterns * Fix menu accepting null-items when they shouldn't * Optimized a bit creation of menus * Cleaned code * Merged dev branch * Merged `dev` changes * Merged dev * Deleted unused files * Cleaned code a bit
- Loading branch information