View Single Post
11-17-20, 08:23 AM   #1
fuba
A Murloc Raider
Join Date: Nov 2014
Posts: 8
Access "AddOn namespace" (addonName, addonTable = ...) from outside?

Hi there,

i got a question about AddOn namespace or more specific the "addonTable".

What exactly i mean?
Some AddOns did not set there AddOn Table for Global Access (becasue?! Reasons!)

Like this:
Lua Code:
  1. local addonName, addonTable = ...
or this:
Lua Code:
  1. local _, Engine = ...

I know i can edit this AddOn(s) manually by adding a Global Variable like:
Lua Code:
  1. local addonName, addonTable = ...
  2. _G[addonName] = addonTable
or
Lua Code:
  1. local _, Engine = ...
  2. _G.MyAddOnEngine = Engine

BUT there must be another way, without "touching" the original addon, right?

I found some Threads here that say "just set "Dependencies" in your TOC file for the AddOn and you can access it.
But i cant get it work!

Is there anything i look over? ^^

Maybe someone can help!

greetings,
fuba
  Reply With Quote