LibGui

Buttons & Co

MIT License

Stars
288
Committers
34

Bot releases are hidden (Show)

LibGui - 2.3.0

Published by Juuxel about 4 years ago

Repository version: 2.3.0+1.16.1

Added

  • RGB interpolation method (#64 by @fiws)

Fixed

  • SyncedGuiDescription.insertIntoExisting not respecting Slot.getMaxStackAmount (#78 by @CoolMineman)
LibGui - 2.2.0

Published by Juuxel over 4 years ago

Repository version: 2.2.0+1.16.1

Added

  • WTiledSprite: getters (#72 by @fiws) and setters for tileWidth and tileHeight
  • Icon API:
    • Icons are drawable square objects that can be attached to some widgets; currently only to buttons.
    • Two default types of icons: ItemIcon which draws an item stack, and TextureIcon which draws a texture
  • Added a getter for WButton.onClick

Fixed

  • Horizontal sliders facing left instead of right by default (#73 by @fiws)
LibGui - 2.1.1

Published by Juuxel over 4 years ago

Repository version: 2.1.1+1.16.1

Fixed

  • Player inventories not having slot peers, causing them to have no items
LibGui - 2.1.0

Published by Juuxel over 4 years ago

Repository version: 2.1.0+1.16.1

Added

  • GuiDescription.get/setTitleAlignment: for modifying the horizontal alignment of titles
  • GuiDescription.setTitleColor(int, int): for setting the light and dark title colors separately
  • WWidget.get/setHost: for modifying the widget host directly in cases where validate cannot be used, such as lists
  • Alignment support for WBox

Changed

  • Deprecated WWidget.createPeers in favour of WWidget.validate

Fixed

  • Slot peers having incorrect IDs (#68)
  • GuiDescription.setTitleColor(int) not setting the dark title color
LibGui - 2.0.1

Published by Juuxel over 4 years ago

Repository version: 2.0.1+1.16.1

Fixed

  • Crash on dedicated servers from BackgroundPainter being referenced in WItemSlot.<init>
  • Crash on dedicated servers from LibGuiClient.config being referenced in SyncedGuiDescription.getTitleColor
LibGui - 2.0.0

Published by Juuxel over 4 years ago

Repository version: 2.0.0+1.16

See the migration guide.

Added

  • Keyboard navigation
  • WBox: a BoxLayout-like panel that lays widgets on an axis
  • WScrollPanel: a scrollable widget wrapper
  • A lot of new getters, setters and text rendering methods were added
  • Player inventory widgets now have an Inventory label by default
  • Global GL scissor stack (#59)
  • WTiledSprite (#62 by @fiws)
  • Texture rendering methods with opacity (#63 by @fiws)
  • Fullscreen mode for screens (#66)
  • Item slot filters
  • The screen title can now be hidden through methods in GuiDescription
  • New methods in SyncedGuiDescription to get meaningful fallback values for missing property delegates and inventories (useful with simple screen handlers)

Changed

  • CottonCraftingController was renamed to SyncedGuiDescription
    • Instead of a RecipeType, the SyncedGuiDescription constructor now takes a ScreenHandlerType that can be registered with Fabric API's ScreenHandlerRegistry.
  • Text alignment changes
    • Alignment was renamed to HorizontalAlignment
    • Added VerticalAlignment
    • WLabel/WText.alignment -> horizontalAlignment, added vertical alignment support for text widgets
  • Widget labels and tooltips now use StringRenderables instead of Texts
  • The default background painter is now the 9patch background painter for resource pack support
  • WItemSlot's unused ltr constructor parameter was removed
  • Custom widgets
    • WWidget.paintBackground has been renamed to paint. It now also takes the MatrixStack used for screen rendering.
    • All text rendering methods in ScreenDrawing also take a matrix stack now.

Removed

  • All deprecated content
  • Unused style class
  • BackgroundPainter.VANILLA_9PATCH
LibGui - 2.0.0 Beta 5

Published by Juuxel over 4 years ago

Repository version: 2.0.0-beta.5+1.16-rc1

Added

  • Item slot filters
  • New methods to get meaningful fallback values for missing property delegates and inventories (useful with simple screen handlers)
LibGui - 2.0.0 Beta 4

Published by Juuxel over 4 years ago

Repository version: 2.0.0-beta.4+1.16-pre8

Added

  • GuiDescription.isTitleVisible/setTitleVisible

Fixed

  • Player inventory labels not matching the title color of the GUI
  • GUI titles being at wrong places
LibGui - 2.0.0 Beta 3

Published by Juuxel over 4 years ago

Repository version: 2.0.0-beta.3+1.16-pre8

Added

  • CottonClientScreen: titleX and titleY
  • Both screens: made reposition protected

Fixed

  • Incorrect GL scissors being applied to screens
  • Screen titles being drawn at an incorrect position
LibGui - 2.0.0 Beta 2

Published by Juuxel over 4 years ago

Repository version: 2.0.0-beta.2+1.16-pre8

Added

  • Added a global GL scissor stack (#59)
  • Added a WTiledSprite widget (#62 by @fiws)
  • Added texture rendering methods with opacity (#63 by @fiws)
  • Added fullscreen mode for screens (#66)

Changed

  • The SyncedGuiDescription constructor now takes a ScreenHandlerType for usage with fabric-screen-handler-api-v1
  • Alignment changes
    • Alignment was renamed to HorizontalAlignment
    • Added VerticalAlignment
    • WLabel.alignment -> horizontalAlignment, added vertical alignment support for labels
  • WWidget.addTooltip now uses a list of StringRenderables instead of a list of Texts
LibGui - 2.0.0 Beta 1

Published by Juuxel over 4 years ago

See the migration guide.

New features:

  • Keyboard navigation
  • WBox: a BoxLayout-like panel that lays widgets on an axis
  • WScrollPanel: a scrollable widget wrapper
  • A lot of new getters, setters and text rendering methods were added
  • Player inventory widgets now have an Inventory label by default
LibGui - 1.11.0 - Slot Update (1.16)

Published by Juuxel over 4 years ago

For Minecraft 1.16 snapshots only.

  • Added WItemSlot.createSlotPeer which allows customising the ValidatedSlot peers for a WItemSlot.
  • Split slot modifiability into "taking allowed" and "inserting allowed" for more flexibility with slots.
LibGui - 1.10.0 - Slot Update (1.15)

Published by Juuxel over 4 years ago

For Minecraft 1.15.2 only.

  • Added WItemSlot.createSlotPeer which allows customising the ValidatedSlot peers for a WItemSlot.
  • Split slot modifiability into "taking allowed" and "inserting allowed" for more flexibility with slots.
LibGui - 1.9.1

Published by Juuxel over 4 years ago

  • Updated to 20w20b.

Maven version: 1.9.1+20w20b

LibGui - 1.9.0

Published by Juuxel over 4 years ago

  • Updated to 20w17a
  • Includes new methods in ScreenDrawing that can draw Texts on the screen
  • The current MatrixStack is now bound for rendering screens/HUDs, mostly used for text

Also contains everything from 1.8.2:

  • Added javadocs to widgets
  • Added missing @Nullable and @Environment annotations (fixed #41)
  • Fixed #45
  • Fixed text widgets not being resizeable
  • Fixed item widgets having weird scaling
LibGui - 1.8.2

Published by Juuxel over 4 years ago

  • Added javadocs to widgets
  • Added missing @Nullable and @Environment annotations (fixed #41)
  • Fixed #45
  • Fixed text widgets not being resizeable
  • Fixed item widgets having weird scaling
LibGui - 1.8.1

Published by Juuxel over 4 years ago

  • Fixed quick moving inserting items into unmodifiable slots (#43).
  • Fixed null inventories being found from the world.
LibGui - 1.8.0

Published by Juuxel over 4 years ago

Added

  • Unmodifiable slot widgets
  • Item display widgets (WItem)
  • Multiline text widgets (WText)
  • Custom UV support for sprites

Updated

  • Improved the look of scroll bars
  • The buttons look identical to vanilla now (#38)

Removed

  • Experimental WTitle widget
LibGui - 1.7.0

Published by Juuxel over 4 years ago

  • Added more scroll bar getters and setters (#34).
  • List panels should now always have at least one cell visible.
LibGui - 1.6.0

Published by Juuxel over 4 years ago

Added

  • HUD widget support
  • ScreenDrawing javadocs

Fixed

  • List panels not setting their children's hosts
  • Container screens with an empty inventory closing randomly