Mich's PixelPerfectLib

Pixel-perfect UI scaling library for World of Warcraft addon developers.

Michs_PixelPerfectLib is a lightweight developer library for World of Warcraft addons that helps keep UI layouts sharp and consistent across different resolutions, monitor sizes, and UI scale settings.

It provides reusable scaling and positioning helpers for addon authors who want their frames, borders, offsets, and font sizes to stay visually consistent without duplicating pixel-perfect math in every project.

Features:

  • Pixel-snapped sizing and offsets for cleaner UI layouts.
  • Optional resolution-aware scaling for elements that should keep the same visual proportions across 1080p, 1440p, 4K, and other setups.
  • Consistent font scaling using the same global scale as the rest of the layout.
  • Centered positioning helpers that avoid common pixel-grid issues with center anchors.
  • Per-addon scaler instances so each addon can manage its own global scale.
  • Configurable global scale from 50% to 200%.
  • Automatic pixel-grid refresh with ordered layout update callbacks when UI scale or display size changes.
  • Supports both standalone dependency and embedded library usage.

This addon is intended for addon developers. It does not add visible UI by itself; it provides the scaling, positioning, and update tools that other addons can use when building their own interfaces.

For installation instructions, API usage, and full examples, see the documentation.

The Mich's PixelPerfectLib Team

profile avatar
  • 4
    Projects
  • 2.7K
    Downloads

More from caedesque