Skip to content

Commit

Permalink
Fixed ChannelButton2 skin.
Browse files Browse the repository at this point in the history
  • Loading branch information
Wetxius committed Oct 15, 2014
1 parent 95d3a25 commit 0ed3e63
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions ShestakUI/Modules/Skins/Blizzard/Friends.lua
Original file line number Diff line number Diff line change
Expand Up @@ -256,14 +256,21 @@ local function LoadSkin()
T.SkinTab(_G["FriendsTabHeaderTab"..i], true)
end

local once = false
local function Channel()
for i = 2, MAX_DISPLAY_CHANNEL_BUTTONS do
for i = 1, MAX_DISPLAY_CHANNEL_BUTTONS do
local button = _G["ChannelButton"..i]

if button then
button:SetPoint("TOPLEFT", _G["ChannelButton"..(i-1)], "BOTTOMLEFT", 0, -3)
_G["ChannelButton1"]:SkinButton()
button:SkinButton()
if i > 1 then
button:SetPoint("TOPLEFT", _G["ChannelButton"..i-1], "BOTTOMLEFT", 0, -3)
end
if i == 2 and once == false then
button:SkinButton()
once = true
elseif i ~= 2 then
button:SkinButton()
end
end
end
end
Expand Down

0 comments on commit 0ed3e63

Please sign in to comment.