Skip to content

Releases: CottonMC/LibGui

4.0.0 Alpha 2 for 21w20a

21 May 13:52
494e8a6
Compare
Choose a tag to compare
Pre-release

Repository version: 4.0.0-alpha.2+21w20a

3.4.0

18 Apr 13:21
753e06f
Compare
Choose a tag to compare

Repository version: 3.4.0+1.16.5

  • Added MatrixStack overloads for ScreenDrawing methods. The other ones are now deprecated, to be removed in 4.0.0.
  • Added LibGui.isDarkMode() as a replacement for directly accessing LibGuiClient.config.darkMode, which will be removed in 4.0.0.
  • Fixed dupe bug (#104 by @GabrielOlvH)

4.0.0 Alpha 1 for 21w11a

19 Mar 21:37
Compare
Choose a tag to compare
Pre-release

Repository version: 4.0.0-alpha.1+21w11a

Added

  • 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).
  • A LibGui class with LibGui.isDarkMode to check for dark mode instead of looking in the config.
  • Button dark mode support with textures originally by @shedaniel (#10)
  • Improved mouse events that use an InputResult enum for cascading (for example, scrolling events can pass through to the scroll panel)
  • WAbstractSlider.isDragging (#100)
  • Mouse scrolling support for WScrollPanel and WListPanel
  • ScreenDrawing.drawTextHover for drawing text hover effects

Changed

  • WScrollBar: Scrolling speed increased to 4x the previous amount
  • BackgroundPainter.VANILLA and BackgroundPainter.createColorful no longer have any padding applied
  • All rendering now uses MatrixStacks.
  • All implementation classes are now in the impl package or its subpackages.

Fixed

  • Labeled slider rendering issues
  • Memory leak in ScreenNetworking

3.3.5

16 Feb 15:31
Compare
Choose a tag to compare

Repository version: 3.3.5+1.16.5

  • Use Slot#getMaxItemCount(ItemStack) instead of Slot#getMaxItemCount() (#99 by @GabrielOlvH)

3.3.3

31 Jan 13:46
Compare
Choose a tag to compare

Repository version: 3.3.3+1.16.5

  • Fixed Screen.renderBackground calls being super.renderBackground(); in LibGui screens. They should now be properly overrideable.
  • Replaced Screen.init(MinecraftClient, int, int) with init() (should be more maintainable).
  • Fixed a rendering bug with large slots.
  • Fixed a rendering bug with labeled sliders.

3.3.2

21 Dec 16:38
Compare
Choose a tag to compare

Repository version: 3.3.2+1.16.4

Fixed

  • REI overlapping with LibGui screens

3.3.1

21 Dec 15:10
Compare
Choose a tag to compare

Repository version: 3.3.1+1.16.4

Fixed

  • Dedicated server crash on launch (ea894bb)

3.3.0

17 Dec 18:12
Compare
Choose a tag to compare

Repository version: 3.3.0+1.16.4

Added

  • Screen networking API (#61)
    • Note that LibGui requires Fabric Networking API v1 now

3.2.2

08 Nov 14:39
dac5dce
Compare
Choose a tag to compare

Repository version: 3.2.2+1.16.3 (also works on 1.16.3)

This update includes two scroll bar improvement PRs by @Sturmlilie.

Added

  • Mouse wheel scrolling for scroll bars (#90)

Changed

  • Scroll bars now have a more intuitive drag scroll threshold (#91)

3.2.1

24 Oct 11:35
Compare
Choose a tag to compare

Repository version: 3.2.1+1.16.3

Changed

  • Replaced javax annotations with Jetbrains annotations (should not affect dependents' code)

Fixed

  • HUD widgets not being ticked