Hi all,
Just for testing, I have made a parallelogram texture and applied this on a plain texture object as well as on a texture object with a mask object.
The first one draws an art as it is while the second one automatically flips an art horizontally...
Here's an exact code snippet:
Lua Code:
local mask = UIParent:CreateMaskTexture();
mask:SetTexture(parallel);
mask:SetSize(256, 32);
mask:SetPoint("RIGHT", UIParent, "CENTER", -50, 0);
local texture1 = UIParent:CreateTexture(nil, "ARTWORK");
texture1:SetColorTexture(1, 1, 1);
texture1:SetAllPoints(mask);
texture1:AddMaskTexture(mask);
local texture2 = UIParent:CreateTexture(nil, "ARTWORK");
texture2:SetTexture(parallel);
texture2:SetSize(256, 32);
texture2:SetPoint("LEFT", UIParent, "CENTER", 50, 0);
Is this an intended behavior of a mask object?
Thank you!