Releases: CottonMC/LibGui
Releases · CottonMC/LibGui
8.1.0 for Minecraft 1.20.1
Repository version: 8.1.0+1.20.1
Added
- Separate input/output filters for
WItemSlot
andValidatedSlot
(#209 by @Luligabi1) - New protected fields to
WPlayerInvPanel
(#209):WItemSlot inventory
WItemSlot hotbar
@Nullable WWidget label
Changed
WScrollBar
is now painted using textures instead of code (#212 by @LopyMine)- Updated French translations (#208 by @jagerbob)
Deprecated
ValidatedSlot
:getFilter
,setFilter
- replaced withget/setInputFilter
WItemSlot
:getFilter
,setFilter
- replaced withget/setInputFilter
Fixed
- Hard requirement on MC 1.20.1 being a soft requirement
8.0.2 for 1.20(.1)
Repository version: 8.0.2+1.20
Changed
- Updated Tatar translation (#206 by @Amirhan-Taipovjan-Greatest-I)
- Updated bundled Jankson-Fabric version
8.0.1 for 1.20
Repository version: 8.0.1+1.20
Fixed
WPanelWithInsets.expandToFit(WWidget)
not taking the insets into account
8.0.0 for 1.20
Repository version: 8.0.0+1.20
Changed
- Updated to Minecraft 1.20
- Replaced all MatrixStack parameters with DrawContext
Fixed
- Incorrect position for screen titles with non-left alignment
7.1.1 for 1.19.4
Repository version: 7.1.1+1.19.4
Fixed
- Incorrect position for screen titles with non-left alignment
8.0.0 Beta 1 for 1.20-rc1
Repository version: 8.0.0-beta.1+1.20-rc1
Changed
- Updated to Minecraft 1.20
- Replaced all
MatrixStack
parameters withDrawContext
7.1.0 for 1.19.4
Repository version: 7.1.0+1.19.4
Added
- GUI- and widget-level dark mode toggles to override LibGui's global setting
GuiDescription.isDarkMode()
is the primary API method here. Override it to force dark or light mode by returning a non-DEFAULT
value.WWidget.shouldRenderInDarkMode()
checks if a specific widget should use dark mode or light mode. Custom widgets can simply replace calls toLibGui.isDarkMode()
withshouldRenderInDarkMode()
calls.- All built-in widgets and background painters support the new API.
7.0.1 for 1.19.4
Repository version: 7.0.1+1.19.4
Fixed
- Maven publishing details referencing dependencies of the test mod
7.0.0 for 1.19.4
Added
- Tatar translation (#195 by @Amirhan-Taipovjan-Greatest-I)
Changed
Fixed
- Crash when tabbing to a text field and typing text after calling
setText("")
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
.