WoWInterface SVN mikma

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /Lowrider
    from Rev 200 to Rev 201
    Reverse comparison

Rev 200 → Rev 201

Lowrider.lua
1,8 → 1,8
if select(2,UnitClass("player")) == "DEATHKNIGHT" then
local f,a,r,g,b = CreateFrame("Frame",nil,UIParent),0.7
f:SetWidth(2000)
f:SetHeight(95)
f:SetPoint("BOTTOM",UIParent,"BOTTOM")
f:SetPoint("BOTTOMLEFT",UIParent,"BOTTOMLEFT")
f:SetPoint("BOTTOMRIGHT",UIParent,"BOTTOMRIGHT")
local t = f:CreateTexture()
t:SetAllPoints(f)
f:RegisterEvent("UPDATE_SHAPESHIFT_FORM")
10,10 → 10,9
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)