Releases: CottonMC/LibGui
Releases · CottonMC/LibGui
15.1.0 for Minecraft 1.21.11
15.0.0 for Minecraft 1.21.9-rc1
Repository version: 15.0.0+1.21.9-rc1
Changed
- Updated to Minecraft 1.21.9
- Changed the parameters of the following
WWidgetmethods to use the new vanilla input records:onMouseDown(Click, boolean doubled)onMouseDrag(Click, double offsetX, double offsetY)onMouseUp(Click)onClick(Click, boolean doubled)onCharTyped(CharInput)onKeyPressed(KeyInput)onKeyReleased(KeyInput)- Two of these methods now automatically detect double clicks. That data is forwarded from vanilla code.
Removed
- Deprecated classes
CottonHudandScissors
14.0.0 for Minecraft 1.21.6
Repository version: 14.0.0+1.21.6
Added
WidgetHudElementwhich wraps aWWidgetfor the vanilla HUD API
Changed
- Updated to Minecraft 1.21.6
Scissors.push(DrawContext, int, int, int, int)no longer allows a null draw context- All text colours now need to set the alpha channel to match vanilla's updated text rendering methods
Deprecated
CottonHudin favour ofWidgetHudElementScissorsin favour of vanilla scissor methods inDrawContext
Removed
Scissors.pushoverload withoutDrawContextparameter
Known issues
- Ghost item icons have a square overlay on top of them instead of just affecting the item
13.1.0 for Minecraft 1.21.5
Repository version: 13.1.0+1.21.5
Added
ScreenNetworking.getReadyEvent()which will be triggered when messages are ready to send (#149)SyncedGuiDescription.getNetworking()to conveniently get access to theScreenNetworkinginstancesScreenMessageKey, which holds a screen message's ID and codec in one class. It can be used in new overloads ofScreenNetworking.send/receive.DataSlot, which is a property delegate-like container for automatically syncing GUI data. They can be registered usingSyncedGuiDescription.registerDataSlot().
Changed
ScreenNetworking.of()deprecated in favour ofSyncedGuiDescription.getNetworking()
Fixed
ObservablePropertyusing==instead ofequalsfor change events
13.0.0 for Minecraft 1.21.5
Repository version: 13.0.0+1.21.5
Note: There might be performance regressions in GUIs that use NinePatchBackgroundPainter heavily as the shader code was not yet completely ported to this release. This doesn't affect vanilla nine slice textures.
Changed
- Updated to Minecraft 1.21.5
- Text fields now use vanilla textures instead of drawing the widget fully in code
Removed
- The already nonfunctioning
WTextField.setBackgroundPainterAPI
5.4.3 for Minecraft 1.18.2
12.0.1 for Minecraft 1.21.2-1.21.4
Repository version: 12.0.1+1.21.2
Changed
- Now supports 1.21.4
12.0.0 for Minecraft 1.21.2/3
Repository version: 12.0.0+1.21.2
Added
GuiDescription.get/setUseDefaultRootBackground: can be used to disable the default background painter if your root panel doesn't need it (useful for tab panels)Scissors.pushoverload taking a nullableDrawContext. It's highly recommended that you move existing code to use this overload since it flushes buffered draw calls automatically. Otherwise, parts of widgets etc. can just disappear in GUIs using scissors.
Changed
- Updated to 1.21.2/3
WDynamicLabel.alignmentrenamed tohorizontalAlignment(along with getters and setters)
11.1.0 for Minecraft 1.21(.1)
Repository version: 11.1.0+1.21
Added
- Option for
WLabel,WTextandWDynamicLabelto draw shadows (#248 by @MarcusElg, #233, #245) - Vertical alignment in
WDynamicLabeland a getter for the horizontal alignment (#249 by @MarcusElg, #202) - Many new public properties in
WItemSlot:- Getters for the backing inventory details:
getInventory,getStartIndex,getSlotsWide,getSlotsHigh - Getters for the slot peer details:
getPeers,getPeerStartId(#247)
- Getters for the backing inventory details:
- Missing javadoc for some methods in the widgets mentioned before
Fixed
- Incorrect links and whitespace characters in javadoc
11.0.0 for Minecraft 1.21
Repository version: 11.0.0+1.21
Changed
- Updated to Minecraft 1.21
Removed
- Previously deprecated APIs:
ValidatedSlot.getFilterValidatedSlot.setFilterWItemSlot.getFilterWItemSlot.setFilterWListPanel.margin