37 lines
1.2 KiB
Lua
37 lines
1.2 KiB
Lua
|
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
|
||
|
local S = E:GetModule('Skins')
|
||
|
|
||
|
local _G = _G
|
||
|
|
||
|
function S:PetitionFrame()
|
||
|
if not (E.private.skins.blizzard.enable and E.private.skins.blizzard.petition) then return end
|
||
|
|
||
|
local PetitionFrame = _G.PetitionFrame
|
||
|
PetitionFrame:StripTextures(true)
|
||
|
PetitionFrame:CreateBackdrop('Transparent')
|
||
|
_G.PetitionFrameInset:Kill()
|
||
|
|
||
|
S:HandleButton(_G.PetitionFrameSignButton)
|
||
|
S:HandleButton(_G.PetitionFrameRequestButton)
|
||
|
S:HandleButton(_G.PetitionFrameRenameButton)
|
||
|
S:HandleButton(_G.PetitionFrameCancelButton)
|
||
|
S:HandleCloseButton(_G.PetitionFrameCloseButton)
|
||
|
|
||
|
_G.PetitionFrameCharterTitle:SetTextColor(1, 1, 0)
|
||
|
_G.PetitionFrameCharterName:SetTextColor(1, 1, 1)
|
||
|
_G.PetitionFrameMasterTitle:SetTextColor(1, 1, 0)
|
||
|
_G.PetitionFrameMasterName:SetTextColor(1, 1, 1)
|
||
|
_G.PetitionFrameMemberTitle:SetTextColor(1, 1, 0)
|
||
|
|
||
|
for i = 1, 9 do
|
||
|
_G['PetitionFrameMemberName'..i]:SetTextColor(1, 1, 1)
|
||
|
end
|
||
|
|
||
|
_G.PetitionFrameInstructions:SetTextColor(1, 1, 1)
|
||
|
|
||
|
_G.PetitionFrameRenameButton:Point('LEFT', _G.PetitionFrameRequestButton, 'RIGHT', 3, 0)
|
||
|
_G.PetitionFrameRenameButton:Point('RIGHT', _G.PetitionFrameCancelButton, 'LEFT', -3, 0)
|
||
|
end
|
||
|
|
||
|
S:AddCallback('PetitionFrame')
|