From 0f12f2cfb43a0ea25b3a1ff0ddc51a0a33409eab Mon Sep 17 00:00:00 2001 From: KyrosKrane Date: Mon, 21 May 2018 22:31:48 -0500 Subject: [PATCH] Documentation updates - no functional changes --- AnnoyingPopupRemover.lua | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/AnnoyingPopupRemover.lua b/AnnoyingPopupRemover.lua index ccdf068..f902555 100644 --- a/AnnoyingPopupRemover.lua +++ b/AnnoyingPopupRemover.lua @@ -49,7 +49,7 @@ local APR = { } APR.DebugMode = false -- Set the current version so we can display it. -APR.Version = "4.01-release" +APR.Version = "4.03-release" -- Create the frame to hold our event catcher, and the list of events. APR.Frame, APR.Events = CreateFrame("Frame"), {} @@ -296,7 +296,7 @@ function APR:PrintStatus(popup) if APR.DB.HideDelete then APR:ChatPrint (L["|cff00ff00Deleting \"good\" items|r will |cff00ff00not require|r typing the word \"delete\"."]) else - APR:ChatPrint (L["|cff00ff00Deleting \"good\" items|r will |cff00ff00require|r typing the word \"delete\"."]) + APR:ChatPrint (L["|cff00ff00Deleting \"good\" items|r will |cffff0000require|r typing the word \"delete\"."]) end end end -- APR:PrintStatus() @@ -535,7 +535,7 @@ function APR:ShowPopupDelete(printconfirm) end if printconfirm then APR:PrintStatus("delete") end -end -- APR:ShowPopupVendor() +end -- APR:ShowPopupDelete() function APR:HidePopupBind(printconfirm, ForceHide) @@ -624,7 +624,7 @@ end -- APR:HidePopupVendor() --######################################### ---# Event hooks +--# Event hooks - Processing --######################################### -- Looting a BOP item triggers this event. @@ -765,6 +765,10 @@ function APR.Events:PLAYER_LOGIN(...) end -- APR.Events:PLAYER_LOGIN() +--######################################### +--# Event hooks - Addon setup +--######################################### + function APR.Events:ADDON_LOADED(addon) APR:DebugPrint ("Got ADDON_LOADED for " .. addon) if addon == "AnnoyingPopupRemover" then @@ -824,7 +828,7 @@ function APR.Events:ADDON_LOADED(addon) if APR.DB.HideDelete then APR:HidePopupDelete(false, FORCE_HIDE_DIALOG) end end -- if AnnoyingPopupRemover -end -- APR.Events:PLAYER_LOGIN() +end -- APR.Events:ADDON_LOADED() -- Save the db on logout. -- 1.7.9.5