Hi,
im trying to seperate the "New Set" button in the equipment manager because I dont want an border around this one. The problem is that the name of that button isnt always the same...
My code works if I have only a small number of sets saved and if I dont delete or add a new one.
Maybe the hooked function isnt the right one?
Lua Code:
hooksecurefunc("PaperDollEquipmentManagerPane_Update", function()
for i = 1, 9 do
local button = _G["PaperDollEquipmentManagerPaneButton"..i]
local icon = _G["PaperDollEquipmentManagerPaneButton"..i.."Icon"]
local text = button.text:GetText()
print(text)
if button and not button.skinned then
if (text == "New Set") then
button.skinned = true
else
local border = CreateFrame("Frame", nil, button)
border:SetAllPoints(icon)
border:CreateBeautyBorder(12)
border:SetBeautyBorderPadding(1)
icon:SetTexCoord(0.07, 0.93, 0.07, 0.93)
button.skinned = true
end
end
end
end)