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

/Tukui/modules/skins/petition.lua

http://github.com/Asphyxia/Tukui
Lua | 33 lines | 25 code | 8 blank | 0 comment | 1 complexity | 10c4d11336afa2cb9aab516c917318b4 MD5 | raw file
 1local T, C, L = unpack(select(2, ...))
 2
 3local function LoadSkin()
 4	PetitionFrame:StripTextures(true)
 5	PetitionFrame:SetTemplate("Transparent")
 6	PetitionFrame:CreateShadow("Transparent")
 7
 8	T.SkinButton(PetitionFrameRequestButton)
 9	T.SkinButton(PetitionFrameRenameButton)
10	T.SkinButton(PetitionFrameCancelButton)
11	T.SkinCloseButton(PetitionFrameCloseButton)
12
13	PetitionFrameCharterTitle:SetTextColor(1, 1, 0)
14	PetitionFrameCharterName:SetTextColor(1, 1, 1)
15	PetitionFrameMasterTitle:SetTextColor(1, 1, 0)
16	PetitionFrameMasterName:SetTextColor(1, 1, 1)
17	PetitionFrameMemberTitle:SetTextColor(1, 1, 0)
18
19	for i=1, 9 do
20		_G["PetitionFrameMemberName"..i]:SetTextColor(1, 1, 1)
21	end
22
23	PetitionFrameInstructions:SetTextColor(1, 1, 1)
24
25	PetitionFrameRenameButton:Point("LEFT", PetitionFrameRequestButton, "RIGHT", 3, 0)
26	PetitionFrameRenameButton:Point("RIGHT", PetitionFrameCancelButton, "LEFT", -3, 0)
27	PetitionFrame:Height(PetitionFrame:GetHeight() - 80)
28
29	PetitionFrameCancelButton:Point("BOTTOMRIGHT", PetitionFrame, "BOTTOMRIGHT", -40, 20)
30	PetitionFrameRequestButton:Point("BOTTOMLEFT", PetitionFrame, "BOTTOMLEFT", 22, 20)
31end
32
33tinsert(T.SkinFuncs["Tukui"], LoadSkin)