initial commit
This commit is contained in:
47
Modules/Skins/Blizzard/AzeriteRespec.lua
Normal file
47
Modules/Skins/Blizzard/AzeriteRespec.lua
Normal file
@@ -0,0 +1,47 @@
|
||||
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
|
||||
local S = E:GetModule('Skins')
|
||||
|
||||
local _G = _G
|
||||
|
||||
function S:Blizzard_AzeriteRespecUI()
|
||||
if not (E.private.skins.blizzard.enable and E.private.skins.blizzard.azeriteRespec) then return end
|
||||
|
||||
local AzeriteRespecFrame = _G.AzeriteRespecFrame
|
||||
AzeriteRespecFrame:SetClipsChildren(true)
|
||||
AzeriteRespecFrame.Background:Hide()
|
||||
AzeriteRespecFrame:StripTextures()
|
||||
AzeriteRespecFrame:CreateBackdrop('Transparent')
|
||||
|
||||
local Lines = AzeriteRespecFrame:CreateTexture(nil, 'BACKGROUND')
|
||||
Lines:ClearAllPoints()
|
||||
Lines:Point('TOPLEFT', -50, 25)
|
||||
Lines:Point('BOTTOMRIGHT')
|
||||
Lines:SetTexture([[Interface\Transmogrify\EtherealLines]], true, true)
|
||||
Lines:SetHorizTile(true)
|
||||
Lines:SetVertTile(true)
|
||||
Lines:SetAlpha(0.5)
|
||||
|
||||
local ItemSlot = AzeriteRespecFrame.ItemSlot
|
||||
ItemSlot:Size(64, 64)
|
||||
ItemSlot:Point('CENTER', AzeriteRespecFrame)
|
||||
ItemSlot.Icon:SetInside()
|
||||
ItemSlot.GlowOverlay:SetAlpha(0)
|
||||
|
||||
ItemSlot:CreateBackdrop('Transparent')
|
||||
ItemSlot.backdrop:SetBackdropColor(.6, 0, .6, .5)
|
||||
S:HandleIcon(ItemSlot.Icon)
|
||||
|
||||
local ButtonFrame = AzeriteRespecFrame.ButtonFrame
|
||||
ButtonFrame:GetRegions():Hide()
|
||||
ButtonFrame.ButtonBorder:Hide()
|
||||
ButtonFrame.ButtonBottomBorder:Hide()
|
||||
|
||||
ButtonFrame.MoneyFrameEdge:Hide()
|
||||
ButtonFrame.MoneyFrame:ClearAllPoints()
|
||||
ButtonFrame.MoneyFrame:Point('BOTTOMRIGHT', ButtonFrame.MoneyFrameEdge, 7, 5)
|
||||
|
||||
S:HandleButton(ButtonFrame.AzeriteRespecButton, true)
|
||||
S:HandleCloseButton(AzeriteRespecFrame.CloseButton)
|
||||
end
|
||||
|
||||
S:AddCallbackForAddon('Blizzard_AzeriteRespecUI')
|
||||
Reference in New Issue
Block a user