Bot releases are visible (Hide)
Published by Juuxel 2 months ago
Repository version: 11.1.0+1.21
WLabel
, WText
and WDynamicLabel
to draw shadows (#248 by @MarcusElg, #233, #245)WDynamicLabel
and a getter for the horizontal alignment (#249 by @MarcusElg, #202)WItemSlot
:
getInventory
, getStartIndex
, getSlotsWide
, getSlotsHigh
getPeers
, getPeerStartId
(#247)Repository version: 11.0.0+1.21
ValidatedSlot.getFilter
ValidatedSlot.setFilter
WItemSlot.getFilter
WItemSlot.setFilter
WListPanel.margin
Published by Juuxel 6 months ago
Repository version: 10.0.0+1.20.6
SyncedGuiDescription.getWorld
ScreenNetworking
now uses codecs instead of raw buffer access to better work with the game's networking updatesPublished by Juuxel 9 months ago
Repository version: 9.2.2+1.20.2
WSlider
having a client-sided field initialisers leading to a crash with Fabric Loader 0.15 (related to #231)Published by Juuxel 9 months ago
Repository version: 8.1.1+1.20.1
Published by Juuxel 10 months ago
Repository version: 9.2.1+1.20.2
Published by Juuxel 11 months ago
Repository version: 9.2.0+1.20.2
ItemIcon.setGhost(true)
.CottonInventoryScreen.paintDescription
for painting the GUI description of the screenWItemSlot.iconOnlyPaintedForEmptySlots
having flipped behaviour (#229)Published by Juuxel 11 months ago
Repository version: 9.1.0+1.20.2
WScrollPanel
scroll bar getters and setters (#225 by @tal5)WListPanel.insets
and WListPanel.gaps
properties for controlling the list item positioning (#221)WScrollPanel.insets
: for applying insets to the viewed widgetInsets.width()
and Insets.height()
: methods that compute the total width/height from insetsWItemSlot.iconOnlyPaintedForEmptySlots
(#203): can be set to true
to hide icons when a slot has itemsScreen.renderBackground
being called twice (#226)WWidget.addPainters
not being called for all WListPanel
childrenWListPanel.margin
field: replaced with insets
and gaps
Published by Juuxel about 1 year ago
Repository version: 9.0.0+1.20.2
BackgroundPainter.createGuiSprite
: creates a background painter from a sprite on the GUI atlasTexture
now supports both standalone texture files and sprites on the GUI atlas
Texture.Type
enum has two values: STANDALONE
and GUI_SPRITE
Type
value. The pre-existing constructors still create standalone textures, but you can also pass Type.GUI_SPRITE
to wrap GUI spritesWScrollBar.get/setScrollingSpeed
to control the mouse scroll speed of scroll bars (#218 by @LopyMine)WButton
and WLabeledSlider
can now have any height
WWidget.onMouseScroll
now has support for both horizontal and vertical scrollinglibgui:textures/widget/dark_widgets.png
was moved and split up:
libgui:textures/gui/sprites/widget/button_dark.png
libgui:textures/gui/sprites/widget/button_disabled_dark.png
libgui:textures/gui/sprites/widget/button_highlighted_dark.png
libgui:textures/gui/sprites/widget/slider_handle_dark.png
libgui:textures/gui/sprites/widget/slider_handle_highlighted_dark.png
libgui:textures/widget/panel_dark.png
-> libgui:textures/gui/sprites/widget/panel_dark.png
libgui:textures/widget/panel_light.png
-> libgui:textures/gui/sprites/widget/panel_light.png
libgui:textures/widget/scroll_bar/background_dark.png
→ libgui:textures/gui/sprites/widget/scroll_bar/background_dark.png
libgui:textures/widget/scroll_bar/background_light.png
→ libgui:textures/gui/sprites/widget/scroll_bar/background_light.png
libgui:textures/widget/scroll_bar/focus.png
→ libgui:textures/gui/sprites/widget/scroll_bar/focus.png
libgui:textures/widget/scroll_bar/thumb_dark.png
→ libgui:textures/gui/sprites/widget/scroll_bar/thumb_dark.png
libgui:textures/widget/scroll_bar/thumb_hovered_dark.png
→ libgui:textures/gui/sprites/widget/scroll_bar/thumb_hovered_dark.png
libgui:textures/widget/scroll_bar/thumb_hovered_light.png
→ libgui:textures/gui/sprites/widget/scroll_bar/thumb_hovered_light.png
libgui:textures/widget/scroll_bar/thumb_light.png
→ libgui:textures/gui/sprites/widget/scroll_bar/thumb_light.png
libgui:textures/widget/scroll_bar/thumb_pressed_dark.png
→ libgui:textures/gui/sprites/widget/scroll_bar/thumb_pressed_dark.png
libgui:textures/widget/scroll_bar/thumb_pressed_light.png
→ libgui:textures/gui/sprites/widget/scroll_bar/thumb_pressed_light.png
WButton.darkmodeColor
ScreenDrawing.texturedRect
not respecting the provided ARGB colour's alpha valuesScreenDrawing.texturedRect
"leaking" shader coloursPublished by Juuxel about 1 year ago
Repository version: 8.1.0+1.20.1
WItemSlot
and ValidatedSlot
(#209 by @Luligabi1)WPlayerInvPanel
(#209):
WItemSlot inventory
WItemSlot hotbar
@Nullable WWidget label
WScrollBar
is now painted using textures instead of code (#212 by @LopyMine)ValidatedSlot
: getFilter
, setFilter
- replaced with get/setInputFilter
WItemSlot
: getFilter
, setFilter
- replaced with get/setInputFilter
Published by Juuxel about 1 year ago
Repository version: 8.0.2+1.20
Published by Juuxel over 1 year ago
Repository version: 8.0.1+1.20
WPanelWithInsets.expandToFit(WWidget)
not taking the insets into accountPublished by Juuxel over 1 year ago
Repository version: 8.0.0+1.20
Published by Juuxel over 1 year ago
Repository version: 7.1.1+1.19.4
Published by Juuxel over 1 year ago
Repository version: 8.0.0-beta.1+1.20-rc1
MatrixStack
parameters with DrawContext
Published by Juuxel over 1 year ago
Repository version: 7.1.0+1.19.4
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 to LibGui.isDarkMode()
with shouldRenderInDarkMode()
calls.Published by Juuxel over 1 year ago
Repository version: 7.0.1+1.19.4
Published by Juuxel over 1 year ago
setText("")
Published by Juuxel over 1 year ago
Repository version: 7.0.0-rc.1+1.19.4
ItemSyncedGuiDescription
, a specialised SyncedGuiDescription
for creating GUIs for item stacks contained in inventoriesItem.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 property libgui.allowItemUse
to true
.Published by Juuxel over 1 year ago
Repository version: 7.0.0-beta.2+1.19.4
SimpleKeyedFocusModel
: a basic focus model implementation that supports multiple foci with unique keysFocusHandler
to FocusModel