Skip to content

Releases: CottonMC/LibGui

LibGui 6.1.0 for 1.19.x

06 Sep 11:55
Compare
Choose a tag to compare

Repository version: 6.1.0+1.19

Added

  • Stabilised observable properties, including ObservableProperty, ObservableView and WWidget.hovered

Changed

  • Refactors to mouse and keyboard input methods in screens (#173)
    • Input methods are now consistent between the screen classes
    • Keyboard methods call super methods in (Handled)Screen if there's no focused widget
    • Removed null checks with fallbacks, a null root panel crashes because it's not a valid state
  • The check for releasing focus on mouse clicks and WPanel.hit now use WWidget.isWithinBounds instead of coordinate comparisons for checking if the cursor is inside a widget
  • Minor javadoc improvements
    • Better output for the @properties tag(let)
      • Now generates a "frame" around it like the other summary sections
      • Now has the property visibility and type in the table
    • Yarn javadoc is linked again

Fixed

  • Incompatibility with EMI due to missing super method calls for inputs
  • CottonClientScreen now never delivers Esc and Tab key press events to widgets (this was already the case in CottonInventoryScreen)
  • A bug where focus was released in CottonClientScreen when clicking on focused widgets because the mouse coordinates weren't offset correctly
  • CottonInventoryScreen never releasing focus when clicking outside the focused widget's bounds
  • Unfocusing item slots not resetting the focused slot to -1

6.0.1 for 1.19-1.19.2

16 Aug 13:00
Compare
Choose a tag to compare

Repository version: 6.0.1+1.19

Changed

  • WWidget.setHost now does similar null checks as validate
  • WPanel now sets child hosts as well in setHost

Fixed

  • WListPanel not setting hosts to every child (#169)
  • LibGui Settings Panel sizing issue (#171)

6.0.0 for 1.19

17 Jun 11:59
Compare
Choose a tag to compare

Repository version: 6.0.0+1.19

Changed

  • Updated to Minecraft 1.19:
  • WItem now accepts TagKey instead of Tag, which was removed

Removed

  • Deprecated methods WLabel(String), WLabel(String, int) and WTextField.setSuggestion(String)

6.0.0 Beta 5 for 1.19-pre1

28 May 22:14
Compare
Choose a tag to compare
Pre-release

Repository version: 6.0.0-beta.5+1.19-pre1

Fixed

  • Tab panels looking awful and broken

5.4.2 for 1.18.2

28 May 22:09
Compare
Choose a tag to compare

Repository version: 5.4.2+1.18.2

Fixed

  • Tab panels looking awful and broken

6.0.0 Beta 4 for 1.19-pre1

23 May 10:05
Compare
Choose a tag to compare
Pre-release

Repository version: 6.0.0-beta.4+1.19-pre1

Fixed

  • WBox.add checking its own canResize instead of the added widget's canResize, leading to layout errors (#162)

5.4.1 for 1.18.2

23 May 10:07
Compare
Choose a tag to compare

Repository version: 5.4.1+1.18.2

Fixed

  • WBox.add checking its own canResize instead of the added widget's canResize, leading to layout errors (#162)

6.0.0 Beta 3 for 1.19 Pre-Release 1

19 May 17:45
Compare
Choose a tag to compare
Pre-release

Repository version: 6.0.0-beta.3+1.19-pre1

Changed

  • Now runs on 1.19 Pre-Release 1
  • WItem now accepts TagKey instead of Tag, which was removed

6.0.0 Beta 2 for Minecraft 22w16b

25 Apr 10:18
Compare
Choose a tag to compare
Pre-release

Repository version: 6.0.0-beta.2+22w16b

Changed

  • Updated to Minecraft 22w16b

Removed

  • Deprecated methods WLabel(String), WLabel(String, int) and WTextField.setSuggestion(String)

Fixed

  • Closing the config screen did not return back to the original screen

5.4.0 for Minecraft 1.18.2

25 Apr 10:08
Compare
Choose a tag to compare

Repository version: 5.4.0+1.18.2

Changed

  • Deprecated some String overloads of Text-related methods for removal in 6.0.0
    • WLabel(String) and WLabel(String, int)
    • WTextField.setSuggestion(String)

Fixed

  • Closing the config screen did not return back to the original screen