Releases: CottonMC/LibGui
Releases Β· CottonMC/LibGui
7.0.0 RC 1 for 1.19.4
Repository version: 7.0.0-rc.1+1.19.4
Added
ItemSyncedGuiDescription
, a specialisedSyncedGuiDescription
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 propertylibgui.allowItemUse
totrue
.
7.0.0 Beta 2 for 1.19.4
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
toFocusModel
- Improve focus model documentation
7.0.0 Beta 1 for 1.19.4
Repository version: 7.0.0-beta.1+1.19.4
Added
Focus
andFocusHandler
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
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
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
6.5.0 for 1.19.3
Repository version: 6.5.0+1.19.3
Changed
- Updated to Minecraft 1.19.3
6.4.0 for 1.19-1.19.2
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)
6.3.0 for 1.19-1.19.2
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
Repository version: 6.2.0+1.19
Added
WItemSlot.SLOT_TEXTURE
to refer to the default texture of item slots andBackgroundPainter.ITEM_SLOT
Changed
BackgroundPainter.SLOT
now drawsWItemSlot
s with a texture instead of coloured rectangles- This lets resource packs modify the look of slots. (#128)