Quantcast WoWInterface - View Single Post - Needs Graphics Help regarding frame level and layers.
View Single Post
02-27-16, 06:27 PM   #11
Layback_
An Onyxian Warder
Join Date: Feb 2016
Posts: 356
Originally Posted by Fizzlemizz View Post
Code:
local f = CreateFrame("Statusbar")
f:SetSize(50, 50)
f:SetPoint("CENTER")
f:SetStatusBarTexture("Interface\\Buttons\\Button-Backpack-Up")
--f:GetStatusBarTexture():SetTexCoord(0, 1, 1, 0)
Start the game with the above code then un-comment the TexCoord line and /reloadui and the bag will be upside down.

Actually, looking at your setup you might want the x-axis flip from > to < rather than Y-axis which is from ^ to v. X-axis flip will make images "face" each other when placed side by side.
Yep... was X-axis flip not Y-axis flip haha...

And more about STATUSBAR, it is actually a media that is fetched from LibSharedMedia (LSM).

Lua Code:
  1. local STATUSBAR = LSM:Fetch("statusbar", "fer33");

So, instead of using this variable, I have set statusbar's texture with direct path like you just did, and SetTexCoord() worked on this.

Thus, I'm guessing that SetTexCoord() is not compatible with a media that is fetched from LSM.
  Reply With Quote