Commit 7c693837 authored by Azilroka's avatar Azilroka

Altoholic

parent e720eadf
......@@ -83,9 +83,11 @@ function AS:Altoholic(event, addon)
}
for _, Button in pairs(Buttons) do
AS:StyleButton(AltoholicTabCharacters_MenuIcons[Button])
AS:CreateBackdrop(AltoholicTabCharacters_MenuIcons[Button])
AS:SkinTexture(AltoholicTabCharacters_MenuIcons[Button].Icon)
if AltoholicTabCharacters_MenuIcons[Button] then
AS:StyleButton(AltoholicTabCharacters_MenuIcons[Button])
AS:CreateBackdrop(AltoholicTabCharacters_MenuIcons[Button])
AS:SkinTexture(AltoholicTabCharacters_MenuIcons[Button].Icon)
end
end
AS:EnumObjects(
......@@ -122,18 +124,12 @@ function AS:Altoholic(event, addon)
if addon == "Altoholic_Guild" then
AS:SkinFrame(AltoholicTabGuild.Members)
AS:SkinFrame(AltoholicTabGuild.Bank)
if AltoholicTabGuild.Bank then AS:SkinFrame(AltoholicTabGuild.Bank) end
AS:SkinScrollBar(AltoholicTabGuild.Members.ScrollFrame.ScrollBar)
AS:StripTextures(AltoholicTabGuild.Members.ScrollFrame, true)
AS:EnumObjects(function(index) return AltoholicTabGuild['MenuItem'..index] end, function(obj) AS:SkinButton(obj, true) end)
AS:EnumObjects(
{
function(index) return AltoholicTabGuild.Bank['Entry'..index] end,
function(obj, index) return obj['Item'..index] end,
},
function(obj) SkinItemButton(obj) end
)
AS:EnumObjects({ function(index) return AS.Retail and AltoholicTabGuild.Bank['Entry'..index] end, function(obj, index) return obj['Item'..index] end }, function(obj) SkinItemButton(obj) end)
AS:EnumObjects(function(index) return AltoholicTabGuild.Members['Item'..index] end, function(obj) SkinItemButton(obj) end)
AS:EnumObjects(function(index) return AltoholicTabGuild["SortButtons"]["Sort"..index] end, function(obj) AS:SkinButton(obj) end)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment