Mercurial > wow > mailopener
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 50:8e2138877ebf | 51:fcc7112cc365 |
|---|---|
| 137 end | 137 end |
| 138 end); | 138 end); |
| 139 button.tooltipTitle = "Open all"; | 139 button.tooltipTitle = "Open all"; |
| 140 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."; | 140 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."; |
| 141 button:SetScript("OnEnter", function(self) | 141 button:SetScript("OnEnter", function(self) |
| 142 GameTooltip:SetOwner(self, "ANCHOR_NONE") | 142 if MailOpener.db.profile.general.showHelpTooltips then |
| 143 GameTooltip:SetPoint("BOTTOM", self, "TOP") | 143 GameTooltip:SetOwner(self, "ANCHOR_NONE") |
| 144 GameTooltip:SetText(self.tooltipTitle, 1, .82, 0, 1) | 144 GameTooltip:SetPoint("BOTTOM", self, "TOP") |
| 145 | 145 GameTooltip:SetText(self.tooltipTitle, 1, .82, 0, 1) |
| 146 if type(self.tooltip) == "string" then | 146 |
| 147 GameTooltip:AddLine(self.tooltip, 1, 1, 1, 1); | 147 if type(self.tooltip) == "string" then |
| 148 end | 148 GameTooltip:AddLine(self.tooltip, 1, 1, 1, 1); |
| 149 | 149 end |
| 150 GameTooltip:Show(); | 150 |
| 151 GameTooltip:Show(); | |
| 152 end | |
| 151 end); | 153 end); |
| 152 button:SetScript("OnLeave", function(self) | 154 button:SetScript("OnLeave", function(self) |
| 153 GameTooltip:Hide(); | 155 GameTooltip:Hide(); |
| 154 end); | 156 end); |
| 155 | 157 |
