PageRenderTime 83ms CodeModel.GetById 78ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/Tukui/modules/skins/archeology.lua

http://github.com/Asphyxia/Tukui
Lua | 80 lines | 66 code | 14 blank | 0 comment | 10 complexity | 554593aa84e6d959bf6e9d6ee80cc2d2 MD5 | raw file
 1local T, C, L = unpack(select(2, ...))
 2
 3local function LoadSkin()
 4	ArchaeologyFrame:StripTextures(true)
 5	ArchaeologyFrameInset:StripTextures(true)
 6	ArchaeologyFrame:SetTemplate("Transparent")
 7	ArchaeologyFrame:CreateShadow("Transparent")
 8	
 9	T.SkinButton(ArchaeologyFrameArtifactPageSolveFrameSolveButton, true)
10	T.SkinDropDownBox(ArchaeologyFrameRaceFilter, 125)
11	
12	ArchaeologyFrameRankBar:StripTextures()
13	ArchaeologyFrameRankBar:SetStatusBarTexture(C["media"].normTex)
14	ArchaeologyFrameRankBar:CreateBackdrop("Transparent")
15	
16	ArchaeologyFrameArtifactPageSolveFrameStatusBar:StripTextures()
17	ArchaeologyFrameArtifactPageSolveFrameStatusBar:SetStatusBarTexture(C["media"].normTex)
18	ArchaeologyFrameArtifactPageSolveFrameStatusBar:SetStatusBarColor(0.7, 0.2, 0)
19	ArchaeologyFrameArtifactPageSolveFrameStatusBar:CreateBackdrop("Transparent")
20	
21	for i=1, ARCHAEOLOGY_MAX_COMPLETED_SHOWN do
22		local artifact = _G["ArchaeologyFrameCompletedPageArtifact"..i]
23		
24		if artifact then
25			_G["ArchaeologyFrameCompletedPageArtifact"..i.."Border"]:Kill()
26			_G["ArchaeologyFrameCompletedPageArtifact"..i.."Bg"]:Kill()
27			_G["ArchaeologyFrameCompletedPageArtifact"..i.."Icon"]:SetTexCoord(.08, .92, .08, .92)
28			_G["ArchaeologyFrameCompletedPageArtifact"..i.."Icon"].backdrop = CreateFrame("Frame", nil, artifact)
29			_G["ArchaeologyFrameCompletedPageArtifact"..i.."Icon"].backdrop:SetTemplate("Transparent")
30			_G["ArchaeologyFrameCompletedPageArtifact"..i.."Icon"].backdrop:Point("TOPLEFT", _G["ArchaeologyFrameCompletedPageArtifact"..i.."Icon"], "TOPLEFT", -2, 2)
31			_G["ArchaeologyFrameCompletedPageArtifact"..i.."Icon"].backdrop:Point("BOTTOMRIGHT", _G["ArchaeologyFrameCompletedPageArtifact"..i.."Icon"], "BOTTOMRIGHT", 2, -2)
32			_G["ArchaeologyFrameCompletedPageArtifact"..i.."Icon"].backdrop:SetFrameLevel(artifact:GetFrameLevel() - 2)
33			_G["ArchaeologyFrameCompletedPageArtifact"..i.."Icon"]:SetDrawLayer("OVERLAY")
34			_G["ArchaeologyFrameCompletedPageArtifact"..i.."ArtifactName"]:SetTextColor(1, 1, 0)
35			_G["ArchaeologyFrameCompletedPageArtifact"..i.."ArtifactSubText"]:SetTextColor(0.6, 0.6, 0.6)
36		end
37	end
38	
39	for i=1, ARCHAEOLOGY_MAX_RACES do
40		local frame = _G["ArchaeologyFrameSummaryPageRace"..i]
41		
42		if frame then
43			frame.raceName:SetTextColor(1, 1, 1)
44		end
45	end
46	
47	for i=1, ArchaeologyFrameCompletedPage:GetNumRegions() do
48		local region = select(i, ArchaeologyFrameCompletedPage:GetRegions())
49		if region:GetObjectType() == "FontString" then
50			region:SetTextColor(1, 1, 0)
51		end
52	end
53	
54	for i=1, ArchaeologyFrameSummaryPage:GetNumRegions() do
55		local region = select(i, ArchaeologyFrameSummaryPage:GetRegions())
56		if region:GetObjectType() == "FontString" then
57			region:SetTextColor(1, 1, 0)
58		end
59	end
60	
61	ArchaeologyFrameCompletedPage.infoText:SetTextColor(1, 1, 1)
62	ArchaeologyFrameHelpPageTitle:SetTextColor(1, 1, 0)
63	ArchaeologyFrameHelpPageDigTitle:SetTextColor(1, 1, 0)
64	ArchaeologyFrameHelpPageHelpScrollHelpText:SetTextColor(1, 1, 1)
65	
66	ArchaeologyFrameArtifactPageHistoryTitle:SetTextColor(1, 1, 0)
67	ArchaeologyFrameArtifactPageIcon:SetTexCoord(.08, .92, .08, .92)
68	ArchaeologyFrameArtifactPageIcon.backdrop = CreateFrame("Frame", nil, ArchaeologyFrameArtifactPage)
69	ArchaeologyFrameArtifactPageIcon.backdrop:SetTemplate("Transparent")
70	ArchaeologyFrameArtifactPageIcon.backdrop:Point("TOPLEFT", ArchaeologyFrameArtifactPageIcon, "TOPLEFT", -2, 2)
71	ArchaeologyFrameArtifactPageIcon.backdrop:Point("BOTTOMRIGHT", ArchaeologyFrameArtifactPageIcon, "BOTTOMRIGHT", 2, -2)
72	ArchaeologyFrameArtifactPageIcon.backdrop:SetFrameLevel(ArchaeologyFrameArtifactPage:GetFrameLevel())
73	ArchaeologyFrameArtifactPageIcon:SetParent(ArchaeologyFrameArtifactPageIcon.backdrop)
74	ArchaeologyFrameArtifactPageIcon:SetDrawLayer("OVERLAY")	
75	
76	ArchaeologyFrameArtifactPageHistoryScrollChildText:SetTextColor(1, 1, 1)
77	T.SkinCloseButton(ArchaeologyFrameCloseButton)
78end
79
80T.SkinFuncs["Blizzard_ArchaeologyUI"] = LoadSkin