From 118f0e5be7d81a78154a1a84c683d26c9a1e528c Mon Sep 17 00:00:00 2001 From: Darthpred Date: Sun, 21 Aug 2016 20:09:40 +0300 Subject: [PATCH] CDs --- ElvUI_SLE/modules/minimap/locationbar.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ElvUI_SLE/modules/minimap/locationbar.lua b/ElvUI_SLE/modules/minimap/locationbar.lua index 0314d9c..6722762 100644 --- a/ElvUI_SLE/modules/minimap/locationbar.lua +++ b/ElvUI_SLE/modules/minimap/locationbar.lua @@ -220,6 +220,8 @@ function LP:CreateLocationPanel() LP.Menu2:SetTemplate("Transparent", true) DD:RegisterMenu(LP.Menu1) DD:RegisterMenu(LP.Menu2) + LP.Menu1:SetScript("OnHide", function() T.twipe(LP.MainMenu) end) + LP.Menu2:SetScript("OnHide", function() T.twipe(LP.SecondaryMenu) end) end function LP:OnClick(btn) @@ -358,7 +360,7 @@ function LP:ItemList(check) HSplace = " - "..GetBindLocation() end E:CopyTable(tmp, data) - if cd then + if cd and T.tonumber(cd) > 1.5 then tmp.text = "|cff636363"..tmp.text..HSplace.."|r"..T.format(LP.CDformats[LP.db.portals.cdFormat], cd) else tmp.text = tmp.text..HSplace @@ -378,7 +380,7 @@ function LP:SpellList(list, dropdown, check) return true else local cd = DD:GetCooldown("Spell", data.secure.ID) - if cd then + if cd and T.tonumber(cd) > 1.5 then E:CopyTable(tmp, data) tmp.text = tmp.text..T.format(LP.CDformats[LP.db.portals.cdFormat], cd) T.tinsert(dropdown, tmp) @@ -393,7 +395,6 @@ end function LP:PopulateDropdown() if LP.Menu2:IsShown() then ToggleFrame(LP.Menu2) end if #LP.MainMenu > 0 then - T.twipe(LP.MainMenu) SLE:DropDown(LP.MainMenu, LP.Menu1) return end -- 1.7.9.5