Skip to content

7.0.0 Beta 1 for 1.19.4

Pre-release
Pre-release
Compare
Choose a tag to compare
@Juuxel Juuxel released this 18 Mar 18:21
· 114 commits to master since this release

Repository version: 7.0.0-beta.1+1.19.4

Added

  • Focus and FocusHandler API
    • Instead of manually implementing Tab navigation logic if it has multiple focusable parts, a widget now returns a custom focus handler.
    • Focus handlers provide a stream of foci. Each Focus consists of a rectangular area and custom data.
    • The details of keyboard navigation are fully handled by LibGui now.
    • The logic for basic focusable widgets without custom foci remains the same as in LibGui 6.

Changed

  • Updated to 1.19.4
  • Support arrow navigation in LibGui screens
  • Widgets can now receive Esc and Tab key press events (make sure to return InputResult.IGNORED if you don't want to swallow them!)
  • WWidget: Keyboard input methods return InputResult

Removed

  • WWidget.cycleFocus(boolean)
  • WPanel.cycleFocus(boolean, @Nullable WWidget)
  • GuiDescription.cycleFocus(boolean)