Hey, I am trying to move the "artwork" icon for the TidyPlates Totem Widget. I've tried editing pretty much everything in the below block of code from the lua file, but have not been able to figure it out. I am able to move the overlay just fine, but anytime I try to move the icon either the icon just doesn't move or doesn't show up after the edit.
Specifically I've tried changing the line
frame.Icon:SetPoint("CENTER",frame) to
frame.Icon:SetPoint("CENTER",frame, 1, 20) but that doesn't move the icon, and to frame.Icon:SetPoint("TOP",frame) but that just makes the icon disappear
Any ideas? Really appreciate any help!
Lua Code:
local function CreateTotemIconWidget(parent)
local frame = CreateFrame("Frame", nil, parent)
frame:SetWidth(50); frame:SetHeight(50)
frame.Overlay = frame:CreateTexture(nil, "OVERLAY")
frame.Overlay:SetPoint("CENTER",frame, 1, -1)
frame.Overlay:SetWidth(20); frame.Overlay:SetHeight(20)
frame.Overlay:SetTexture(classWidgetPath.."BORDER")
--frame.Overlay:SetAllPoints(frame)
frame.Icon = frame:CreateTexture(nil, "ARTWORK")
frame.Icon:SetPoint("CENTER",frame)
frame.Icon:SetTexCoord(.07, 1-.07, .07, 1-.07) -- obj:SetTexCoord(left,right,top,bottom)
--frame.Icon:SetWidth(46); frame.Icon:SetHeight(47)
frame.Icon:SetAllPoints(frame)
frame:Hide()
frame.Update = UpdateTotemIconWidget
return frame
end