9.0.0 for Minecraft 1.20.2
Repository version: 9.0.0+1.20.2
Added
BackgroundPainter.createGuiSprite
: creates a background painter from a sprite on the GUI atlasTexture
now supports both standalone texture files and sprites on the GUI atlas- The
Texture.Type
enum has two values:STANDALONE
andGUI_SPRITE
- Each sprite has an associated
Type
value. The pre-existing constructors still create standalone textures, but you can also passType.GUI_SPRITE
to wrap GUI sprites
- The
WScrollBar.get/setScrollingSpeed
to control the mouse scroll speed of scroll bars (#218 by @LopyMine)
Changed
- Updated to Minecraft 1.20.2
WButton
andWLabeledSlider
can now have any height- Note: this can lead to existing screens rendering slightly differently. If you want the old behaviour, you can set the height to 20 manually.
WWidget.onMouseScroll
now has support for both horizontal and vertical scrolling- Many texture files were moved to the GUI sprite atlas to support vanilla's data-driven nine-slice textures.
libgui:textures/widget/dark_widgets.png
was moved and split up:- Note: these names match the corresponding light mode vanilla textures.
libgui:textures/gui/sprites/widget/button_dark.png
libgui:textures/gui/sprites/widget/button_disabled_dark.png
libgui:textures/gui/sprites/widget/button_highlighted_dark.png
libgui:textures/gui/sprites/widget/slider_handle_dark.png
libgui:textures/gui/sprites/widget/slider_handle_highlighted_dark.png
- Panel textures were moved:
libgui:textures/widget/panel_dark.png
->libgui:textures/gui/sprites/widget/panel_dark.png
libgui:textures/widget/panel_light.png
->libgui:textures/gui/sprites/widget/panel_light.png
- Scroll bar textures were moved:
libgui:textures/widget/scroll_bar/background_dark.png
→libgui:textures/gui/sprites/widget/scroll_bar/background_dark.png
libgui:textures/widget/scroll_bar/background_light.png
→libgui:textures/gui/sprites/widget/scroll_bar/background_light.png
libgui:textures/widget/scroll_bar/focus.png
→libgui:textures/gui/sprites/widget/scroll_bar/focus.png
libgui:textures/widget/scroll_bar/thumb_dark.png
→libgui:textures/gui/sprites/widget/scroll_bar/thumb_dark.png
libgui:textures/widget/scroll_bar/thumb_hovered_dark.png
→libgui:textures/gui/sprites/widget/scroll_bar/thumb_hovered_dark.png
libgui:textures/widget/scroll_bar/thumb_hovered_light.png
→libgui:textures/gui/sprites/widget/scroll_bar/thumb_hovered_light.png
libgui:textures/widget/scroll_bar/thumb_light.png
→libgui:textures/gui/sprites/widget/scroll_bar/thumb_light.png
libgui:textures/widget/scroll_bar/thumb_pressed_dark.png
→libgui:textures/gui/sprites/widget/scroll_bar/thumb_pressed_dark.png
libgui:textures/widget/scroll_bar/thumb_pressed_light.png
→libgui:textures/gui/sprites/widget/scroll_bar/thumb_pressed_light.png
Removed
- Unused field:
WButton.darkmodeColor
Fixed
ScreenDrawing.texturedRect
not respecting the provided ARGB colour's alpha valuesScreenDrawing.texturedRect
"leaking" shader colours