Originally Posted by Nibelheim
The module will then work similar to a Core.lua file would. It can reference MyAddon:Etc() functions, as well as have it's own MyModule:Etc() functions. It can have it's own options, defaults, and config sections, each which need to get registered and accounted for in your Core.lua and Config.lua files.
|
Ok I not sure I understand this last part. Right now I have a config file with all the gui options. Then I have my core file with the defalts. Last I have a module folder with for now one file for the actionbars.
How do I get it called in the config file?
This is the error I get.
Code:
Message: Interface\AddOns\DreamTweaks\Config.lua:46: attempt to call global 'ActionBars' (a nil value)
Time: 09/04/11 01:07:03
Count: 1
Stack: Interface\AddOns\DreamTweaks\Config.lua:46: in function <Interface\AddOns\DreamTweaks\Config.lua:44>
(tail call): ?
[C]: ?
[string "safecall Dispatcher[2]"]:9: in function <[string "safecall Dispatcher[2]"]:5>
(tail call): ?
...nfig-3.0\AceConfigDialog-3.0\AceConfigDialog-3.0.lua:798: in function <...nfig-3.0\AceConfigDialog-3.0\AceConfigDialog-3.0.lua:613>
(tail call): ?
[C]: ?
[string "safecall Dispatcher[3]"]:9: in function <[string "safecall Dispatcher[3]"]:5>
(tail call): ?
...ce\AddOns\DreamTweaks\Libs\AceGUI-3.0\AceGUI-3.0.lua:314: in function `Fire'
...ks\Libs\AceGUI-3.0\widgets\AceGUIWidget-CheckBox.lua:68: in function <...ks\Libs\AceGUI-3.0\widgets\AceGUIWidget-CheckBox.lua:57>
Locals: info = <table> {
1 = "ActionBars"
2 = "HideGryphons"
uiType = "dialog"
type = "toggle"
options = <table> {
}
option = <table> {
}
uiName = "AceConfigDialog-3.0"
handler = <table> {
}
appName = "DreamTweaks"
}
val = false
(*temporary) = nil
(*temporary) = "attempt to call global 'ActionBars' (a nil value)"
db = <table> {
MABL = <table> {
}
Bags = <table> {
}
MBL = <table> {
}
HideMacronames = false
Quest = <table> {
}
ReputationBar = <table> {
}
PAB = <table> {
}
HideGryphons = false
Tooltip = <table> {
}
VMB = <table> {
}
ModuleEnabledState = <table> {
}
ExpBar = <table> {
}
SSB = <table> {
}
MABR = <table> {
}
Chat = <table> {
}
MicroMenu = <table> {
}
MM = <table> {
}
}