LibNUI: OOP UI Library for World of Warcraft Addons

LibNUI streamlines WoW addon development with object-oriented UI classes and theme support for World of Warcraft.

Download LibNUI for World of Warcraft 12.0.7, 12.0.5, 12.0.0, 11.2.0

Original name: LibNUI

World of Warcraft: 11.2.0, 12.0.0, 12.0.5, 12.0.7

FileVersionLoaderSize
LibNUI-11.2.0-1.zip11.2.0—22 КБDownload
LibNUI-v12.0.0-1.zip12.0.0—20 КБDownload
LibNUI.zip12.0.5—59 КБDownload
LibNUI.zip12.0.5—80 КБDownload
LibNUI.zip12.0.5—79 КБDownload
LibNUI.zip12.0.5—77 КБDownload
LibNUI.zip12.0.5—68 КБDownload
LibNUI.zip12.0.5—64 КБDownload
LibNUI.zip12.0.5—58 КБDownload
LibNUI.zip12.0.5—54 КБDownload
LibNUI.zip12.0.5—54 КБDownload
LibNUI.zip12.0.5—54 КБDownload
LibNUI.zip12.0.5—48 КБDownload
LibNUI.zip12.0.5—48 КБDownload
LibNUI.zip12.0.5—45 КБDownload
LibNUI.zip12.0.5—45 КБDownload
LibNUI.zip12.0.5—45 КБDownload
LibNUI.zip12.0.5—45 КБDownload
LibNUI.zip12.0.5—46 КБDownload
LibNUI.zip12.0.5—46 КБDownload
LibNUI.zip12.0.5—46 КБDownload
LibNUI.zip12.0.5—47 КБDownload
LibNUI.zip12.0.5—48 КБDownload
LibNUI.zip12.0.5—46 КБDownload
LibNUI.zip12.0.7—144 КБDownload
LibNUI.zip12.0.7—132 КБDownload
LibNUI.zip12.0.7—136 КБDownload
LibNUI.zip12.0.7—136 КБDownload
LibNUI.zip12.0.7—145 КБDownload
LibNUI.zip12.0.7—147 КБDownload
LibNUI.zip12.0.7—148 КБDownload
LibNUI.zip12.0.7—149 КБDownload
LibNUI.zip12.0.7—150 КБDownload
LibNUI.zip12.0.7—146 КБDownload
LibNUI.zip12.0.7—148 КБDownload
LibNUI.zip12.0.7—156 КБDownload
LibNUI.zip12.0.7—129 КБDownload
LibNUI.zip12.0.7—98 КБDownload
LibNUI.zip12.0.7—97 КБDownload
LibNUI.zip12.0.7—96 КБDownload
LibNUI.zip12.0.7—95 КБDownload
LibNUI.zip12.0.7—95 КБDownload
LibNUI.zip12.0.7—92 КБDownload
LibNUI.zip12.0.7—91 КБDownload
LibNUI.zip12.0.7—88 КБDownload
LibNUI.zip12.0.7—83 КБDownload
LibNUI.zip12.0.7—82 КБDownload
LibNUI.zip12.0.7—81 КБDownload
LibNUI.zip12.0.7—81 КБDownload

LibNUI

Building addon interfaces in World of Warcraft has traditionally meant wrestling with Blizzard's raw frame API: creating textures, anchoring regions, managing font strings, and repeating the same boilerplate every time you need a simple window. LibNUI changes that equation entirely. It is a library of object-oriented UI classes that wrap Blizzard's frames, adding convenience methods and quality-of-life features that make addon development feel modern rather than archaic.

What LibNUI Actually Does

At its core, LibNUI gives you a class hierarchy that sits on top of the default UI objects. Every widget you construct wraps a WoW UI object exposed as ._widget, so you never lose access to anything LibNUI doesn't cover directly. The library handles the tedious parts: getter/setter methods that double as both reads and writes, position tables that map cleanly to anchor helpers, and a theme system that cascades styling down through parent-child relationships.

All classes are available through the LibNUI global, and if you are working inside a LibNAddOn-based addon, the same table appears as ns.ui. You can create local aliases for brevity, such as local TitleFrame = LibNUI.TitleFrame, and annotate them with the LibNUI class type so your language server links the widget classes properly.

Construction and Core Concepts

Widgets are constructed by calling :new{} with an options table. A typical frame looks like this: a name, a parent, and a size table. From there, methods like Width() and Height() act as both getters and setters depending on whether you pass an argument. The position table option accepts keys that map to anchor helpers, so you can define TopLeft, Width, Height, or even All for SetAllPoints in one declaration.

Theming Made Simple

Built-in widget styling lives in ui.themes.dark as named tokens for colors, fonts, and textures. Widgets resolve styling against the active theme, which is inherited through the parent widget chain and falls back to the dark theme. Pass a theme once on a top-level window and every child widget inherits it automatically. Custom themes should always be built via ui.Theme{} rather than raw tables, since raw tables miss the dark-theme fallback.

Any color option also accepts a token name string, resolved against the widget's active theme. This means you can write background = "window" and let the theme system handle the rest.

Class Hierarchy Overview

The library covers a broad range of widgets, all inheriting from Region:

  • Texture, Label, and Frame as foundational classes
  • BgFrame, CleanFrame, TitleFrame, and Tooltip for window chrome
  • Button, CheckButton, and SecureButton for interaction
  • Cell, Dialog, EditBox, ScrollFrame, StatusBar, and TabFrame
  • TableFrame with column and row headers, plus SettingsFrame, TextSetting, and ToggleSetting

TableFrame deserves special mention. It renders a 2D grid with optional headers, alternating backdrop colors, and auto-sizing. Cell data can be plain strings or tables with options like color, justification, fonts, and click handlers. There is a documented gotcha around dynamic tables: if you plan to add rows or columns later via addRow or addCol, pass empty tables for the axes you will populate so the offsets compute correctly.

Compatibility Across World of Warcraft Versions

LibNUI for World of Warcraft supports the full spread of game versions, including Retail, Classic, TBC, WotLK, Cataclysm, and MoP. Addon compatibility is a genuine strength here: because the library wraps Blizzard frames rather than replacing them, it adapts well across client branches. Developers maintaining multi-version addons will appreciate that the same class structure works whether you are targeting modern Retail or a Classic Era realm.

LibNUI also integrates with FrameColor automatically, registering modules for supported frames so users can configure frame colors from FrameColor's settings panel. The library ships with three settings widgets under settings/: SettingsFrame as a container, TextSetting for labeled text inputs, and ToggleSetting for labeled checkboxes.

Getting Started

If you are ready to download LibNUI, list it in your .toc file under ## Dependencies: LibNUI and you are set. Knowing how to install is straightforward: drop the library folder into your AddOns directory, ensure dependencies load before your addon, and start constructing widgets. For players who prefer a hands-off approach, the foxygame.net launcher bundles LibNUI into its addon catalog and handles version compatibility automatically, so the correct build for your client is always in place without manual file juggling.

Constants are provided for edges, layers, justification, wrapping, and font globals, keeping your code readable. Whether you are building a simple tooltip or a full settings panel with tables and toggles, LibNUI removes the repetitive scaffolding and lets you focus on features. For any addon author tired of reinventing frame wrappers, this library is a practical foundation worth adopting.