Add AddonLoader LoadOn-InterfaceOptions support
This commit is contained in:
parent
1661399f24
commit
f5b9f7ef8e
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue