PageRenderTime 82ms CodeModel.GetById 40ms app.highlight 2ms RepoModel.GetById 38ms app.codeStats 0ms

/Tukui/modules/skins/guildregister.lua

http://github.com/Asphyxia/Tukui
Lua | 31 lines | 26 code | 5 blank | 0 comment | 7 complexity | f8a9d3de730946de7f2469aa2dbf225a MD5 | raw file
 1local T, C, L = unpack(select(2, ...))
 2
 3local function LoadSkin()
 4	GuildRegistrarFrame:StripTextures(true)
 5	GuildRegistrarFrame:SetTemplate("Transparent")
 6	GuildRegistrarGreetingFrame:StripTextures()
 7	T.SkinButton(GuildRegistrarFrameGoodbyeButton)
 8	T.SkinButton(GuildRegistrarFrameCancelButton)
 9	T.SkinButton(GuildRegistrarFramePurchaseButton)
10	T.SkinCloseButton(GuildRegistrarFrameCloseButton)
11	T.SkinEditBox(GuildRegistrarFrameEditBox)
12	for i=1, GuildRegistrarFrameEditBox:GetNumRegions() do
13		local region = select(i, GuildRegistrarFrameEditBox:GetRegions())
14		if region:GetObjectType() == "Texture" then
15			if region:GetTexture() == "Interface\\ChatFrame\\UI-ChatInputBorder-Left" or region:GetTexture() == "Interface\\ChatFrame\\UI-ChatInputBorder-Right" then
16				region:Kill()
17			end
18		end
19	end
20
21	GuildRegistrarFrameEditBox:Height(20)
22
23	for i=1, 2 do
24		_G["GuildRegistrarButton"..i]:GetFontString():SetTextColor(1, 1, 1)
25	end
26
27	GuildRegistrarPurchaseText:SetTextColor(1, 1, 1)
28	AvailableServicesText:SetTextColor(1, 1, 0)
29end
30
31tinsert(T.SkinFuncs["Tukui"], LoadSkin)