Add AddonLoader LoadOn-InterfaceOptions support

This commit is contained in:
tekkub :bear:  2011-05-24 04:14:05 -06:00
parent 1661399f24
commit f5b9f7ef8e
2 changed files with 4 additions and 1 deletions

View File

@ -7,9 +7,11 @@
## X-Website: http://www.tekkub.net/
## X-Email: tekkub-wow@googlegroups.com
## X-Category: Misc
## X-Icon: Interface\Icons\INV_Misc_Toy_07
## LoadManagers: AddonLoader
## X-LoadOn-Merchant: true
## X-LoadOn-InterfaceOptions: GnomishVendorShrinker
tekFunks\gsc.lua
tekKonfig\tekKonfig.xml

View File

@ -1,9 +1,10 @@
local lib, oldminor = LibStub:NewLibrary("tekKonfig-AboutPanel", 5)
local lib, oldminor = LibStub:NewLibrary("tekKonfig-AboutPanel", 6)
if not lib then return end
function lib.new(parent, addonname)
if not parent and AddonLoader and AddonLoader.RemoveInterfaceOptions then AddonLoader:RemoveInterfaceOptions(addonname) end
local frame = CreateFrame("Frame", nil, InterfaceOptionsFramePanelContainer)
frame.name, frame.parent, frame.addonname = parent and "About" or addonname, parent, addonname
frame:Hide()