Skip to content

Releases: CottonMC/LibGui

7.0.0 Beta 2 for 1.19.4

19 Mar 11:26
Compare
Choose a tag to compare
Pre-release

Repository version: 7.0.0-beta.2+1.19.4

Added

  • SimpleKeyedFocusModel: a basic focus model implementation that supports multiple foci with unique keys

Changed

  • Renamed FocusHandler to FocusModel
  • Improve focus model documentation

7.0.0 Beta 1 for 1.19.4

18 Mar 18:21
Compare
Choose a tag to compare
Pre-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)

6.5.3 for 1.19.3

18 Mar 14:39
Compare
Choose a tag to compare

Repository version: 6.5.3+1.19.3

Changed

  • Updated bundled LibNinePatch version to 1.2.0

Fixed

  • Extra horizontal offset in some WBox configurations (#184 by @BlazingTwist)
  • Poor performance with 9patch backgrounds (#185)

6.5.2 for 1.19.3

02 Feb 16:51
Compare
Choose a tag to compare

Repository version: 6.5.2+1.19.3

Fixed

  • Selecting text in a WTextField applies blue tint to wrong field (#182)

6.5.1 for 1.19.3

08 Jan 14:07
Compare
Choose a tag to compare

Repository version: 6.5.1+1.19.3

Fixed

6.5.0 for 1.19.3

11 Dec 12:34
Compare
Choose a tag to compare

Repository version: 6.5.0+1.19.3

Changed

  • Updated to Minecraft 1.19.3

6.4.0 for 1.19-1.19.2

11 Dec 11:55
Compare
Choose a tag to compare

Repository version: 6.4.0+1.19

Added

Fixed

6.3.0 for 1.19-1.19.2

17 Sep 19:04
Compare
Choose a tag to compare

Repository version: 6.3.0+1.19

Added

  • Tab panels: methods for accessing the tab count and the current tab index/data, and switching the tab

LibGui 6.2.0 for 1.19.x

13 Sep 13:45
Compare
Choose a tag to compare

Repository version: 6.2.0+1.19

Added

  • WItemSlot.SLOT_TEXTURE to refer to the default texture of item slots and BackgroundPainter.ITEM_SLOT

Changed

  • BackgroundPainter.SLOT now draws WItemSlots with a texture instead of coloured rectangles
    • This lets resource packs modify the look of slots. (#128)

LibGui 6.1.0 for 1.19.x

06 Sep 11:55
Compare
Choose a tag to compare

Repository version: 6.1.0+1.19

Added

  • Stabilised observable properties, including ObservableProperty, ObservableView and WWidget.hovered

Changed

  • Refactors to mouse and keyboard input methods in screens (#173)
    • Input methods are now consistent between the screen classes
    • Keyboard methods call super methods in (Handled)Screen if there's no focused widget
    • Removed null checks with fallbacks, a null root panel crashes because it's not a valid state
  • The check for releasing focus on mouse clicks and WPanel.hit now use WWidget.isWithinBounds instead of coordinate comparisons for checking if the cursor is inside a widget
  • Minor javadoc improvements
    • Better output for the @properties tag(let)
      • Now generates a "frame" around it like the other summary sections
      • Now has the property visibility and type in the table
    • Yarn javadoc is linked again

Fixed

  • Incompatibility with EMI due to missing super method calls for inputs
  • CottonClientScreen now never delivers Esc and Tab key press events to widgets (this was already the case in CottonInventoryScreen)
  • A bug where focus was released in CottonClientScreen when clicking on focused widgets because the mouse coordinates weren't offset correctly
  • CottonInventoryScreen never releasing focus when clicking outside the focused widget's bounds
  • Unfocusing item slots not resetting the focused slot to -1