I wonder if me and SetTexCoord() could be friends one day

This commit is contained in:
iceroth
2006-08-07 13:15:46 +00:00
parent 2f51443091
commit 259ff592a0

View File

@ -179,8 +179,11 @@ function PlayerMana.prototype:EnergyTick()
local pos = elapsed / 2
local y = pos * (self.settings.barHeight)
if (self.moduleSettings.side == IceCore.Side.Left) then
self.tickerFrame.spark:SetTexCoord(1, 0, 1-pos-0.01, 1-pos)
else
self.tickerFrame.spark:SetTexCoord(0, 1, 1-pos-0.01, 1-pos)
end
self.tickerFrame:SetPoint("BOTTOMLEFT", self.frame, "BOTTOMLEFT", 0, y)
end