Commit 8a964f95 authored by Azilroka's avatar Azilroka

Add 'Solid'

parent ce675f63
......@@ -333,8 +333,9 @@ AS.ArrowRotation = {
}
function AS:SkinArrowButton(Button, Arrow)
if Arrow then Arrow = strlower(Arrow) end
if (not Arrow) then
if Arrow then
Arrow = strlower(Arrow)
else
Arrow = 'down'
local ButtonName = Button:GetName() and Button:GetName():lower()
if ButtonName then
......@@ -408,7 +409,7 @@ function AS:SkinButton(Button, Strip)
if Button.Icon then
local Texture = Button.Icon:GetTexture()
if Texture and strfind(Texture, [[Interface\ChatFrame\ChatFrameExpandArrow]]) then
if Texture and (type(Texture) == 'string' and strfind(Texture, [[Interface\ChatFrame\ChatFrameExpandArrow]])) then
Button.Icon:SetTexture([[Interface\AddOns\AddOnSkins\Media\Textures\Arrow]])
Button.Icon:SetVertexColor(1, 1, 1)
Button.Icon:SetRotation(AS.ArrowRotation['right'])
......
......@@ -336,6 +336,10 @@ function AS:Init(event, addon)
AS:RegisterEvent('PET_BATTLE_CLOSE', 'AddNonPetBattleFrames')
AS:RegisterEvent('PET_BATTLE_OPENING_START', 'RemoveNonPetBattleFrames')
AS:RegisterEvent('PLAYER_ENTERING_WORLD', 'StartSkinning')
if AS.LSM then
AS.LSM:Register('statusbar', 'Solid', [[Interface\Buttons\WHITE8X8]])
end
end
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