Skip to content

Commit

Permalink
Update Vanilla gradient API to Retail/Wotlk
Browse files Browse the repository at this point in the history
Update Vanilla gradient API to Retail/Wotlk
  • Loading branch information
LabMember-001 committed Aug 23, 2023
1 parent 147632c commit cd07a7c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions ZPerl/ZPerl_Init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,7 @@ function XPerl_DoGradient(self, force)
end
if (self.gradient) then
local orient, r, g, b, a, r2, g2, b2, a2 = unpack(gradient)
if IsRetail or IsWrathClassicPTR then
self.gradient:SetGradient(orient, CreateColor(r, g, b, a), CreateColor(r2, g2, b2, a2))
else
self.gradient:SetGradientAlpha(orient, r, g, b, a, r2, g2, b2, a2)
end
self.gradient:SetGradient(orient, CreateColor(r, g, b, a), CreateColor(r2, g2, b2, a2))
self.gradient:Show()
end
return true
Expand Down

0 comments on commit cd07a7c

Please sign in to comment.