PageRenderTime 78ms CodeModel.GetById 32ms app.highlight 3ms RepoModel.GetById 42ms app.codeStats 0ms

/Tukui/modules/skins/ghostframe.lua

http://github.com/Asphyxia/Tukui
Lua | 27 lines | 23 code | 4 blank | 0 comment | 0 complexity | 8e0387b93373f6f68d539eaf8f619d1c MD5 | raw file
 1local T, C, L = unpack(select(2, ...))
 2
 3local function LoadSkin()
 4	T.SkinButton(GhostFrame)
 5	GhostFrame:SetBackdropColor(0,0,0,0)
 6	GhostFrame:SetBackdropBorderColor(0,0,0,0)
 7	GhostFrame.SetBackdropColor = T.dummy
 8	GhostFrame.SetBackdropBorderColor = T.dummy
 9	GhostFrame:ClearAllPoints()
10	GhostFrame:SetPoint("TOP", UIParent, "TOP", 0, -100)
11	T.SkinButton(GhostFrameContentsFrame)
12	GhostFrameContentsFrameIcon:SetTexture(nil)
13
14	local x = CreateFrame("Frame", nil, GhostFrame)
15	x:SetFrameStrata("MEDIUM")
16	x:SetTemplate("Transparent")
17	x:SetPoint("TOPLEFT", GhostFrameContentsFrameIcon, "TOPLEFT", -2, 2)
18	x:SetPoint("BOTTOMRIGHT", GhostFrameContentsFrameIcon, "BOTTOMRIGHT", 2, -2)
19
20	local tex = x:CreateTexture(nil, "OVERLAY")
21	tex:SetTexture("Interface\\Icons\\spell_holy_guardianspirit")
22	tex:SetTexCoord(0.1, 0.9, 0.1, 0.9)
23	tex:SetPoint("TOPLEFT", x, "TOPLEFT", 2, -2)
24	tex:SetPoint("BOTTOMRIGHT", x, "BOTTOMRIGHT", -2, 2)
25end
26
27tinsert(T.SkinFuncs["Tukui"], LoadSkin)