View Single Post
03-29-20, 01:43 PM   #6
gmarco
An Onyxian Warder
 
gmarco's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 362
Hi myrroddin,

I always start my addons in this way:

Lua Code:
  1. local ADDON, namespace = ...
  2. local L = namespace.L
  3.  
  4. -- bla bla
  5.  
  6.  
  7. local LibQTip = LibStub('LibQTip-1.0')
  8. local ldb = LibStub:GetLibrary("LibDataBroker-1.1")
  9.  
  10. local dataobj = ldb:NewDataObject(ADDON, {
  11.     type    = "data source",
  12.     label   = "gmLm",
  13.     icon    = "Interface\\Addons\\"..ADDON.."\\icon.tga",
  14.     text    = ""
  15. })
  16.  
  17. local icon = LibStub("LibDBIcon-1.0")
  18. icon:Register("gmLm", dataobj, minimapicondb)
  19.  
  20. -- bla bla

And then I ever used ADDON as string everywhere

I think it is a string, but I can be wrong.
Do you think it can be a table ?

Thanks so much for your help.
__________________
This is Unix-Land. In quiet nights, you can hear the Windows machines reboot.
  Reply With Quote