mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-31 07:56: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:
+4
-4
@@ -168,10 +168,10 @@ pfUI:RegisterModule("unlock", function ()
|
||||
for i = 0, 128 do
|
||||
if i == 128 / 2 then
|
||||
line = grid:CreateTexture(nil, 'BORDER')
|
||||
line:SetTexture(.1, .5, .4)
|
||||
line:SetColorTexture(.1, .5, .4)
|
||||
else
|
||||
line = grid:CreateTexture(nil, 'BACKGROUND')
|
||||
line:SetTexture(0, 0, 0, .5)
|
||||
line:SetColorTexture(0, 0, 0, .5)
|
||||
end
|
||||
line:SetPoint("TOPLEFT", grid, "TOPLEFT", i*wStep - (size/2), 0)
|
||||
line:SetPoint('BOTTOMRIGHT', grid, 'BOTTOMLEFT', i*wStep + (size/2), 0)
|
||||
@@ -181,10 +181,10 @@ pfUI:RegisterModule("unlock", function ()
|
||||
for i = 1, floor(height/hStep) do
|
||||
if i == floor(height/hStep / 2) then
|
||||
line = grid:CreateTexture(nil, 'BORDER')
|
||||
line:SetTexture(.1, .5, .4)
|
||||
line:SetColorTexture(.1, .5, .4)
|
||||
else
|
||||
line = grid:CreateTexture(nil, 'BACKGROUND')
|
||||
line:SetTexture(0, 0, 0)
|
||||
line:SetColorTexture(0, 0, 0)
|
||||
end
|
||||
|
||||
line:SetPoint("TOPLEFT", grid, "TOPLEFT", 0, -(i*hStep) + (size/2))
|
||||
|
||||
Reference in New Issue
Block a user