From 9e4c95fa1843d7692d3a8b726a6f50bc94418bf2 Mon Sep 17 00:00:00 2001 From: Adrian L Lange Date: Thu, 20 Sep 2012 20:27:54 +0200 Subject: [PATCH] Some fixes to low-level characters --- Collie.lua | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/Collie.lua b/Collie.lua index ee3dd0a..a41c2ca 100644 --- a/Collie.lua +++ b/Collie.lua @@ -51,16 +51,13 @@ function MountJournal_UpdateMountList() local offset = HybridScrollFrame_GetOffset(scroll) local total = GetNumCompanions('MOUNT') - if(UnitLevel('player') < 20 or total < 1) then - scroll:Hide() + local lowbie = UnitLevel('player') < 20 + if(lowbie or total < 1) then MountJournal.MountDisplay.NoMounts:Show() MountJournal.selectedSpellID = 0 MountJournal_UpdateMountDisplay() - MountJournal.MountCount:SetText(0) MountJournal.MountButton:SetEnabled(false) - return else - scroll:Show() MountJournal.MountDisplay.NoMounts:Hide() MountJournal.MountButton:SetEnabled(true) end @@ -102,11 +99,11 @@ function MountJournal_UpdateMountList() button.selectedTexture:Hide() end - button:SetEnabled(true) + button:SetEnabled(not lowbie) + button.DragButton:SetEnabled(not lowbie) - button.DragButton:SetEnabled(true) button.additionalText = nil - button.icon:SetDesaturated(false) + button.icon:SetDesaturated(lowbie) button.icon:SetAlpha(1) button.name:SetFontObject('GameFontNormal') -- 1.7.9.5