Skip to content

Releases: CottonMC/LibGui

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

3.2.0

18 Oct 13:43
Compare
Choose a tag to compare

Repository version: 3.2.0+1.16.3

Added

  • Constructor to ItemIcon that takes an Item and uses its default stack
  • Portuguese translation (#88 by @cominixo)
  • Finnish translation

Changed

  • The WTabPanel.Tab constructor is now deprecated in favour of the builder

Fixed

  • Tab panels not working on servers (#86)
  • Slot insertion checks working incorrectly (#87)

3.1.0

11 Oct 10:47
Compare
Choose a tag to compare

Repository version: 3.1.0+1.16.3

Added

  • WCardPanel.getCardCount: returns the number of cards in the panel
  • WPlayerInvPanel.createInventoryLabel: creates an "Inventory" label for player inventories, useful when you want to customize the label