mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 16:34:45 +00:00
update SpellBook skin
This commit is contained in:
@@ -34,46 +34,34 @@ local function LoadSkin()
|
|||||||
|
|
||||||
for i = 1, SPELLS_PER_PAGE do
|
for i = 1, SPELLS_PER_PAGE do
|
||||||
local button = _G["SpellButton"..i]
|
local button = _G["SpellButton"..i]
|
||||||
local iconTexture = _G["SpellButton"..i.."IconTexture"]
|
E:StripTextures(button)
|
||||||
local cooldown = _G["SpellButton"..i.."Cooldown"]
|
|
||||||
|
|
||||||
button:DisableDrawLayer("BACKGROUND")
|
_G["SpellButton"..i.."AutoCastable"]:SetTexture("Interface\\Buttons\\UI-AutoCastableOverlay")
|
||||||
button:GetNormalTexture():SetTexture("")
|
E:SetOutside(_G["SpellButton"..i.."AutoCastable"], button, 16, 16)
|
||||||
button:GetPushedTexture():SetTexture("")
|
|
||||||
|
|
||||||
E:CreateBackdrop(button, "Default", true)
|
E:CreateBackdrop(button, "Default", true)
|
||||||
|
|
||||||
iconTexture:SetTexCoord(unpack(E.TexCoords))
|
_G["SpellButton"..i.."IconTexture"]:SetTexCoord(unpack(E.TexCoords))
|
||||||
|
|
||||||
E:RegisterCooldown(cooldown)
|
E:RegisterCooldown(_G["SpellButton"..i.."Cooldown"])
|
||||||
end
|
end
|
||||||
|
|
||||||
hooksecurefunc("SpellButton_UpdateButton", function()
|
hooksecurefunc("SpellButton_UpdateButton", function()
|
||||||
local name = this:GetName()
|
local name = this:GetName()
|
||||||
local spellName = _G[name.."SpellName"]
|
_G[name.."SpellName"]:SetTextColor(1, 0.80, 0.10)
|
||||||
local subSpellName = _G[name.."SubSpellName"]
|
_G[name.."SubSpellName"]:SetTextColor(1, 1, 1)
|
||||||
local iconTexture = _G[name.."IconTexture"]
|
_G[name.."Highlight"]:SetTexture(1, 1, 1, 0.3)
|
||||||
local highlight = _G[name.."Highlight"]
|
|
||||||
|
|
||||||
spellName:SetTextColor(1, 0.80, 0.10)
|
|
||||||
subSpellName:SetTextColor(1, 1, 1)
|
|
||||||
|
|
||||||
if iconTexture then
|
|
||||||
if highlight then
|
|
||||||
highlight:SetTexture(1, 1, 1, 0.3)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end)
|
end)
|
||||||
|
|
||||||
for i = 1, MAX_SKILLLINE_TABS do
|
for i = 1, MAX_SKILLLINE_TABS do
|
||||||
local tab = _G["SpellBookSkillLineTab"..i]
|
local tab = _G["SpellBookSkillLineTab"..i]
|
||||||
|
|
||||||
tab:DisableDrawLayer("BACKGROUND")
|
E:StripTextures(tab)
|
||||||
E:SetTemplate(tab, "Default", true)
|
|
||||||
E:StyleButton(tab, nil, true)
|
E:StyleButton(tab, nil, true)
|
||||||
|
E:SetTemplate(tab, "Default", true)
|
||||||
|
|
||||||
tab:GetNormalTexture():SetTexCoord(unpack(E.TexCoords))
|
|
||||||
E:SetInside(tab:GetNormalTexture())
|
E:SetInside(tab:GetNormalTexture())
|
||||||
|
tab:GetNormalTexture():SetTexCoord(unpack(E.TexCoords))
|
||||||
end
|
end
|
||||||
|
|
||||||
SpellBookPageText:SetTextColor(1, 1, 1)
|
SpellBookPageText:SetTextColor(1, 1, 1)
|
||||||
|
|||||||
Reference in New Issue
Block a user