Mercurial > wow > mailopener
diff Modules/OpenAll.lua @ 51:fcc7112cc365
You can now toggle the help tooltips for the Mail Opener-added MailFrame buttons in the general config.
| author | Zerotorescue |
|---|---|
| date | Sun, 12 Sep 2010 21:13:27 +0200 |
| parents | 8e2138877ebf |
| children | 5f0e174c8adc |
line wrap: on
line diff
--- a/Modules/OpenAll.lua Sun Sep 12 21:06:05 2010 +0200 +++ b/Modules/OpenAll.lua Sun Sep 12 21:13:27 2010 +0200 @@ -139,15 +139,17 @@ button.tooltipTitle = "Open all"; button.tooltip = "Hold |cfffed000shift|r while clicking this button to temporarily override your filters and loot every single mail contain attachments and gold.\n\n|cfffed000Right|r click this button to quickly adjust mail opening filters for this profile."; button:SetScript("OnEnter", function(self) - GameTooltip:SetOwner(self, "ANCHOR_NONE") - GameTooltip:SetPoint("BOTTOM", self, "TOP") - GameTooltip:SetText(self.tooltipTitle, 1, .82, 0, 1) - - if type(self.tooltip) == "string" then - GameTooltip:AddLine(self.tooltip, 1, 1, 1, 1); + if MailOpener.db.profile.general.showHelpTooltips then + GameTooltip:SetOwner(self, "ANCHOR_NONE") + GameTooltip:SetPoint("BOTTOM", self, "TOP") + GameTooltip:SetText(self.tooltipTitle, 1, .82, 0, 1) + + if type(self.tooltip) == "string" then + GameTooltip:AddLine(self.tooltip, 1, 1, 1, 1); + end + + GameTooltip:Show(); end - - GameTooltip:Show(); end); button:SetScript("OnLeave", function(self) GameTooltip:Hide();
