Hi everyone.
I have done a lot of addon using LDB (and recently I am trying to convert them to libqtip).
Some friends of mine dont use a databroker display so I thought to use the minimap to attach these addons to an icon on it.
I usually use a code like this:
Lua Code:
local LibQTip = LibStub('LibQTip-1.0')
local ldb = LibStub:GetLibrary("LibDataBroker-1.1")
local dataobj = ldb:NewDataObject(ADDON, {
type = "data source",
icon = "Interface\\Addons\\"..ADDON.."\\icon.tga",
text = ""
})
local icon = LibStub("LibDBIcon-1.0")
icon:Register(ADDON, dataobj, minimapicondb)
-- or it works the same:
-- LibStub("LibDBIcon-1.0"):Register(ADDON, dataobj, minimapicondb)
and it works.
But if I want to Hide/Show the icon with what I think I have to use, in this way:
Lua Code:
icon:Hide(ADDON)
icon:Show(ADDON)
It doesn't works.
Probably I miss something, but reading the home page of LibDBIcon and some sample here and there I thought I have put everything I need (excepts for bunnies
Thanks.