LibFramePool: Smarter Frame Management for WoW Addons

LibFramePool simplifies creating and managing pooled frames for World of Warcraft, cutting code and boosting addon performance.

Download LibFramePool for World of Warcraft 11.2.0, 11.1.5, 11.0.5, 11.0.2, 10.2.6, 10.2.5

Original name: LibFramePool

World of Warcraft: 10.2.5, 10.2.6, 11.0.2, 11.0.5, 11.1.5, 11.2.0

FileVersionLoaderSize
LibFramePool-1.0.zip10.2.5—5 КБDownload
LibFramePool-1.0.zip10.2.6—5 КБDownload
LibFramePool-1.0.zip11.0.2—5 КБDownload
LibFramePool-1.0.zip11.0.5—5 КБDownload
LibFramePool-1.0.zip11.1.5—5 КБDownload
LibFramePool-1.0.zip11.2.0—5 КБDownload

LibFramePool

Every addon developer eventually hits the same wall: you need dozens of identical frames, and writing the same creation code over and over is tedious, error-prone, and slow. LibFramePool is a lightweight library that solves this problem by generating a table of frames of the same type in a single call, complete with optional arguments to predefine each frame. Whether you are building a scrolling list, a grid of checkboxes, or a row of action buttons, this library keeps your code clean and your frame handling efficient.

What LibFramePool Actually Does

At its core, the library exposes a single entry point through LibStub. You call CreateFramePool with the number of frames you want, the frame type, and an optional table of arguments, and it hands back a table containing every frame. Because the result is a plain table, you can iterate it with any loop you like or grab an individual frame by its index position. That flexibility is what makes LibFramePool for World of Warcraft so appealing to both newcomers and veteran addon authors.

A typical call looks like this: create a pool of twenty check buttons, pass a parent frame and a template, then assign a click script to the whole group with a single line. No manual frame-by-frame wiring required.

Core Functions at a Glance

  • CreateFramePool builds the table of frames with optional predefined arguments.
  • DeleteFramePool cleans up an entire pool when you no longer need it.
  • IncrementallyChangeXForAllFrames and IncrementallyChangeYForAllFrames offset frames in a cascade, perfect for grids and lists.
  • SetOnClickScript and SetOnEventScript attach handlers to every frame, or only a subset.
  • HideFrames and ShowFrames toggle visibility across the pool instantly.

Because the returned object is iterable, you can also run any standard WoW API function across the pool. A simple for loop can reposition frames into a neat grid, recolor them, or resize them without touching the library's built-in helpers.

Game Versions and Addon Compatibility

One of the strongest reasons to download LibFramePool is its broad compatibility. The library works across the major World of Warcraft game versions, including Retail, Classic, The Burning Crusade, Wrath of the Lich King, Cataclysm, and Mists of Pandaria. That means a single dependency can serve addons targeting multiple client branches, which is a huge time-saver if you maintain projects for both modern and classic-era servers.

If you manage several addons at once, keeping dependencies current matters. The foxygame.net launcher makes this painless by handling LibFramePool installation and updates in a single click, so your libraries stay in sync with the client version you are running without any manual file juggling.

How to Install

Getting started is straightforward. Place the LibFramePool folder inside your World of Warcraft AddOns directory, alongside the addons that depend on it, then restart the client or reload your UI. If you prefer a guided route, a launcher with a built-in addon catalog can handle the how to install steps for you automatically. Either way, the library loads through LibStub, so any addon calling LibStub("LibFramePool-1.0") will find it immediately.

Why Developers Keep Coming Back

Frame pooling is not just about tidy code. Reusing frames instead of creating and destroying them reduces garbage collection pressure, which keeps frame rates stable during heavy UI activity. LibFramePool wraps that best practice in an API that is short enough to learn in an afternoon. The incremental offset helpers are especially handy for building book-style layouts, icon grids, or menu lists where each frame shifts slightly from the last.

For addon authors juggling multiple projects, the combination of a tiny footprint, version-agnostic support, and a clean function set makes this library an easy dependency to justify. Download LibFramePool once, and your frame-heavy interfaces become simpler to write, easier to maintain, and noticeably lighter on the client.

Final Thoughts

LibFramePool does one job and does it well: it turns repetitive frame creation into a single, readable call. If your addon spawns more than a handful of identical frames, this library deserves a spot in your dependency list. Grab it, wire it into your next project, and spend your time on features instead of boilerplate.