Hi!
I'm trying as the title says to use both :SetTexCoord and :SetRotation() on the same texture
Lua Code:
CREATING FRAMES AND STUFF UP HERE
mainFrame.icon = mainFrame:CreateTexture(nil,"OVERLAY",nil,-8)
mainFrame.icon:SetPoint("CENTER")
mainFrame.icon:SetSize(mainFrame:GetWidth()*iconScale, mainFrame:GetWidth()*iconScale)
mainFrame.icon:SetTexture(unpack(cfg.SXwpClassInfo[cfg.classNumber]))
mainFrame.icon:SetTexCoord(unpack(cfg.SXwpClassInfoTexCoord[cfg.classNumber]))
mainFrame.icon:SetRotation(math.rad(0))
what I try to do with this code is to first set the coord for the bottom left emblem on
THIS image, then I want to rotate it based on a slidervalue (set longer down in the code), but if I use the mainFrame.icon:SetRotation(math.rad(0)) command the image show uncropped
Any way to fix this without using animGroup and rotate