mirror of
https://github.com/brues-code/pfUI.git
synced 2026-11-01 16:36:56 +00:00
Fill textures with SetColorTexture instead of color-form SetTexture
ClassicAPI's SetColorTexture is the same engine call as SetTexture(r, g, b [, a]) under the name that says what it does. 83 calls across 25 files, renamed only.
This commit is contained in:
@@ -37,7 +37,7 @@ pfUI:RegisterModule("easteregg", function ()
|
||||
fireworks:Hide()
|
||||
|
||||
fireworks.night = fireworks:CreateTexture("LOW")
|
||||
fireworks.night:SetTexture(0,0,0,1)
|
||||
fireworks.night:SetColorTexture(0,0,0,1)
|
||||
fireworks.night:SetGradientAlpha("VERTICAL", 0,0,0,.5, 0,0,0,1)
|
||||
fireworks.night:SetAllPoints()
|
||||
|
||||
@@ -124,7 +124,7 @@ pfUI:RegisterModule("easteregg", function ()
|
||||
f:ClearAllPoints()
|
||||
f:SetPoint("CENTER", fireworks, "TOPLEFT", x, y)
|
||||
f:SetSize(25, 25)
|
||||
f.tex:SetTexture(1,1,1,.5)
|
||||
f.tex:SetColorTexture(1,1,1,.5)
|
||||
f:SetAlpha(1)
|
||||
f:Show()
|
||||
|
||||
@@ -134,7 +134,7 @@ pfUI:RegisterModule("easteregg", function ()
|
||||
f:ClearAllPoints()
|
||||
f:SetPoint("CENTER", fireworks, "TOPLEFT", x+(math.random(0,100)-50), y+(math.random(0,100)-50))
|
||||
f:SetSize(2, 2)
|
||||
f.tex:SetTexture(math.random(),math.random(),math.random(),1)
|
||||
f.tex:SetColorTexture(math.random(),math.random(),math.random(),1)
|
||||
f:SetAlpha(1)
|
||||
f:Show()
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user