This small sample of code is just a small experiment to pull the protrait. It works, but requires a reload of the ui...First load shows nothing, but it shows up if I reload the UI...
Lua Code:
local myFrame = CreateFrame("Frame","Frame_Name",UIParent,"ButtonFrameTemplate")
myFrame:SetSize(255,200)
myFrame:ClearAllPoints()
myFrame:SetPoint("LEFT",75,75)
myFrame:EnableMouse(true)
myFrame:SetMovable(true)
myFrame:RegisterForDrag("LeftButton")
myFrame:SetScript("OnDragStart",myFrame.StartMoving)
myFrame:SetScript("OnDragStop",myFrame.StopMovingOrSizing)
local img1 = myFrame:CreateTexture(nil, "ARTWORK")
SetPortraitTexture(img1, "player")
img1:SetHeight(60)
img1:SetWidth(60)
img1:SetPoint("TOPLEFT", -6, 8)
I'm not at all sure...any ideas?