mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-26 20:53:08 +00:00
Refactor Ability GUI to support third-party extensibility
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
This commit is contained in:
34 files changed
+1634
-964
No files matched your search
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user