Repository navigation
·
0 commits
to 401675796a9c2c638302e3d6bbffa2bf09495c3c
since this release
Added
- PrettyUI now has user facing settings accessible from the plugin menu, the ribbon and the Classic sidebar.
- Added
Tablecomponent, this can be used to easily display data in a responsive table format. - Added
prettyui.IsClassicUI()to read if the player is currently in Classic Interface mode. - Added the
NisPanelcomponent, matching the visuals and behavior of panels in the modern interface. Set a stableidto persist bounds, tab groups, order, and the active tab;dockTosupplies a first-use docking default. On classic interface mode, NisPanels adapt to an osrs-like sidebar layout. Collapse buttonsnow accept everyAdd…method a window has exceptAddTabs,AddPanelandAddCollapseButton.
Changed
- PrettyUI components are now hidden while the player is viewing the world map.
windowcomponents now snap. While being dragged, windows snap to other PrettyUI windows, the game's own interfaces that use snapping, and the screen edges. SetsnapToEdges = falseto opt out.windownow has aHide()method, which hides the window without invokingonClose.panelnow hasHide(),Show()andClose()methods andonCloseanddestroyOnClosecallback options.- Titles and body text now wrap and resize vertically as their available width changes.
- Titles no longer default to a single-line limit.
- Nested
panelsthat follow their parent's width keep following it after a height-only resize by the end user or a fit to their content. Only resizing their width or calling setSize() stops it. - A
panel's popped-out size and docked size are now independent of each other. - Dragging a scrollbar no longer stops while the mouse passes over a resizable window's edge.
Radio and checkbox buttonlabels can now wrap to fit the parent's width. Set themaxLinesoption to allow it.Collapse buttonsnow lay out their content like windows: controls use window spacing instead of a fixed 4 px gap,inlinecontrols share a row,marginTopadds to the gap instead of replacing it, and destroying a control moves the ones below it up.
Fixed
- Controls with a
heightAnchorno longer make a scrolling page or a collapse section taller each time its layout re-flows. - Improved hover feedback on keybind fields and restored the missing clear sprite for resetting keybinds.
Windowscan now be positioned visually flush against the edges of their parents.Slidermarkers now move with the track when the window or panel holding them is resized.- Nested panels' content now resizes when the parent being resized causes the panel to be resized.
- Nested Panels are linked to their parent again, which 1.3.0 had broken.
- Fixed a crash condition when traversing the component tree checking parents with non-layer children
- Fixed how Text added to a
collapse buttonwraps and resizes to avoid clipping.
Credits
This version of PrettyUI contains changes from multiple community developers, a big thank you to:
- Psymansayz
- CJ Fritz
- Keensta
- TheJoshJ
- Stitch-P (testing and feedback)