mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-21 03:22:23 +00:00
This refactoring allows third-party mods to provide their own custom GUI for ability type settings by extending SubGuiAbilityConfig. Changes: - Refactored SubGuiAbilityConfig as base class with GuiMenuTopButton tabs - Added virtual methods: initTypeTab(), handleTypeButton(), handleTypeTextField() - Added createConfigGui() method to Ability base class for GUI instantiation - Created 15 SubGuiAbility* subclasses in new ability package - Updated GuiNPCAbilities and GuiNpcManageAbilities to use ability.createConfigGui() Third-party mods can now: 1. Create a custom Ability subclass 2. Extend SubGuiAbilityConfig with their own GUI 3. Override createConfigGui() to return their custom GUI