mirror of
https://github.com/brues-code/pfUI.git
synced 2026-11-01 00:16: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:
@@ -259,7 +259,7 @@ pfUI:RegisterModule("equipmentmanager", function()
|
||||
|
||||
row.highlight = row:CreateTexture(nil, "BACKGROUND")
|
||||
row.highlight:SetAllPoints(row)
|
||||
row.highlight:SetTexture(.3, .3, .3, .4)
|
||||
row.highlight:SetColorTexture(.3, .3, .3, .4)
|
||||
row.highlight:Hide()
|
||||
|
||||
row.gear = CreateFrame("Button", nil, row)
|
||||
@@ -1055,7 +1055,7 @@ pfUI:RegisterModule("equipmentmanager", function()
|
||||
o.dim = o:CreateTexture(nil, "OVERLAY")
|
||||
o.dim:SetPoint("TOPLEFT", f, "TOPLEFT", 1, -1)
|
||||
o.dim:SetPoint("BOTTOMRIGHT", f, "BOTTOMRIGHT", -1, 1)
|
||||
o.dim:SetTexture(0, 0, 0, .7)
|
||||
o.dim:SetColorTexture(0, 0, 0, .7)
|
||||
|
||||
o.glow = o:CreateTexture(nil, "OVERLAY")
|
||||
o.glow:SetTexture("Interface\\Buttons\\UI-ActionButton-Border")
|
||||
@@ -1597,7 +1597,7 @@ pfUI:RegisterModule("equipmentmanager", function()
|
||||
local function SetupTriggerRow(row)
|
||||
row.highlight = row:CreateTexture(nil, "BACKGROUND")
|
||||
row.highlight:SetAllPoints(row)
|
||||
row.highlight:SetTexture(.3, .3, .3, .4)
|
||||
row.highlight:SetColorTexture(.3, .3, .3, .4)
|
||||
row.highlight:Hide()
|
||||
|
||||
row.check = CreateCheckbox(row)
|
||||
|
||||
Reference in New Issue
Block a user