Releases: CottonMC/LibGui
Releases Β· CottonMC/LibGui
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)
LibGui 6.1.0 for 1.19.x
Repository version: 6.1.0+1.19
Added
- Stabilised observable properties, including
ObservableProperty
,ObservableView
andWWidget.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 useWWidget.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
- Better output for the
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 inCottonInventoryScreen
)- 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