remove temp folder structure

This commit is contained in:
Crum
2018-02-19 21:03:21 -06:00
parent 85a2a5bcf7
commit 611f11aff9
408 changed files with 0 additions and 0 deletions
@@ -0,0 +1,70 @@
local E, L, V, P, G = unpack(ElvUI); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
local S = E:GetModule("Skins");
--Cache global variables
--Lua functions
local _G = _G
local unpack = unpack
--WoW API / Variables
local function LoadSkin()
if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.spellbook ~= true then return end
E:StripTextures(SpellBookFrame, true)
E:CreateBackdrop(SpellBookFrame, "Transparent")
SpellBookFrame.backdrop:SetPoint("TOPLEFT", 10, -12)
SpellBookFrame.backdrop:SetPoint("BOTTOMRIGHT", -31, 75)
for i = 1, 3 do
local tab = _G["SpellBookFrameTabButton"..i]
tab:GetNormalTexture():SetTexture("")
tab:GetDisabledTexture():SetTexture("")
S:HandleTab(tab)
tab.backdrop:SetPoint("TOPLEFT", 14, E.PixelMode and -17 or -19)
tab.backdrop:SetPoint("BOTTOMRIGHT", -14, 19)
end
S:HandleNextPrevButton(SpellBookPrevPageButton)
S:HandleNextPrevButton(SpellBookNextPageButton)
S:HandleCloseButton(SpellBookCloseButton)
for i = 1, SPELLS_PER_PAGE do
local button = _G["SpellButton"..i]
E:StripTextures(button)
_G["SpellButton"..i.."AutoCastable"]:SetTexture("Interface\\Buttons\\UI-AutoCastableOverlay")
E:SetOutside(_G["SpellButton"..i.."AutoCastable"], button, 16, 16)
E:CreateBackdrop(button, "Default", true)
_G["SpellButton"..i.."IconTexture"]:SetTexCoord(unpack(E.TexCoords))
E:RegisterCooldown(_G["SpellButton"..i.."Cooldown"])
end
hooksecurefunc("SpellButton_UpdateButton", function()
local name = this:GetName()
_G[name.."SpellName"]:SetTextColor(1, 0.80, 0.10)
_G[name.."SubSpellName"]:SetTextColor(1, 1, 1)
_G[name.."Highlight"]:SetTexture(1, 1, 1, 0.3)
end)
for i = 1, MAX_SKILLLINE_TABS do
local tab = _G["SpellBookSkillLineTab"..i]
E:StripTextures(tab)
E:StyleButton(tab, nil, true)
E:SetTemplate(tab, "Default", true)
E:SetInside(tab:GetNormalTexture())
tab:GetNormalTexture():SetTexCoord(unpack(E.TexCoords))
end
SpellBookPageText:SetTextColor(1, 1, 1)
end
S:AddCallback("SpellBook", LoadSkin)