LibGui

Buttons & Co

MIT License

Stars
288
Committers
34

Bot releases are visible (Hide)

LibGui - 7.0.0 Beta 1 for 1.19.4

Published by Juuxel over 1 year ago

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)
LibGui - 6.5.3 for 1.19.3

Published by Juuxel over 1 year ago

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)
LibGui - 6.5.2 for 1.19.3

Published by Juuxel over 1 year ago

Repository version: 6.5.2+1.19.3

Fixed

  • Selecting text in a WTextField applies blue tint to wrong field (#182)
LibGui - 6.5.1 for 1.19.3

Published by Juuxel almost 2 years ago

Repository version: 6.5.1+1.19.3

Fixed

  • WItem display position offset (#181 by @APeng215)
LibGui - 6.5.0 for 1.19.3

Published by Juuxel almost 2 years ago

Repository version: 6.5.0+1.19.3

Changed

  • Updated to Minecraft 1.19.3
LibGui - 6.4.0 for 1.19-1.19.2

Published by Juuxel almost 2 years ago

Repository version: 6.4.0+1.19

Added

  • Allow WGridPanel to have gaps between widgets (#170 by @romangraef)
  • Icon size settings for WButton (#175 by @alex-haas)

Fixed

  • Spacing of WButton icons (#175 by @alex-haas)
LibGui - 6.3.0 for 1.19-1.19.2

Published by Juuxel about 2 years ago

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 - LibGui 6.2.0 for 1.19.x

Published by Juuxel about 2 years ago

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 - LibGui 6.1.0 for 1.19.x

Published by Juuxel about 2 years ago

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
LibGui - 6.0.1 for 1.19-1.19.2

Published by Juuxel about 2 years ago

Repository version: 6.0.1+1.19

Changed

  • WWidget.setHost now does similar null checks as validate
  • WPanel now sets child hosts as well in setHost

Fixed

  • WListPanel not setting hosts to every child (#169)
  • LibGui Settings Panel sizing issue (#171)
LibGui - 6.0.0 for 1.19

Published by Juuxel over 2 years ago

Repository version: 6.0.0+1.19

Changed

  • Updated to Minecraft 1.19:
    • 22w14a: #157 by @frqnny
  • WItem now accepts TagKey instead of Tag, which was removed

Removed

  • Deprecated methods WLabel(String), WLabel(String, int) and WTextField.setSuggestion(String)
LibGui - 6.0.0 Beta 5 for 1.19-pre1

Published by Juuxel over 2 years ago

Repository version: 6.0.0-beta.5+1.19-pre1

Fixed

  • Tab panels looking awful and broken
LibGui - 5.4.2 for 1.18.2

Published by Juuxel over 2 years ago

Repository version: 5.4.2+1.18.2

Fixed

  • Tab panels looking awful and broken
LibGui - 5.4.1 for 1.18.2

Published by Juuxel over 2 years ago

Repository version: 5.4.1+1.18.2

Fixed

  • WBox.add checking its own canResize instead of the added widget's canResize, leading to layout errors (#162)
LibGui - 6.0.0 Beta 4 for 1.19-pre1

Published by Juuxel over 2 years ago

Repository version: 6.0.0-beta.4+1.19-pre1

Fixed

  • WBox.add checking its own canResize instead of the added widget's canResize, leading to layout errors (#162)
LibGui - 6.0.0 Beta 3 for 1.19 Pre-Release 1

Published by Juuxel over 2 years ago

Repository version: 6.0.0-beta.3+1.19-pre1

Changed

  • Now runs on 1.19 Pre-Release 1
  • WItem now accepts TagKey instead of Tag, which was removed
LibGui - 6.0.0 Beta 2 for Minecraft 22w16b

Published by Juuxel over 2 years ago

Repository version: 6.0.0-beta.2+22w16b

Changed

  • Updated to Minecraft 22w16b

Removed

  • Deprecated methods WLabel(String), WLabel(String, int) and WTextField.setSuggestion(String)

Fixed

  • Closing the config screen did not return back to the original screen
LibGui - 5.4.0 for Minecraft 1.18.2

Published by Juuxel over 2 years ago

Repository version: 5.4.0+1.18.2

Changed

  • Deprecated some String overloads of Text-related methods for removal in 6.0.0
    • WLabel(String) and WLabel(String, int)
    • WTextField.setSuggestion(String)

Fixed

  • Closing the config screen did not return back to the original screen
LibGui - 6.0.0 Beta 1

Published by Juuxel over 2 years ago

Repository version: 6.0.0-beta.1+22w14a

Note: the major version bump is just to prepare for any possible breaking changes in Minecraft snapshots - this version doesn't have any breaking changes.

Changed

  • Updated to Minecraft 22w14a (#157 by @frqnny)
LibGui - 5.3.2 for 1.18.2

Published by Juuxel over 2 years ago

Repository version: 5.3.2+1.18.2

Changed

  • Updated to 1.18.2 (#155 by @Gregory1234)
  • LibGui now only depends on these four Fabric API modules:
    1. fabric-api-base
    2. fabric-lifecycle-events-v1
    3. fabric-networking-api-v1
    4. fabric-rendering-v1

Fixed

  • Outdated Fabric Structure API being pulled in into 1.18.2 environments (#156)