f:RegisterEvent("PLAYER_ENTERING_WORLD") |
f:SetScript("OnEvent",function(self,event) |
if event == "PLAYER_ENTERING_WORLD" then f:UnregisterEvent("PLAYER_ENTERING_WORLD") end |
local g = GetShapeshiftForm() |
if g == 1 then r,g,b = 1, 0.3, 0.3 |
elseif g == 2 then r,g,b = 0.3, 0.3, 1 |
elseif g == 3 then r,g,b = 0.3, 1, 0.3 |
if GetShapeshiftForm() == 1 then r,g,b = 1, 0.3, 0.3 |
elseif GetShapeshiftForm() == 2 then r,g,b = 0.3, 0.3, 1 |
elseif GetShapeshiftForm() == 3 then r,g,b = 0.3, 1, 0.3 |
end |
t:SetTexture(r,g,b,a) |
t:SetGradientAlpha('VERTICAL',r,g,b,a, 0,0,0,0) |