View Single Post
07-09-15, 02:09 PM   #1
Yukyuk
A Chromatic Dragonspawn
 
Yukyuk's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2015
Posts: 179
Passing variables from one lua file to the next

Working on a new addon.
This time I try to make use the Ace libraries.

So I make use of "AceDB-3.0" to build my database.
Its defined in a Lua file called Main and it creates a database called GildamDB.

This works fine. The variables are stored and retrieved just fine.

But now I have another Lua file Called UI.
Now I want to make use of of a few variables that are inside my database.
Don't seem to get that working.

Did google searches and used to code from Ackis Recipe List to see how it is done there.
But so far no luck.

Could someone give me a pointer to the right direction?
Don't know if code is needed, but when asked I will provide
__________________
Better to fail then never have tried at all.
  Reply With Quote