From 739ba769606888a11176e53a5a3e6cf430eba5d5 Mon Sep 17 00:00:00 2001 From: KyrosKrane Date: Thu, 9 Jul 2015 21:45:52 +0400 Subject: [PATCH] Better reporting of status (with colors). --- AnnoyingPopupRemover.lua | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/AnnoyingPopupRemover.lua b/AnnoyingPopupRemover.lua index 430e2ae..f7e9419 100644 --- a/AnnoyingPopupRemover.lua +++ b/AnnoyingPopupRemover.lua @@ -237,13 +237,25 @@ end -- APR:PrintHelp() -- popup is optional function APR:PrintStatus(popup) if not popup or "bind" == popup then - APR:ChatPrint (L["Confirmation pop-up when looting bind-on-pickup items will be "] .. (APR.DB.HideBind and L["hidden"] or L["shown"]) .. "."); + if APR.DB.HideBind then + APR:ChatPrint (L["Confirmation pop-up when |cff00ff00looting|r bind-on-pickup items will be |cff00ff00hidden|r."]); + else + APR:ChatPrint (L["Confirmation pop-up when |cffff0000looting|r bind-on-pickup items will be |cffff0000shown|r."]); + end end if not popup or "roll" == popup then - APR:ChatPrint (L["Confirmation pop-up when rolling on bind-on-pickup items will be "] .. (APR.DB.HideRoll and L["hidden"] or L["shown"]) .. "."); + if APR.DB.HideRoll then + APR:ChatPrint (L["Confirmation pop-up when |cff00ff00rolling|r on bind-on-pickup items will be |cff00ff00hidden|r."]); + else + APR:ChatPrint (L["Confirmation pop-up when |cffff0000rolling|r on bind-on-pickup items will be |cffff0000shown|r."]); + end end if not popup or "void" == popup then - APR:ChatPrint (L["Confirmation pop-up when depositing modified items into void storage will be "] .. (APR.DB.HideVoid and L["hidden"] or L["shown"]) .. "."); + if APR.DB.HideVoid then + APR:ChatPrint (L["Confirmation pop-up when depositing modified items into |cff00ff00void storage|r will be |cff00ff00hidden|r."]); + else + APR:ChatPrint (L["Confirmation pop-up when depositing modified items into |cffff0000void storage|r will be |cffff0000shown|r."]); + end end end -- APR:PrintStatus() -- 1.7.9.5