WolfyUtilities icon indicating copy to clipboard operation
WolfyUtilities copied to clipboard

Cross-Platform GUI API [v5]

Open WolfyScript opened this issue 2 years ago • 0 comments

The current GUI API is only available on Spigot. There should be a cross-platform (Spigot, Sponge, Paper) API, which then would make it easier to create cross-platform inventory GUIs. Plus, the current GUI is pretty much hardcoded and not customizable outside Java classes.

The new system will be build using a functional style, meaning there is no need to create custom implementations for GUI Components and menus. All is done via builders and callback lambda functions.

API:

  • [x] Basic interface structure

  • [x] Basic common Implementation

  • [ ] Component Builders

    • [ ] Allow for builder sharing across platforms. Create a builder with a common implementation, then access it on each platform to extend it.
  • [x] Config

    • [x] Dynamically create builders from config.
    • [x] Extend builders with states and actions via code.
    • [x] Register builders that are done

Implementation

  • [ ] Spigot/Paper
  • [ ] Sponge

WolfyScript avatar Jan 12 '23 22:01 WolfyScript