/trunk/EasyDND/frames
local function ToggleMinimap() |
if _.db.profile.showminimap then |
if ICO then ICO:Show("EasyDND") else _:Print("|cff7e7e7e".."Minimap icon disabled, install LibDBIcon-1.0 or disable the show minimap option to hide this warning.".."|r") end |
if _.db.profile.showarnings then |
_:Print("|cff7e7e7e"..L["Minimap icon disabled, install"].." LibDBIcon-1.0 "..L["to activate this feature"].."|r") |
end |
if ICO then ICO:Show("EasyDND") end |
else |
if ICO then ICO:Hide("EasyDND") end |
end |
end |
local function ToggleDewdrop(a) |
if not DEW then _:Print("|cff7e7e7e".."Quick menu disabled, install DewdropLib to activate this feature.") return end |
if not DEW then |
if _.db.profile.showarnings then |
_:Print("|cff7e7e7e"..L["Quick menu disabled, install"].." DewdropLib "..L["to activate this feature"]) |
end |
_.ToggleConfig() |
return |
end |
DEW:Open(a, "children", function() |
local a = DEW.options.args.messages.args |
local b, save = DEW.options.args, nil |
LDB_EV:RegisterEvent("ZONE_CHANGED_NEW_AREA", UpdateLDB) |
end |
-- this function is used to clone the default table for Dewdrop-2.0 to apply changes on it without breaking the Ace3 table. |
-- this function is used to clone the default table for DewdropLib to apply changes on it without breaking the Ace3 table. |
-- http://lua-users.org/wiki/CopyTable |
-- Changes to the table are committed in the ToggleDewdrop function |
local function deepcopy(object) |