I don't know how to do that, but I am trying...
Lua Code:
function Initialize()
defaultValues = {
["account"] = false,
["verbose"] = false,
["debug"] = false,
}
Harvest.settings = defaultValues
end
EVENT_MANAGER:RegisterForEvent("HarvestMap", EVENT_ADD_ON_LOADED, function Harvest.OnLoad(eventCode, addOnName)
if addon == ""HarvestMap"" then
Initialize()
end
end)
That didn't quite work.
Then I tried this
Lua Code:
function Initialize()
defaultValues = {
["account"] = false,
["verbose"] = false,
["debug"] = false,
}
Harvest.settings = defaultValues
end
EVENT_MANAGER:RegisterForEvent("HarvestMap", EVENT_ADD_ON_LOADED, function (eventCode, addOnName)
if addon == "HarvestMap" then
Initialize()
OnLoad(eventCode, addOnName)
end
end)
Then I tried and this
Lua Code:
function Initialize()
defaultValues = {
["account"] = false,
["verbose"] = false,
["debug"] = false,
}
Harvest.settings = defaultValues
end
EVENT_MANAGER:RegisterForEvent("HarvestMap", EVENT_ADD_ON_LOADED, function (eventCode, addOnName)
if addon == "HarvestMap" then
Initialize()
Harvest.OnLoad(eventCode, addOnName)
end
end)
May I pretty please with sugar on top ask what I am missing? The last one I get no error but when I go to settings after my char loads, the mod does not show up anymore.
This is what it
looks like in game.
HarvestMap is gone
EDIT: LOL! If I specify "addOnName" I can't use "addon"