Version 0.6.14
pip install pygame_gui --upgrade
This release brings several major UI enhancements including a new checkbox element, improved image handling capabilities, and an important security fix for password fields. The changes continue to improve both the functionality and security of the library while adding new features requested by the community.
Major Features
-
NEW
UICheckBox
Element - A new UI element that provides standard checkbox functionality with full theming support and the ability to handle both checked and unchecked states with appropriate visual feedback. -
Multiple Images Support - Buttons and panels can now display multiple images simultaneously, with precise control over image positioning. This enables more complex UI designs like buttons with both icons and background images.
-
Enhanced Text Effects - Text effects can now span across multiple chunks of text, allowing for more sophisticated text styling and animations that maintain consistency across line breaks and different text styles.
-
Directional Border Control - New theming capability to set different border widths for each side of rectangular UI elements independently, providing much more flexible styling options for creating modern UI designs.
-
Password Field Security - Fixed a critical security issue in UITextEntryLine where replacing text in a hidden field (like a password input) could temporarily reveal the hidden text. The fix ensures text remains securely hidden during all text operations.
Minor Features & Enhancements
- Text Entry Improvements - Added text alignment support for text entry elements
- Button Image Handling - Added autoscaling images theming parameter to buttons
- Tab Defaults - Added ability to set default values when creating tabs
- Image Positioning - Added precise control over image positioning on UI elements
Documentation Updates
- Improved documentation for progress bar methods and properties
- Enhanced documentation around premultiplied alpha
- Various documentation clarifications and updates
Bug Fixes & Other Changes
- Fixed margin bug with UI Panel's set_position() method
- Improved HTML tag parsing with interleaved end tags
- General code quality improvements and optimizations
- Enhanced type hints and error handling
Contributors
Thanks to all our contributors who helped make this release possible!
Full PR List
- document progress bar methods/property by @MyreMylar in #663
- Improve documentation around premultiplied alpha by @MyreMylar in #664
- General code quality by @MyreMylar in #672
- Add text effects spanning multiple chunks by @MyreMylar in #677
- Resolve margin bug with UI Panel set_position() by @MyreMylar in #678
- Improve html tag parsing with interleaved end tags by @MyreMylar in #679
- If UITextEntryLine.is_text_hidden is True, replacing text now doesn't reveal the text (and added a unit test) by @oddbookworm in #686
- Try to set a default value for creating tabs by @LondonClass in #681
- Add text alignment on text entry by @MyreMylar in #687
- Add a new UICheckBox element by @MyreMylar in #688
- Add autoscaling images theming parameter to button by @MyreMylar in #689
- General code improvements by @MyreMylar in #690
- Add multiple images on buttons, panels by @MyreMylar in #691
- Add positioning of images on elements by @MyreMylar in #692
- Add directional border widths by @MyreMylar in #693
New Contributors
- @oddbookworm made their first contribution in #686
Full Changelog: v_0613...v_0614