WoWInterface SVN EasyDND

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /trunk
    from Rev 78 to Rev 79
    Reverse comparison

Rev 78 → Rev 79

EasyDND/EasyDND.lua
273,9 → 273,7
end
 
local function CheckMode()
if db.modednd then
return L["DND"]
end
if db.modednd then return L["DND"] end
return L["AFK"]
end
 
390,7 → 388,7
-- BankFrame/GuildBankFrame to ensure the trade isn't a blocked one and will force the closure of our
-- bank and/or guildbank frames.
local function __hooked_Bank_OnEvent(self, event, ...)
local delay, args, frame = 0, ...
local delay, frame = 0
if self then frame = self:GetName() or "none" end
if event == "BANKFRAME_CLOSED" or ( frame and frame == "GuildBankFrame" ) or ( frame and frame == "MailFrame" ) then
local fake = CreateFrame("Frame", nil, UIParent)
406,7 → 404,7
fake:SetScript("OnUpdate",nil)
fake = nil
_.h = false
if type(event) == "string" then _.__orig_BankFrame_OnEvent(self, event, args)
if type(event) == "string" then _.__orig_BankFrame_OnEvent(self, event, ...)
else
_.__orig_HideUIPanel(self)
if frame == "MailFrame" then Stub("MAIL_CLOSED") end
414,7 → 412,7
end
end)
else
if type(event) == "string" then _.__orig_BankFrame_OnEvent(self, event, args)
if type(event) == "string" then _.__orig_BankFrame_OnEvent(self, event, ...)
else _.__orig_HideUIPanel(self) end
end
end
524,7 → 522,7
{"PLAYER_ENTERING_WORLD", db.modebg or db.modeinst, _.g},
{ { "AUCTION_HOUSE_SHOW", "AUCTION_HOUSE_CLOSED" }, db.modeah, _.i},
{ { "BANKFRAME_OPENED", "BANKFRAME_CLOSED", "GUILDBANKFRAME_OPENED", "GUILDBANKFRAME_CLOSED" }, db.modebank, _.j},
{ { "MAIL_SHOW", "MAIL_CLOSED" }, db.modemail, _.k, Stub},
{ { "MAIL_SHOW", "MAIL_CLOSED" }, db.modemail, _.k},
{ { "PLAYER_REGEN_DISABLED", "PLAYER_REGEN_ENABLED" }, db.modecbt, _.l},
}
for i, j in ipairs(vars) do