View Single Post
11-10-10, 04:34 PM   #1
lilgulps
A Theradrim Guardian
 
lilgulps's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2010
Posts: 62
How to rotate a frame?

Code:
local addon = CreateFrame("Frame", "Base2", UIParent)
addon:SetHeight(128)
addon:SetWidth(128)
addon:SetUserPlaced(true)
addon:SetPoint("Center", 100, 0)

local tex = addon:CreateTexture(nil, "ARTWORK")
tex:SetTexture(file)
tex:SetAllPoints(addon)
Is what I have right now creating a frame filled with a picture

What I want to do is rotate the picture to a certain angle
What can I do to accomplish this?

I thinkg SetDegrees() only works with animations?
  Reply With Quote