From 6d2390726dfd67d8a0599aa97a88b53d40b8c362 Mon Sep 17 00:00:00 2001 From: Repooc Date: Mon, 25 Mar 2013 06:29:56 -0400 Subject: [PATCH] Added tooltip to flares --- ElvUI_SLE/modules/marks/flares.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ElvUI_SLE/modules/marks/flares.lua b/ElvUI_SLE/modules/marks/flares.lua index 7813bc7..a351e86 100644 --- a/ElvUI_SLE/modules/marks/flares.lua +++ b/ElvUI_SLE/modules/marks/flares.lua @@ -37,14 +37,24 @@ function RF:SetupButton(button, flare) button.tex:Point('BOTTOMRIGHT', button, 'BOTTOMRIGHT', -2, 1) if button == f1 then button.tex:SetTexture("INTERFACE/TARGETINGFRAME/UI-RaidTargetingIcon_6") + button:SetScript("OnEnter", function(self) GameTooltip:SetOwner(self, "ANCHOR_CURSOR"); GameTooltip:ClearLines(); GameTooltip:AddLine("Square World Marker"); GameTooltip:Show() end) + button:SetScript("OnLeave", function(self) GameTooltip:Hide() end) elseif button == f2 then button.tex:SetTexture("INTERFACE/TARGETINGFRAME/UI-RaidTargetingIcon_4") + button:SetScript("OnEnter", function(self) GameTooltip:SetOwner(self, "ANCHOR_CURSOR"); GameTooltip:ClearLines(); GameTooltip:AddLine("Triangle World Marker"); GameTooltip:Show() end) + button:SetScript("OnLeave", function(self) GameTooltip:Hide() end) elseif button == f3 then button.tex:SetTexture("INTERFACE/TARGETINGFRAME/UI-RaidTargetingIcon_3") + button:SetScript("OnEnter", function(self) GameTooltip:SetOwner(self, "ANCHOR_CURSOR"); GameTooltip:ClearLines(); GameTooltip:AddLine("Diamond World Marker"); GameTooltip:Show() end) + button:SetScript("OnLeave", function(self) GameTooltip:Hide() end) elseif button == f4 then button.tex:SetTexture("INTERFACE/TARGETINGFRAME/UI-RaidTargetingIcon_7") + button:SetScript("OnEnter", function(self) GameTooltip:SetOwner(self, "ANCHOR_CURSOR"); GameTooltip:ClearLines(); GameTooltip:AddLine("Cross World Marker"); GameTooltip:Show() end) + button:SetScript("OnLeave", function(self) GameTooltip:Hide() end) elseif button == f5 then button.tex:SetTexture("INTERFACE/TARGETINGFRAME/UI-RaidTargetingIcon_1") + button:SetScript("OnEnter", function(self) GameTooltip:SetOwner(self, "ANCHOR_CURSOR"); GameTooltip:ClearLines(); GameTooltip:AddLine("Star World Marker"); GameTooltip:Show() end) + button:SetScript("OnLeave", function(self) GameTooltip:Hide() end) end end -- 1.7.9.5