Skip to content

Releases: CottonMC/LibGui

1.6.0

17 Feb 17:44
Compare
Choose a tag to compare

Added

  • HUD widget support
  • ScreenDrawing javadocs

Fixed

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

1.5.1

25 Jan 22:11
Compare
Choose a tag to compare

Fixed:

  • onMouseMove was using the X position of the mouse instead of the Y position.

1.5.0

25 Jan 17:00
Compare
Choose a tag to compare

Added:

  • A new nine-patch background painter that can paint widgets using nine-patch textures.
    • BackgroundPainter.VANILLA_9PATCH is an experimental panel background painter that looks like a vanilla GUI panel and is textureable.
  • (Experimental) WTitle, a widget for displaying titles in fancy GUI panel boxes. Inspired by Spinnery.
  • Better mouse events:
    • onMouseDrag now provides the two dragging amount variables
    • onMouseMove lets you run code when the mouse is moved inside a widget

Fixed:

  • WClippedPanel and WListPanel now work again.
    • Note that because they use glScissor instead of depth testing, WClippedPanel masks are not supported anymore.

1.4.0

19 Jan 10:40
Compare
Choose a tag to compare

Added:

  • Added select-all to text fields (#28)
  • Added dynamic labels (#24)
  • (Beta 1) Added getters and setters for button labels and alignments
  • (Beta 1) WToggleButton.setLabel now returns WToggleButton
  • Updated to Minecraft 1.15.1

Fixed:

  • Fixed values not being adjusted to the new range in WAbstractSlider.set[Min/Max]Value (#17)
  • Fixed text field selections going outside the widget (#29)

1.3.2

30 Aug 14:55
e3631b3
Compare
Choose a tag to compare

This is expected to be the final 1.14 version. Development of new features will continue on snapshots.

New widgets and BG painters

10 Jul 05:16
Compare
Choose a tag to compare
  • add WSprite widget for displaying images or animations in a gui
  • add WPlayerInvPanel widget for quickly/easily drawing a player's inventory and applying painters to it
    • CottonContainer#createPlayerInventoryPanel now returns a WPlayerInvPanel
  • add BackgroundPainter.SLOT for painting slots with vanilla coloring

Initial Release

09 Jul 23:52
Compare
Choose a tag to compare
  • Initial release separate from Cotton