Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
This version of MailCommander.lua originated here: https://github.com/alarofrunetotem/MailCommander/archive/master.zip
while the previous commits of edited versions of this file originated here: https://www.curseforge.com/wow/addons/mailcommander/files/3084692

I see now there are some minor differences in the debug commenting between the GitHub version and the CurseForge version of this file. This particular commit should produce a good diff.

This file has had its line endings converted to LF.

Line 1713: fix to this specific issue alarofrunetotem#2.
Line 1161: fix to misspelled text color resulting in no color rendering.
Line 603,1162,1585: fixes to typos in messages.
  • Loading branch information
FuryusSvetlo authored Oct 19, 2020
1 parent c185c78 commit c95031c
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions MailCommander.lua
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
local __FILE__=tostring(debugstack(1,2,0):match("(.*):1:")) -- Always check line number in regexp and file
local me,ns=...
local pp=print
--[===[@debug@
--@debug@
--Postal_BlackBookButton
-- SendMailNameEditBox
LoadAddOn("Blizzard_DebugTools")
LoadAddOn("LibDebug")
if LibDebug then LibDebug() end
--@end-debug@]===]
--@non-debug@
--@end-debug@
--[===[@non-debug@
local print=function() end
local DevTools_Dump=function() end
--@end-non-debug@
--@end-non-debug@]===]
local addon --#MailCommander
local LibInit,minor=LibStub("LibInit",true)
assert(LibInit,me .. ": Missing LibInit, please reinstall")
Expand Down Expand Up @@ -766,14 +766,14 @@ function addon:OnInitialized()
--self:AddOpenCmd("requests","OpenConfig",L["Open requests panel"])
self:AddBoolean("ALLSEND",false,format(L["Show all characters in %s tab"],SEND),L["Show all toons regardless if they have items to send or not"])
self:AddBoolean("ALLFACTIONS",false,L["Show characters from both factions"],L["Show all toons fromj all factions"])
--[===[@debug@
--@debug@
self:AddBoolean("ALLREALMS",false,L["Show characters from all realms"],L["Show all toons from all realms"]).disabled=true
--@end-debug@]===]
--@end-debug@
self:AddLabel(L["Data management"])
self:AddAction("reset","Reset",L["Erase all stored data"])
--[===[@debug@
--@debug@
self:AddBoolean("DRY",false,"Disable mail sending")
--@end-debug@]===]
--@end-debug@

self:ScheduleTimer("InitData",0.2)
self:RegisterEvent("PLAYER_LEVEL_UP")
Expand Down Expand Up @@ -801,12 +801,12 @@ function addon:OnInitialized()
SendMailMailButton:SetScript("PreClick",function()
mailRecipient=SendMailNameEditBox:GetText()
end)
--[===[@debug@
--@debug@
self:RegisterEvent("MAIL_INBOX_UPDATE","MailEvent")
self:RegisterEvent("UPDATE_PENDING_MAIL","MailEvent")
self:SecureHookScript(_G.InboxFrame,"OnShow",print)
self:SecureHookScript(_G.InboxFrame,"OnHide",print)
--@end-debug@]===]
--@end-debug@
mcf=CreateFrame("Frame","MailCommanderFrame",UIParent,"MailCommander")
self:SetAdditional()
self.xdb=db
Expand Down Expand Up @@ -1622,9 +1622,9 @@ function addon:OnItemClicked(itemButton,button)
end
return
end
--[===[@debug@
--@debug@
return self:Popup("Invalid section ".. tostring(section))
--@end-debug@]===]
--@end-debug@
end
function addon:ClickedOnToon(itemButton,button)
local name=itemButton:GetAttribute("toon")
Expand Down Expand Up @@ -1766,9 +1766,9 @@ function addon:ClickedOnItem(itemButton,button,section)
end
return self:OnItemEnter(itemButton,button)
else
--[===[@debug@
--@debug@
print("Error:",itemId,currentRequester)
--@end-debug@]===]
--@end-debug@
end
elseif button=="RightButton" then
for i,d in pairs(db.requests[currentRequester]) do
Expand Down Expand Up @@ -1845,11 +1845,11 @@ function addon:OnItemEnter(itemButton,motion)
else
GameTooltip:AddDoubleLine("Sendable:",qt,nil,nil,nil,C:White())
end
--[===[@debug@
--@debug@
GameTooltip:AddDoubleLine("Id:",itemId)
GameTooltip:AddDoubleLine("Sending:",sending[itemId])
GameTooltip:AddDoubleLine("Tobesent:",tobesent[itemId])
--@end-debug@]===]
--@end-debug@
else
GameTooltip:SetText(L["Dragging an item here will add it to the list"])
end
Expand Down Expand Up @@ -1903,9 +1903,9 @@ function addon:UpdateMailCommanderFrame()
elseif mcf.selectedTab==ICATEGORIES then
addon:RenderCategoryBox(mcf)
else
--[===[@debug@
--@debug@
print("Invalid tab",mcf.selectedTab)
--@end-debug@]===]
--@end-debug@
return
end
self:InitializeDropDown(mcf.filter)
Expand Down Expand Up @@ -2032,13 +2032,13 @@ function addon:Pickup(itemid)
end

_G.MailCommander=addon
--[===[@debug@
--@debug@
_G.MCOM=addon
_G.MCOM.sendable=sendable
_G.MCOM.toonTable=toonTable
_G.MCOUNT=Count

--@end-debug@]===]
--@end-debug@

-- Key Bindings Names
_G.BINDING_HEADER_MAILCOMMANDER="MailCommander"
Expand Down

0 comments on commit c95031c

Please sign in to comment.