Hi myrroddin,
thanks so much for your reply.
At the moment I am using only a minimal set of libraries.
Lua Code:
libs\LibStub.lua
libs\CallbackHandler-1.0.lua
libs\LibDataBroker-1.1.lua
libs\LibQTip-1.0.lua
I don't think I can use your code. Most of it relies on ACE libraries I think, or am I wrong ?!
Btw I have make it works thanks to your inputs.
Lua Code:
local ldb = LibStub:GetLibrary("LibDataBroker-1.1")
local dataobj = ldb:NewDataObject(ADDON, {
type = "data source",
label = "gmLm",
icon = "Interface\\Addons\\"..ADDON.."\\icon.tga",
text = ""
})
local icon = LibStub("LibDBIcon-1.0")
icon:Register("gmLm", dataobj, minimapicondb)
And then I can call:
Lua Code:
icon:Show("gmLm")
or
icon:Hide("gmLm")
Obviusly it is a very simple solutions and it doesnt take care of saved positions and preferences, but I dont have the libs to do it I think ... or I am wrong ?
Btw thanks so much for your help.
It is so much appreciated.