Skip to content

Releases

1.4.0

Choose a tag to compare

@github-actions github-actions released this 24 Nov 20:31

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 NisPanel component, matching the visuals and behavior of panels in the modern interface. Set a stable id to persist bounds, tab groups, order, and the active tab; dockTo supplies a first-use docking default. On classic interface mode, NisPanels adapt to an osrs-like sidebar layout.
  • Collapse buttons now accept every Add… method a window has except AddTabs, AddPanel and AddCollapseButton.

Changed

  • PrettyUI components are now hidden while the player is viewing the world map.
  • window components now snap. While being dragged, windows snap to other PrettyUI windows, the game's own interfaces that use snapping, and the screen edges. Set snapToEdges = false to opt out.
  • window now has a Hide() method, which hides the window without invoking onClose.
  • panel now has Hide(), Show() and Close() methods and onClose and destroyOnClose callback 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 panels that 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 button labels can now wrap to fit the parent's width. Set the maxLines option to allow it.
  • Collapse buttons now lay out their content like windows: controls use window spacing instead of a fixed 4 px gap, inline controls share a row, marginTop adds to the gap instead of replacing it, and destroying a control moves the ones below it up.

Fixed

  • Controls with a heightAnchor no 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.
  • Windows can now be positioned visually flush against the edges of their parents.
  • Slider markers 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 button wraps and resizes to avoid clipping.

Credits

This version of PrettyUI contains changes from multiple community developers, a big thank you to:

1.3.0

Choose a tag to compare

@github-actions github-actions released this 04 Nov 21:56
59866f5

Added

  • Added OverheadBars API
  • Added optional onPositionChange(window, x, y) and onPositionChange(panel, x, y, poppedOut) callbacks to be used for persisting component positions. These callbacks fire once the user stops their drag action on the targeted component.
  • Added automatic categoryID allocation via categoryID = "auto". Child components inherit the setting. In PrettyUI v2 this behavior will be the default, so it is important to migrate your plugin towards automatic categoryID allocation to ensure stability post-v2.
  • Added NewComponent, BuildCategoryGroup, WithCategoryBatch, and RefreshComponentIDs APIs for custom component allocation.
  • Added hideCloseButton as a option to windows and dialogs.
  • Added a useNativeTransparency option to windows and panels, with a matching SetUseNativeTransparency(enabled) method, which when enabled makes them follow the player's native interface transparency setting.
  • Added an editable hex colour code caption beneath the colour picker preview.

Changed

  • Dialog Component: Dialog footer actions can now be set to Disabled
  • Tooltip UI objects (root, label, frame sprites) are now built on first Show() or first access, not in Tooltip.attach.
  • Tooltip:Hide() releases those objects, and the next Show() rebuilds them. Tooltips with a custom onMouseLeave handler stay built.
  • Tooltip.__index is now a function, not the Tooltip table.
  • Hovering over edges of resizable surfaces now shows a feedback cursor when a resize action can be performed.
  • The drag area for corners on rsizable surfaces has been widened to make it easier to grab onto them.
  • Windows and panels can no longer be moved or resized while the player's interface is locked. To keep a component movable, set respectInterfaceLock = false or call SetRespectInterfaceLock(false).

Fixed

  • Minimenu API: Optimized to reduce the amount of reads of miniMenu.entries and fixed misalignment issues when multiple plugins are using the API simultaneously.
  • Tabs:SetActive now hides tooltips on pages it deactivates, so they no longer stay visible after a tab switch.
  • Fixed an alignment issue on the close button for the window component.
  • Corrected the default rotation direction of the Spinner component.

Deprecated

  • Omitting categoryID will emit a warning. In PrettyUI version 2 categoryID = auto behavior will become the default and this may break existing library consumers so it is important to migrate and test auto-allocated categoryIDs before the switch.

Removed

  • Removed previously deprecated RibbonBar API
  • Removed previously deprecated ScrollBar API

Other

  • We now ship a LuaLS addon along with our GitHub releases that can be used for language server integration for PrettyUI in your IDE of choice

Credits

This version of PrettyUI contains changes from multiple community developers, a big thank you to:

1.2.1

Choose a tag to compare

@J3sven J3sven released this 17 Oct 12:04

Fixes mouse calibration issues, primarily focused on fixing alignment of minimenu submenus