Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Some fixes to low-level characters
Browse files Browse the repository at this point in the history
  • Loading branch information
p3lim committed Sep 20, 2012
1 parent 9815f0a commit 9e4c95f
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions Collie.lua
Expand Up @@ -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
Expand Down Expand Up @@ -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')

Expand Down

0 comments on commit 9e4c95f

Please sign in to comment.