From 8d775f43c278bb8bb9c6b0b7956ac67cd2e1fbcb Mon Sep 17 00:00:00 2001 From: Repooc Date: Sat, 29 Sep 2012 23:16:52 -0500 Subject: [PATCH] Fixed bug in mount search feature throwing errors when user disabled skinning to mounts/pets. Signed-off-by: Repooc --- ElvUI_SLE/modules/skins/blizzard/searchmounts.lua | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/ElvUI_SLE/modules/skins/blizzard/searchmounts.lua b/ElvUI_SLE/modules/skins/blizzard/searchmounts.lua index 94b6d4a..956943b 100644 --- a/ElvUI_SLE/modules/skins/blizzard/searchmounts.lua +++ b/ElvUI_SLE/modules/skins/blizzard/searchmounts.lua @@ -65,7 +65,7 @@ frame:SetScript("OnEvent", function(self, event, addon) MountJournal.MountDisplay.NoMounts:Show() MountJournal.selectedSpellID = 0 MountJournal_UpdateMountDisplay() - MountJournal.MountCount:SetText(0) + --MountJournal.MountCount:SetText(0) MountJournal.MountButton:SetEnabled(false) return else @@ -106,7 +106,9 @@ frame:SetScript("OnEvent", function(self, event, addon) if MountJournal.selectedSpellID == spell then button.selected = true button.selectedTexture:Show() - if E.private.skins.blizzard.enable == true then + --if E.private.skins.blizzard.mounts == true then + --if E.private.skins.blizzard.enable == true then + if E.private.skins.blizzard.mounts == true and E.private.skins.blizzard.enable == true then button.name:SetTextColor(1, 1, 0) button.backdrop:SetBackdropBorderColor(1, 1, 0) --Need Help with border being nil @@ -115,7 +117,7 @@ frame:SetScript("OnEvent", function(self, event, addon) else button.selected = false button.selectedTexture:Hide() - if E.private.skins.blizzard.enable == true then + if E.private.skins.blizzard.mounts == true and E.private.skins.blizzard.enable == true then button.name:SetTextColor(1, 1, 1) button.backdrop:SetBackdropBorderColor(unpack(E.media.bordercolor)) --Need Help with border being nil @@ -204,7 +206,7 @@ frame:SetScript("OnEvent", function(self, event, addon) ToggleDropDownMenu(1, nil, FilterDropDown, MountFilter, 74, 15) end) - if E.private.skins.blizzard.enable == true then + if E.private.skins.blizzard.mounts == true and E.private.skins.blizzard.enable == true then S:HandleEditBox(Search) Search:SetHeight(18) Filter:StripTextures(true) -- 1.7.9.5