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:
@@ -564,10 +564,10 @@ function pfUI.combatlog.CreateConfig(log)
|
||||
if not row.text then
|
||||
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.hover = row:CreateTexture(nil, "BACKGROUND")
|
||||
row.hover:SetAllPoints(row)
|
||||
row.hover:SetTexture(1, 1, 1, .1)
|
||||
row.hover:SetColorTexture(1, 1, 1, .1)
|
||||
row.hover:Hide()
|
||||
row.text = row:CreateFontString(nil, "OVERLAY", "GameFontNormal")
|
||||
row.text:SetPoint("LEFT", row, "LEFT", 4, 0)
|
||||
@@ -879,7 +879,7 @@ function pfUI.combatlog.CreateConfig(log)
|
||||
local function UpdateColors()
|
||||
for _, swatch in ipairs(unitColors.swatches) do
|
||||
local color = selected.colors.unitColoring[swatch.flag]
|
||||
swatch.prev:SetTexture(color.r, color.g, color.b)
|
||||
swatch.prev:SetColorTexture(color.r, color.g, color.b)
|
||||
end
|
||||
for _, check in ipairs(highlightChecks) do
|
||||
SetCheck(check, selected.settings[check.setting])
|
||||
@@ -890,11 +890,11 @@ function pfUI.combatlog.CreateConfig(log)
|
||||
SetCheck(spellNames, s.abilityColoring)
|
||||
SetCheck(spellSchool, s.abilityColoring and s.abilitySchoolColoring)
|
||||
SetCheckEnabled(spellSchool, s.abilityColoring)
|
||||
spellSwatch.prev:SetTexture(selected.colors.defaults.spell.r, selected.colors.defaults.spell.g, selected.colors.defaults.spell.b)
|
||||
spellSwatch.prev:SetColorTexture(selected.colors.defaults.spell.r, selected.colors.defaults.spell.g, selected.colors.defaults.spell.b)
|
||||
SetCheck(damageNumber, s.amountColoring)
|
||||
SetCheck(damageSchool, s.amountSchoolColoring)
|
||||
SetCheckEnabled(damageSchool, s.amountColoring)
|
||||
damageSwatch.prev:SetTexture(selected.colors.defaults.damage.r, selected.colors.defaults.damage.g, selected.colors.defaults.damage.b)
|
||||
damageSwatch.prev:SetColorTexture(selected.colors.defaults.damage.r, selected.colors.defaults.damage.g, selected.colors.defaults.damage.b)
|
||||
SetCheck(schoolNames, s.schoolNameColoring)
|
||||
SetCheck(entireLine, s.lineColoring)
|
||||
SetCheck(bySource, s.lineColorPriority == 1)
|
||||
|
||||
Reference in New Issue
Block a user