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:
Brues
2026-10-30 19:48:48 -05:00
parent 6469a557ff
commit f7680ded0b
25 changed files with 83 additions and 83 deletions
+3 -3
View File
@@ -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