Oct 16, 2014 Kaelten Mature
LibStub is a minimalistic versioning library that allows other libraries to easily register themselves and upgrade. It is meant to be a cross-community library sharing system. LibStub is hereby placed in the Public Domain Credits: Kaelten, Cladhaire, ckknight, Mikk, Ammo, Nevcairiel, joshborke LibStub-1.0 API :GetLibrary(major [, silent]) Returns The table instance of a registered library or nil if not found and the minor version of the library as the second return value. Arguments major The...


Oct 19, 2014 mikk Mature
Several useful bag related APIs that you wish were built into the WoW API: local LBU = LibStub("LibBagUtils-1.0") for bag,slot in LBU:Iterate("BANK", "Major Healing Potion") do LBU:PutItem("BAGS") end :Iterate("which"[, "lookingfor"]) which string: "BAGS", "BANK", "BAGSBANK" lookingfor OPTIONAL: itemLink, itemName, itemString or itemId(number). Will not match partial names. Returns an iterator that can be used in a for loop, e.g.: for bag,slot,link in LBU:Iterate("BAGS") do -- loop all slots...
How scaling and positioning works with different approaches


Feb 24, 2015 mikk Release
WindowLib is a small library that takes care of standard "windowy" behavior used in the main frames of many addons, and attempts to do so in a smarter way than the average addon author would find time to do. Save and restore positions: WindowLib will pick the attach point based on which quadrant of the screen the frame is in: top-left? bottom-right? center? Handle window dragging Mouse wheel zooming Only mouse-enabling the window while Alt is held Why bother? Because users change their UI...