AddOnSkins

10M Downloads

How do I skin an unnamed frame...?

aLanaMaunz opened this issue ยท 1 comments

commented

Trying to improve some skins for the blizzard UI, right now im working on the new LFG interface... but there is a button without a name: The close button!
image

image

How do I approach this issue?

commented

sorry, found "a solution"... not great, but at least it works~

	for i=1, select("#", _G["LFGParentFrame"]:GetChildren()) do
	local ChildFrame = select(i, _G["LFGParentFrame"]:GetChildren())
		if  ChildFrame:GetObjectType() == "Button" and ChildFrame:GetName() == nil then
		print(ChildFrame:GetObjectType())
		print(ChildFrame:GetName())
		AS:SkinCloseButton(ChildFrame)
		ChildFrame:ClearAllPoints()
		ChildFrame:SetPoint('TOPRIGHT', '$parent', 'TOPRIGHT', 4, -7)
		end
	end