forked from TylerR909/Talented
-
Notifications
You must be signed in to change notification settings - Fork 0
/
AddOnSkins.lua
33 lines (26 loc) · 1.05 KB
/
AddOnSkins.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
local AS = unpack(AddOnSkins)
if not AS:CheckAddOn("Talented") then return end
function AS:Talented(_, addon)
if addon ~= "Blizzard_TalentUI" then return end
local function TalentedSkin()
local Talented = _G['Talented']
local pve, pvp = Talented.PvETab, Talented.PvPTab
local pveTexture, pvpTexture = Talented.PvETexture, Talented.PvPTexture
AS:SkinFrame(pve)
AS:StyleButton(pve)
pve:SetNormalTexture(pveTexture)
pve:GetNormalTexture():SetInside()
AS:SkinTexture(pve:GetNormalTexture())
local point, relatedTo, point2, x, y = pve:GetPoint()
pve:SetPoint(point, relatedTo, point2, 1, y)
AS:SkinFrame(pvp)
AS:StyleButton(pvp)
pvp:SetNormalTexture(pvpTexture)
pvp:GetNormalTexture():SetInside()
AS:SkinTexture(pvp:GetNormalTexture())
point, relatedTo, point2, x, y = pvp:GetPoint()
pvp:SetPoint(point, relatedTo, point2, 1, y)
end
AS:Delay(0.02, TalentedSkin)
end
AS:RegisterSkin('Talented', AS.Talented, "ADDON_LOADED")