Skip to content

Releases: CottonMC/LibGui

7.0.0 RC 1 for 1.19.4

10 Apr 16:10
Compare
Choose a tag to compare
7.0.0 RC 1 for 1.19.4 Pre-release
Pre-release

Repository version: 7.0.0-rc.1+1.19.4

Added

  • ItemSyncedGuiDescription, a specialised SyncedGuiDescription for creating GUIs for item stacks contained in inventories

Changed

  • Opening a LibGui screen inside an item usage method (Item.use/useOnBlock/useOnEntity) in a dev environment will now immediately crash. Setting screens inside those methods is unsafe with respect to threading and side-only code. This check can be disabled by setting the system property libgui.allowItemUse to true.

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)