mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-31 16:06:57 +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:
+2
-2
@@ -16,14 +16,14 @@ pfUI:RegisterModule("afkcam", function ()
|
||||
overlay.top:SetPoint("TOPLEFT", overlay, "TOPLEFT")
|
||||
overlay.top:SetPoint("TOPRIGHT", overlay, "TOPRIGHT")
|
||||
overlay.top:SetHeight(100)
|
||||
overlay.top:SetTexture(1,1,1,1)
|
||||
overlay.top:SetColorTexture(1,1,1,1)
|
||||
overlay.top:SetGradientAlpha("VERTICAL", 0,0,0,0, 0,0,0,1)
|
||||
|
||||
overlay.bottom = overlay:CreateTexture("pfAFKGradientTop", "BACKGROUND")
|
||||
overlay.bottom:SetPoint("BOTTOMLEFT", overlay, "BOTTOMLEFT")
|
||||
overlay.bottom:SetPoint("BOTTOMRIGHT", overlay, "BOTTOMRIGHT")
|
||||
overlay.bottom:SetHeight(100)
|
||||
overlay.bottom:SetTexture(1,1,1,1)
|
||||
overlay.bottom:SetColorTexture(1,1,1,1)
|
||||
overlay.bottom:SetGradientAlpha("VERTICAL", 0,0,0,1, 0,0,0,0)
|
||||
|
||||
overlay:SetFrameStrata("DIALOG")
|
||||
|
||||
Reference in New Issue
Block a user