Bot releases are hidden (Show)
Published by Juuxel over 3 years ago
Repository version: 4.0.0+1.17
>> Migration guide <<
InputResult
: an enum describing whether mouse events are processed or ignored
Insets
: a data class describing how far the children of a panel are from each side
WPanelWithInsets
: a panel that has insets applied and can automatically reposition children when they are changedWPlainPanel
, WGridPanel
and WBox
support insets out of the boxWAbstractSlider.dragging
with isDragging
(#100)Vec2i
: a generic 2D integer vector used for screen positionsGuiDescription.get/setTitlePos
: used to adjust the title positionWScrollBar
: scrolling is 4 times fasterWListPanel
: added scrolling supportWScrollPanel
: added scrolling supportWButton
: dark mode texturesMatrixStack
BackgroundPainters.createNinePatch
was reworkedNinePatch
background painter class was replaced with NinePatchBackgroundPainter
Texture
is now a recordCottonHud
methods are now static; CottonHud.INSTANCE
was removedWTextField
fields are now privateBackgroundPainter.VANILLA
no longer has any paddingio.github.cottonmc.libgui.client.LibGuiClient
WTextField.insertText
(was unimplemented)WWidget.createPeers
(replaced with validate
)ScreenNetworking
Published by Juuxel over 3 years ago
Repository version: 4.0.0-beta.4+1.17-rc1
WPanelWithInsets
as a common superclass for WBox
, WGridPanel
and WPlainPanel
handling the insets logicPublished by Juuxel over 3 years ago
Repository version: 4.0.0-beta.3+1.17-pre1
Published by Juuxel over 3 years ago
NinePatch
background painter class was partially recreated as NinePatchBackgroundPainter
, which has the same padding methods.Published by Juuxel over 3 years ago
Repository version: 4.0.0-beta.1+1.17-pre1
WTextField
changes
WTextField.insertText
CottonHud
from singleton enum to a bunch of static methodsTexture
into a recordVec2i
into widget.data
WTextField
internals)Published by Juuxel over 3 years ago
Repository version: 4.0.0-alpha.3+21w20a
math.Vec2i
: a simple two-dimensional int vectorGuiDescription.get/setTitlePosition
for adjusting the screen's title positionInsets
is now a recordNinePatch
class, 9patch background painters are now created using BackgroundPainter.createNinePatch
Published by Juuxel over 3 years ago
Repository version: 4.0.0-alpha.2+21w20a
Published by Juuxel over 3 years ago
Repository version: 3.4.0+1.16.5
MatrixStack
overloads for ScreenDrawing
methods. The other ones are now deprecated, to be removed in 4.0.0.LibGui.isDarkMode()
as a replacement for directly accessing LibGuiClient.config.darkMode
, which will be removed in 4.0.0.Published by Juuxel over 3 years ago
Repository version: 4.0.0-alpha.1+21w11a
Insets
to replace padding added by background painters. They describe the inner padding of a panel (distance between the content and the panel's edges).LibGui
class with LibGui.isDarkMode
to check for dark mode instead of looking in the config.InputResult
enum for cascading (for example, scrolling events can pass through to the scroll panel)WAbstractSlider.isDragging
(#100)WScrollPanel
and WListPanel
ScreenDrawing.drawTextHover
for drawing text hover effectsBackgroundPainter.VANILLA
and BackgroundPainter.createColorful
no longer have any padding appliedMatrixStack
s.impl
package or its subpackages.ScreenNetworking
Published by Juuxel over 3 years ago
Repository version: 3.3.5+1.16.5
Slot#getMaxItemCount(ItemStack)
instead of Slot#getMaxItemCount()
(#99 by @GabrielOlvH)Published by Juuxel over 3 years ago
Repository version: 3.3.3+1.16.5
Screen.renderBackground
calls being super.renderBackground();
in LibGui screens. They should now be properly overrideable.Screen.init(MinecraftClient, int, int)
with init()
(should be more maintainable).Published by Juuxel almost 4 years ago
Repository version: 3.3.2+1.16.4
Published by Juuxel almost 4 years ago
Repository version: 3.3.1+1.16.4
Published by Juuxel almost 4 years ago
Repository version: 3.3.0+1.16.4
Published by Juuxel almost 4 years ago
Repository version: 3.2.2+1.16.3
(also works on 1.16.3)
This update includes two scroll bar improvement PRs by @Sturmlilie.
Published by Juuxel almost 4 years ago
Repository version: 3.2.1+1.16.3
Published by Juuxel about 4 years ago
Repository version: 3.2.0+1.16.3
ItemIcon
that takes an Item
and uses its default stackWTabPanel.Tab
constructor is now deprecated in favour of the builderPublished by Juuxel about 4 years ago
Repository version: 3.1.0+1.16.3
WCardPanel.getCardCount
: returns the number of cards in the panelWPlayerInvPanel.createInventoryLabel
: creates an "Inventory" label for player inventories, useful when you want to customize the labelPublished by Juuxel about 4 years ago
Repository version: 3.0.0+1.16.3
TooltipBuilder
for creating widget tooltips. It replaces the old List<Text>
with a nicer API that can take both Text
s and OrderedText
s.Texture
for specifying UV values for any textures
TextureIcon
WBar
WSprite
WTiledSprite
WToggleButton
ScreenDrawing
has new methods for drawing Texture
sWItemSlot
and ValidatedSlot
WItemSlot.ChangeListener
can be added to WItemSlot
s using WItemSlot.addChangeListener
WWidget
now has two methods, onShown
and onHidden
, that can be called when a widget is shown or hidden by its parent panel
Text
again instead of StringVisitable
ScreenDrawing
takes OrderedText
s instead of StringVisitable
sWWidget.addTooltip
takes a TooltipBuilder
instead of a List<Text>
WBar
, WSprite
and WToggleButton
use Texture
s instead of Identifier
sWWidget.paint
missing @Environment(CLIENT)
annotationsPublished by Juuxel about 4 years ago
Repository version: 3.0.0-beta.1+1.16.2-rc2
TooltipBuilder
for creating widget tooltips. It replaces the old List<Text>
with a nicer API that can take both Text
s and OrderedText
s.Texture
for specifying UV values for any textures
TextureIcon
WBar
WSprite
WTiledSprite
WToggleButton
ScreenDrawing
has new methods for drawing Texture
sWItemSlot
and ValidatedSlot
WItemSlot.ChangeListener
can be added to WItemSlot
s using WItemSlot.addChangeListener
Text
again instead of StringVisitable
ScreenDrawing
takes OrderedText
s instead of StringVisitable
sWWidget.addTooltip
takes a TooltipBuilder
instead of a List<Text>
WBar
, WSprite
and WToggleButton
use Texture
s instead of Identifier
sWWidget.paint
missing @Environment(CLIENT)
annotations