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

/Tukui/modules/skins/lfg.lua

http://github.com/Asphyxia/Tukui
Lua | 58 lines | 45 code | 8 blank | 5 comment | 3 complexity | efd3c817d3ae62ca351c7b27c2ab5f0a MD5 | raw file
 1local T, C, L = unpack(select(2, ...))
 2
 3local function LoadSkin()
 4	local checkbox = {
 5		"LookingForGuildPvPButton",
 6		"LookingForGuildWeekendsButton",
 7		"LookingForGuildWeekdaysButton",
 8		"LookingForGuildRPButton",
 9		"LookingForGuildRaidButton",
10		"LookingForGuildQuestButton",
11		"LookingForGuildDungeonButton",
12	}
13	-- skin checkboxes
14	for _, v in pairs(checkbox) do
15		T.SkinCheckBox(_G[v])
16	end
17	
18
19	-- have to skin these checkboxes seperate for some reason o_O
20	T.SkinCheckBox(LookingForGuildTankButton.checkButton)
21	T.SkinCheckBox(LookingForGuildHealerButton.checkButton)
22	T.SkinCheckBox(LookingForGuildDamagerButton.checkButton)
23	
24	-- skinning other frames
25	LookingForGuildFrameInset:StripTextures(false)
26	LookingForGuildFrame:StripTextures()
27	LookingForGuildFrame:SetTemplate("Transparent")
28	LookingForGuildBrowseButton_LeftSeparator:Kill()
29	LookingForGuildRequestButton_RightSeparator:Kill()
30	T.SkinScrollBar(LookingForGuildBrowseFrameContainerScrollBar)
31	T.SkinButton(LookingForGuildBrowseButton)
32	T.SkinButton(LookingForGuildRequestButton)
33	T.SkinCloseButton(LookingForGuildFrameCloseButton)
34	LookingForGuildCommentInputFrame:CreateBackdrop("Transparent")
35	LookingForGuildCommentInputFrame:StripTextures(false)
36	
37	-- skin container buttons on browse and request page
38	for i = 1, 5 do
39		local b = _G["LookingForGuildBrowseFrameContainerButton"..i]
40		local t = _G["LookingForGuildAppsFrameContainerButton"..i]
41		b:SetBackdrop(nil)
42		t:SetBackdrop(nil)
43	end
44	
45	-- skin tabs
46	for i= 1, 3 do
47		T.SkinTab(_G["LookingForGuildFrameTab"..i])
48	end
49	
50	GuildFinderRequestMembershipFrame:StripTextures(true)
51	GuildFinderRequestMembershipFrame:SetTemplate("Transparent")
52	T.SkinButton(GuildFinderRequestMembershipFrameAcceptButton)
53	T.SkinButton(GuildFinderRequestMembershipFrameCancelButton)
54	GuildFinderRequestMembershipFrameInputFrame:StripTextures()
55	GuildFinderRequestMembershipFrameInputFrame:SetTemplate("Transparent")		
56end
57
58T.SkinFuncs["Blizzard_LookingForGuildUI"] = LoadSkin