Commit 0c783044 authored by Azilroka's avatar Azilroka

Spellbook

parent 91c2ed95
......@@ -59,8 +59,6 @@ function AS:Blizzard_Spellbook()
for i = 1, 8 do
local Tab = _G["SpellBookSkillLineTab"..i]
AS:SkinFrame(Tab)
AS:SkinTexture(Tab:GetNormalTexture())
Tab:GetNormalTexture():SetInside()
Tab:HookScript("OnEnter", function(self) self:SetBackdropBorderColor(unpack(AS.ValueColor or AS.ClassColor)) end)
Tab:HookScript("OnLeave", function(self) if self:GetChecked() then self:SetBackdropBorderColor(1, 1, 0) else self:SetBackdropBorderColor(unpack(AS.BorderColor)) end end)
......@@ -74,6 +72,14 @@ function AS:Blizzard_Spellbook()
end)
end
hooksecurefunc("SpellBookFrame_UpdateSkillLineTabs", function()
for i = 1, 8 do
local Tab = _G["SpellBookSkillLineTab"..i]
AS:SkinTexture(Tab:GetNormalTexture())
Tab:GetNormalTexture():SetInside()
end
end)
-- Professions
for _, Button in pairs({ PrimaryProfession1, PrimaryProfession2, SecondaryProfession1, SecondaryProfession2, SecondaryProfession3 }) do
......
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