PageRenderTime 88ms CodeModel.GetById 84ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/Tukui/modules/skins/bgscore.lua

http://github.com/Asphyxia/Tukui
Lua | 23 lines | 19 code | 4 blank | 0 comment | 2 complexity | 97c4295740d0e9e82ba5b8d92850632c MD5 | raw file
 1local T, C, L = unpack(select(2, ...))
 2
 3local function LoadSkin()
 4	WorldStateScoreScrollFrame:StripTextures()
 5	WorldStateScoreFrame:StripTextures()
 6	WorldStateScoreFrame:SetTemplate("Transparent")
 7	T.SkinCloseButton(WorldStateScoreFrameCloseButton)
 8	WorldStateScoreFrameInset:Kill()
 9	T.SkinButton(WorldStateScoreFrameLeaveButton)
10
11	for i = 1, WorldStateScoreScrollFrameScrollChildFrame:GetNumChildren() do
12		local b = _G["WorldStateScoreButton"..i]
13		b:StripTextures()
14		b:StyleButton(false)
15		b:SetTemplate("Transparent", true)
16	end
17
18	for i = 1, 3 do 
19		T.SkinTab(_G["WorldStateScoreFrameTab"..i])
20	end
21end
22
23tinsert(T.SkinFuncs["Tukui"], LoadSkin)