LibDBIcon ... how to hide ? - WoWInterface
Thread Tools Display Modes
Prev Previous Post   Next Post Next
03-29-20, 03:46 AM   #1
A Frostmaul Preserver
gmarco's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 290
LibDBIcon ... how to hide ?

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:
  1. local LibQTip = LibStub('LibQTip-1.0')
  2. local ldb = LibStub:GetLibrary("LibDataBroker-1.1")
  4. local dataobj = ldb:NewDataObject(ADDON, {
  5.     type = "data source",
  6.     icon = "Interface\\Addons\\"..ADDON.."\\icon.tga",
  7.     text = ""
  8. })
  10. local icon = LibStub("LibDBIcon-1.0")
  11. icon:Register(ADDON, dataobj, minimapicondb)
  13. -- or it works the same:
  14. -- 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:
  1. icon:Hide(ADDON)
  2. 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

This is Unix-Land. In quiet nights, you can hear the Windows machines reboot.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » LibDBIcon ... how to hide ?

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off