From f7680ded0b879f203c7f5e4800cd9dd13a2608ad Mon Sep 17 00:00:00 2001 From: Brues <5278969+brues-code@users.noreply.github.com> Date: Fri, 30 Oct 2026 19:48:48 -0500 Subject: [PATCH] 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. --- api/ui-widgets.lua | 8 ++++---- api/unitframes.lua | 8 ++++---- modules/actionbar.lua | 2 +- modules/afkcam.lua | 4 ++-- modules/bags.lua | 8 ++++---- modules/castbar.lua | 4 ++-- modules/chat.lua | 2 +- modules/chatcopy.lua | 2 +- modules/combatlog_config.lua | 10 +++++----- modules/combopoints.lua | 6 +++--- modules/easteregg.lua | 6 +++--- modules/energytick.lua | 2 +- modules/equipmentmanager.lua | 6 +++--- modules/gui.lua | 20 ++++++++++---------- modules/hoverbind.lua | 2 +- modules/nameplates.lua | 8 ++++---- modules/share.lua | 2 +- modules/swingtimer.lua | 18 +++++++++--------- modules/thirdparty-vanilla.lua | 2 +- modules/unlock.lua | 8 ++++---- skins/blizzard/gossipquest.lua | 2 +- skins/blizzard/merchant.lua | 4 ++-- skins/blizzard/options-interface.lua | 2 +- skins/blizzard/questlog.lua | 2 +- skins/blizzard/trade.lua | 28 ++++++++++++++-------------- 25 files changed, 83 insertions(+), 83 deletions(-) diff --git a/api/ui-widgets.lua b/api/ui-widgets.lua index e2b5fe5b..674cd099 100644 --- a/api/ui-widgets.lua +++ b/api/ui-widgets.lua @@ -283,7 +283,7 @@ function pfUI.api.SkinButton(button, cr, cg, cb, icon, disableHighlight) b:SetDisabledTexture("") if b.SetCheckedTexture and b:GetCheckedTexture() then - b:GetCheckedTexture():SetTexture(cr, cg, cb, .25) + b:GetCheckedTexture():SetColorTexture(cr, cg, cb, .25) end if not disableHighlight then @@ -360,7 +360,7 @@ function pfUI.api.SkinRotateButton(button) button:GetNormalTexture():SetTexCoord(0.3, 0.29, 0.3, 0.65, 0.69, 0.29, 0.69, 0.65) button:GetPushedTexture():SetTexCoord(0.3, 0.29, 0.3, 0.65, 0.69, 0.29, 0.69, 0.65) - button:GetHighlightTexture():SetTexture(cr, cg, cb, .25) + button:GetHighlightTexture():SetColorTexture(cr, cg, cb, .25) button:GetPushedTexture():SetAllPoints(button:GetNormalTexture()) button:GetHighlightTexture():SetAllPoints(button:GetNormalTexture()) @@ -457,7 +457,7 @@ function pfUI.api.SkinScrollbar(frame, always) if not frame.thumb then thumb:SetTexture(nil) frame.thumb = frame.bg:CreateTexture(nil, "ARTWORK") - frame.thumb:SetTexture(.8,.8,.8,.8) + frame.thumb:SetColorTexture(.8,.8,.8,.8) frame.thumb:SetPoint("TOPLEFT", thumb, "TOPLEFT", 1, -4) frame.thumb:SetPoint("BOTTOMRIGHT", thumb, "BOTTOMRIGHT", -1, 4) end @@ -611,7 +611,7 @@ function pfUI.api.SkinSlider(frame) local thumb = frame:GetThumbTexture() CreateBackdrop(frame, nil, true) - thumb:SetTexture(1, .82, 0) + thumb:SetColorTexture(1, .82, 0) for i,region in ipairs({frame:GetRegions()}) do if region:GetObjectType() == 'FontString' then diff --git a/api/unitframes.lua b/api/unitframes.lua index 91ad2251..0f889159 100644 --- a/api/unitframes.lua +++ b/api/unitframes.lua @@ -1097,10 +1097,10 @@ function pfUI.uf.OnUpdate() this.lastCombatCheck = now + 0.2 if this.config and this.config.squareaggro == "1" and pfUI.api.UnitHasAggro(this.label .. this.id) > 0 then - this.combat.tex:SetTexture(1,.2,0) + this.combat.tex:SetColorTexture(1,.2,0) this.combat:Show() elseif this.config and this.config.squarecombat == "1" and UnitAffectingCombat(this.label .. this.id) then - this.combat.tex:SetTexture(1,1,.2) + this.combat.tex:SetColorTexture(1,1,.2) this.combat:Show() elseif this.combat then this.combat:Hide() @@ -1900,7 +1900,7 @@ function pfUI.uf:RefreshUnit(unit, component) indicator[debuff]:SetSize(size, size) indicator[debuff]:SetBackdrop(nil) elseif disptype == "3" then - indicator[debuff].tex:SetTexture(dispelColor:GetRGBA()) + indicator[debuff].tex:SetColorTexture(dispelColor:GetRGBA()) indicator[debuff].tex:SetVertexColor(1,1,1,1) indicator[debuff].tex:Show() indicator[debuff]:ClearAllPoints() @@ -1912,7 +1912,7 @@ function pfUI.uf:RefreshUnit(unit, component) indicator[debuff]:SetBackdrop(glow) indicator[debuff]:SetBackdropBorderColor(dispelColor:GetRGBA()) elseif disptype == "1" then - indicator[debuff].tex:SetTexture(dispelColor:GetRGBA()) + indicator[debuff].tex:SetColorTexture(dispelColor:GetRGBA()) indicator[debuff].tex:SetVertexColor(1,1,1,1) indicator[debuff].tex:Show() indicator[debuff]:SetAllPoints(unit.hp.bar) diff --git a/modules/actionbar.lua b/modules/actionbar.lua index 13089716..c7ced822 100644 --- a/modules/actionbar.lua +++ b/modules/actionbar.lua @@ -1151,7 +1151,7 @@ pfUI:RegisterModule("actionbar", function () -- equipped color if f.equipped then - f.equipped:SetTexture(GetStringColor(C.bars.eqcolor)) + f.equipped:SetColorTexture(GetStringColor(C.bars.eqcolor)) end -- general appearance diff --git a/modules/afkcam.lua b/modules/afkcam.lua index 7be1e50c..ab554962 100644 --- a/modules/afkcam.lua +++ b/modules/afkcam.lua @@ -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") diff --git a/modules/bags.lua b/modules/bags.lua index 9f4e7697..6457c167 100644 --- a/modules/bags.lua +++ b/modules/bags.lua @@ -434,10 +434,10 @@ pfUI:RegisterModule("bags", function () end local highlight = pfUI.bags[bag].slots[slot].frame:GetHighlightTexture() - highlight:SetTexture(.5, .5, .5, .5) + highlight:SetColorTexture(.5, .5, .5, .5) local pushed = pfUI.bags[bag].slots[slot].frame:GetPushedTexture() - pushed:SetTexture(.5, .5, .5, .5) + pushed:SetColorTexture(.5, .5, .5, .5) local questText = pfUI.bags[bag].slots[slot].frame.qtext questText:SetFont(pfUI.font_default, 13, "THICKOUTLINE") @@ -583,10 +583,10 @@ pfUI:RegisterModule("bags", function () border:SetTexture("") local highlight = frame.bagslots.slots[slot].frame:GetHighlightTexture() - highlight:SetTexture(.5, .5, .5, .5) + highlight:SetColorTexture(.5, .5, .5, .5) local pushed = frame.bagslots.slots[slot].frame:GetPushedTexture() - pushed:SetTexture(.5, .5, .5, .5) + pushed:SetColorTexture(.5, .5, .5, .5) if frame == pfUI.bag.left then frame.bagslots.slots[slot].frame:SetID(slot + 4) diff --git a/modules/castbar.lua b/modules/castbar.lua index c71b24b5..d60e29de 100644 --- a/modules/castbar.lua +++ b/modules/castbar.lua @@ -234,14 +234,14 @@ pfUI:RegisterModule("castbar", function () cb.bar.lag = cb.bar:CreateTexture(nil, "OVERLAY") cb.bar.lag:SetPoint("TOPRIGHT", cb.bar, "TOPRIGHT", 0, 0) cb.bar.lag:SetPoint("BOTTOMRIGHT", cb.bar, "BOTTOMRIGHT", 0, 0) - cb.bar.lag:SetTexture(1,.2,.2,.2) + cb.bar.lag:SetColorTexture(1,.2,.2,.2) -- Per-craft progress spark for tradeskill merge — a thin vertical line -- that crosses the bar once per craft in the chain (so on a 5-stack it -- moves 5x faster than the main fill). Position is updated by OnUpdate -- while a merge is active; hidden otherwise. cb.bar.spark = cb.bar:CreateTexture(nil, "OVERLAY") - cb.bar.spark:SetTexture(1, 1, 1, 0.8) + cb.bar.spark:SetColorTexture(1, 1, 1, 0.8) cb.bar.spark:SetWidth(2) cb.bar.spark:SetPoint("TOP", cb.bar, "TOPLEFT", 0, 0) cb.bar.spark:SetPoint("BOTTOM", cb.bar, "BOTTOMLEFT", 0, 0) diff --git a/modules/chat.lua b/modules/chat.lua index 39f898d1..db3fa1c5 100644 --- a/modules/chat.lua +++ b/modules/chat.lua @@ -457,7 +457,7 @@ pfUI:RegisterModule("chat", function () -- hide textures for j,v in ipairs({tab:GetRegions()}) do - if j==5 then v:SetTexture(0,0,0,0) end + if j==5 then v:SetColorTexture(0,0,0,0) end v:SetHeight(C.global.font_size+default_border*2) end diff --git a/modules/chatcopy.lua b/modules/chatcopy.lua index 71d0eae5..13de51f6 100644 --- a/modules/chatcopy.lua +++ b/modules/chatcopy.lua @@ -61,7 +61,7 @@ pfUI:RegisterModule("chatcopy", function () local scroll = CreateFrame("Frame", "pfChatCopy" .. i, frame, "pfUIScrollingEditBoxTemplate") scroll:SetAllPoints(frame) scroll.tex = scroll:CreateTexture(nil, "BACKGROUND") - scroll.tex:SetTexture(0,0,0,.95) + scroll.tex:SetColorTexture(0,0,0,.95) scroll.tex:SetPoint("TOPLEFT", -3, 3) scroll.tex:SetPoint("BOTTOMRIGHT", 3, -3) scroll:Hide() diff --git a/modules/combatlog_config.lua b/modules/combatlog_config.lua index 6b8fc82f..9822c27d 100644 --- a/modules/combatlog_config.lua +++ b/modules/combatlog_config.lua @@ -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) diff --git a/modules/combopoints.lua b/modules/combopoints.lua index 6b2c05cf..246007b0 100644 --- a/modules/combopoints.lua +++ b/modules/combopoints.lua @@ -27,11 +27,11 @@ pfUI:RegisterModule("combopoints", function () pfUI.combopoints[point].tex:SetAllPoints(pfUI.combopoints[point]) if point < 3 then - pfUI.combopoints[point].tex:SetTexture(1, .3, .3, .75) + pfUI.combopoints[point].tex:SetColorTexture(1, .3, .3, .75) elseif point < 4 then - pfUI.combopoints[point].tex:SetTexture(1, 1, .3, .75) + pfUI.combopoints[point].tex:SetColorTexture(1, 1, .3, .75) else - pfUI.combopoints[point].tex:SetTexture(.3, 1, .3, .75) + pfUI.combopoints[point].tex:SetColorTexture(.3, 1, .3, .75) end UpdateMovable(pfUI.combopoints[point]) diff --git a/modules/easteregg.lua b/modules/easteregg.lua index f605008d..a983f340 100644 --- a/modules/easteregg.lua +++ b/modules/easteregg.lua @@ -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 diff --git a/modules/energytick.lua b/modules/energytick.lua index c088ad7a..8e8d074e 100644 --- a/modules/energytick.lua +++ b/modules/energytick.lua @@ -260,7 +260,7 @@ pfUI:RegisterModule("energytick", function() if fsrOverlay then -- classic style: a translucent shade on top of the power bar's own fill energytick.fsrbar = energytick:CreateTexture(nil, "ARTWORK") - energytick.fsrbar:SetTexture(1, 1, 1, .15) + energytick.fsrbar:SetColorTexture(1, 1, 1, .15) energytick.fsrbar:SetPoint("TOPLEFT", 0, 0) energytick.fsrbar:SetPoint("BOTTOMLEFT", 0, 0) else diff --git a/modules/equipmentmanager.lua b/modules/equipmentmanager.lua index 2bd6aa83..bb5baf85 100644 --- a/modules/equipmentmanager.lua +++ b/modules/equipmentmanager.lua @@ -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) diff --git a/modules/gui.lua b/modules/gui.lua index c251b126..ab2693ff 100644 --- a/modules/gui.lua +++ b/modules/gui.lua @@ -109,7 +109,7 @@ pfUI:RegisterModule("gui", function () frame:SetScript("OnEnter", EntryOnEnter) frame:SetScript("OnLeave", EntryOnLeave) frame.tex = frame:CreateTexture(nil, "BACKGROUND") - frame.tex:SetTexture(1,1,1,.05) + frame.tex:SetColorTexture(1,1,1,.05) frame.tex:SetAllPoints() frame.tex:Hide() end @@ -181,7 +181,7 @@ pfUI:RegisterModule("gui", function () if not cr or not cg or not cb or not ca then cr, cg, cb, ca = 1, 1, 1, 1 end - frame.color.prev:SetTexture(cr,cg,cb,ca) + frame.color.prev:SetColorTexture(cr,cg,cb,ca) frame.color:SetScript("OnClick", function() local cr, cg, cb, ca = strsplit(",", category[config]) @@ -199,7 +199,7 @@ pfUI:RegisterModule("gui", function () b = round(b, 3) a = round(a, 3) - preview:SetTexture(r,g,b,a) + preview:SetColorTexture(r,g,b,a) if not this:GetParent():IsShown() then category[config] = r .. "," .. g .. "," .. b .. "," .. a @@ -209,7 +209,7 @@ pfUI:RegisterModule("gui", function () end function ColorPickerFrame.cancelFunc() - preview:SetTexture(cr,cg,cb,ca) + preview:SetColorTexture(cr,cg,cb,ca) end ColorPickerFrame.opacityFunc = ColorPickerFrame.func @@ -490,19 +490,19 @@ pfUI:RegisterModule("gui", function () f.button = parent[title] f.bg = f:CreateTexture(nil, "BACKGROUND") - f.bg:SetTexture(1,1,1,.05) + f.bg:SetColorTexture(1,1,1,.05) f.bg:SetAllPoints() f:SetScript("OnShow", function() this.indexed = true this.button.text:SetTextColor(.2,1,.8,1) - this.button.bg:SetTexture(1,1,1,1) + this.button.bg:SetColorTexture(1,1,1,1) this.button.bg:SetGradientAlpha("HORIZONTAL", 0,0,0,0, 1,1,1,.05) end) f:SetScript("OnHide", function() this.button.text:SetTextColor(1,1,1,1) - this.button.bg:SetTexture(0,0,0,0) + this.button.bg:SetColorTexture(0,0,0,0) end) -- are we a frame with contents? @@ -706,7 +706,7 @@ pfUI:RegisterModule("gui", function () if not highlighted.highlight then highlighted.highlight = highlighted:CreateTexture(nil, "OVERLAY") highlighted.highlight:SetAllPoints() - highlighted.highlight:SetTexture(.2,1,.8,.2) + highlighted.highlight:SetColorTexture(.2,1,.8,.2) end highlighted.highlight:Show() end @@ -726,7 +726,7 @@ pfUI:RegisterModule("gui", function () f.text:SetTextColor(.5,.5,.5) f.tex = f:CreateTexture(nil, "BACKGROUND") - f.tex:SetTexture(1,1,1,.05) + f.tex:SetColorTexture(1,1,1,.05) f.tex:SetAllPoints() f.tex:Hide() end @@ -1285,7 +1285,7 @@ pfUI:RegisterModule("gui", function () -- draw pfUI logo local function draw(p, fx, fy, tx, ty, r, g, b, a) local t = p:CreateTexture(nil, "OVERLAY") - t:SetTexture(r,g,b,a) + t:SetColorTexture(r,g,b,a) t:SetPoint("TOPLEFT", fx, fy) t:SetPoint("BOTTOMRIGHT", p, "TOPLEFT", tx, ty) end diff --git a/modules/hoverbind.lua b/modules/hoverbind.lua index 5310b0b4..9e6b7771 100644 --- a/modules/hoverbind.lua +++ b/modules/hoverbind.lua @@ -51,7 +51,7 @@ pfUI:RegisterModule("hoverbind", function () pfUI.hoverbind.edit:SetAllPoints(UIParent) pfUI.hoverbind.edit.tex = pfUI.hoverbind.edit:CreateTexture("pfKeyBindShade", "BACKGROUND") pfUI.hoverbind.edit.tex:SetAllPoints(pfUI.hoverbind.edit) - pfUI.hoverbind.edit.tex:SetTexture(0,0,0,.5) + pfUI.hoverbind.edit.tex:SetColorTexture(0,0,0,.5) pfUI.hoverbind.edit:SetScript("OnClick", function() pfUI.hoverbind:Hide() end) diff --git a/modules/nameplates.lua b/modules/nameplates.lua index 92039848..fd592210 100644 --- a/modules/nameplates.lua +++ b/modules/nameplates.lua @@ -429,7 +429,7 @@ pfUI:RegisterModule("nameplates", function () plate.debuffs[index]:SetFrameLevel(4) plate.debuffs[index].icon = plate.debuffs[index]:CreateTexture(nil, "BACKGROUND") - plate.debuffs[index].icon:SetTexture(.3,1,.8,1) + plate.debuffs[index].icon:SetColorTexture(.3,1,.8,1) plate.debuffs[index].icon:SetAllPoints(plate.debuffs[index]) plate.debuffs[index].stacks = plate.debuffs[index]:CreateFontString(nil, "OVERLAY") @@ -866,11 +866,11 @@ nameplates:RegisterUnitEvent("UNIT_SPELLCAST_NOT_INTERRUPTIBLE", "target", "focu combopoints[i].tex:SetAllPoints() if i < 3 then - combopoints[i].tex:SetTexture(1, .3, .3, .75) + combopoints[i].tex:SetColorTexture(1, .3, .3, .75) elseif i < 4 then - combopoints[i].tex:SetTexture(1, 1, .3, .75) + combopoints[i].tex:SetColorTexture(1, 1, .3, .75) else - combopoints[i].tex:SetTexture(.3, 1, .3, .75) + combopoints[i].tex:SetColorTexture(.3, 1, .3, .75) end end nameplate.combopoints = combopoints diff --git a/modules/share.lua b/modules/share.lua index f2c42494..7602ce3d 100644 --- a/modules/share.lua +++ b/modules/share.lua @@ -218,7 +218,7 @@ pfUI:RegisterModule("share", function () pfUI.api.CreateBackdrop(f.scroll.backdrop, nil, true) f.scroll.backdrop.tint = f.scroll.backdrop:CreateTexture(nil, "ARTWORK") f.scroll.backdrop.tint:SetAllPoints(f.scroll) - f.scroll.backdrop.tint:SetTexture(1,1,1,.05) + f.scroll.backdrop.tint:SetColorTexture(1,1,1,.05) f.scroll:RegisterCallback("OnTextChanged", function() local text = f.scroll:GetText() diff --git a/modules/swingtimer.lua b/modules/swingtimer.lua index 93b44cb8..734dbc75 100644 --- a/modules/swingtimer.lua +++ b/modules/swingtimer.lua @@ -108,14 +108,14 @@ pfUI:RegisterModule("swingtimer", function () pfUI.swingtimer.mainhand.marker = pfUI.swingtimer.mainhand:CreateTexture(nil, "OVERLAY") - pfUI.swingtimer.mainhand.marker:SetTexture(1, 1, 1, 1.0) + pfUI.swingtimer.mainhand.marker:SetColorTexture(1, 1, 1, 1.0) pfUI.swingtimer.mainhand.marker:SetWidth(2) pfUI.swingtimer.mainhand.marker:SetHeight(sw_height) pfUI.swingtimer.mainhand.marker:Hide() -- Left glow: fades from transparent to white (right edge = marker) pfUI.swingtimer.mainhand.markerGlowL = pfUI.swingtimer.mainhand:CreateTexture(nil, "OVERLAY") - pfUI.swingtimer.mainhand.markerGlowL:SetTexture(1, 1, 1, 1) + pfUI.swingtimer.mainhand.markerGlowL:SetColorTexture(1, 1, 1, 1) pfUI.swingtimer.mainhand.markerGlowL:SetGradientAlpha("HORIZONTAL", 1, 1, 1, 0, 1, 1, 1, 0.35) pfUI.swingtimer.mainhand.markerGlowL:SetWidth(10) pfUI.swingtimer.mainhand.markerGlowL:SetHeight(sw_height) @@ -123,7 +123,7 @@ pfUI:RegisterModule("swingtimer", function () -- Right glow: fades from white to transparent (left edge = marker) pfUI.swingtimer.mainhand.markerGlowR = pfUI.swingtimer.mainhand:CreateTexture(nil, "OVERLAY") - pfUI.swingtimer.mainhand.markerGlowR:SetTexture(1, 1, 1, 1) + pfUI.swingtimer.mainhand.markerGlowR:SetColorTexture(1, 1, 1, 1) pfUI.swingtimer.mainhand.markerGlowR:SetGradientAlpha("HORIZONTAL", 1, 1, 1, 0.35, 1, 1, 1, 0) pfUI.swingtimer.mainhand.markerGlowR:SetWidth(10) pfUI.swingtimer.mainhand.markerGlowR:SetHeight(sw_height) @@ -166,14 +166,14 @@ pfUI:RegisterModule("swingtimer", function () pfUI.swingtimer.offhand.marker = pfUI.swingtimer.offhand:CreateTexture(nil, "OVERLAY") - pfUI.swingtimer.offhand.marker:SetTexture(1, 1, 1, 1.0) + pfUI.swingtimer.offhand.marker:SetColorTexture(1, 1, 1, 1.0) pfUI.swingtimer.offhand.marker:SetWidth(2) pfUI.swingtimer.offhand.marker:SetHeight(sw_height) pfUI.swingtimer.offhand.marker:Hide() -- Left glow: fades from transparent to white (right edge = marker) pfUI.swingtimer.offhand.markerGlowL = pfUI.swingtimer.offhand:CreateTexture(nil, "OVERLAY") - pfUI.swingtimer.offhand.markerGlowL:SetTexture(1, 1, 1, 1) + pfUI.swingtimer.offhand.markerGlowL:SetColorTexture(1, 1, 1, 1) pfUI.swingtimer.offhand.markerGlowL:SetGradientAlpha("HORIZONTAL", 1, 1, 1, 0, 1, 1, 1, 0.35) pfUI.swingtimer.offhand.markerGlowL:SetWidth(10) pfUI.swingtimer.offhand.markerGlowL:SetHeight(sw_height) @@ -181,7 +181,7 @@ pfUI:RegisterModule("swingtimer", function () -- Right glow: fades from white to transparent (left edge = marker) pfUI.swingtimer.offhand.markerGlowR = pfUI.swingtimer.offhand:CreateTexture(nil, "OVERLAY") - pfUI.swingtimer.offhand.markerGlowR:SetTexture(1, 1, 1, 1) + pfUI.swingtimer.offhand.markerGlowR:SetColorTexture(1, 1, 1, 1) pfUI.swingtimer.offhand.markerGlowR:SetGradientAlpha("HORIZONTAL", 1, 1, 1, 0.35, 1, 1, 1, 0) pfUI.swingtimer.offhand.markerGlowR:SetWidth(10) pfUI.swingtimer.offhand.markerGlowR:SetHeight(sw_height) @@ -227,14 +227,14 @@ pfUI:RegisterModule("swingtimer", function () pfUI.swingtimer.ranged.marker = pfUI.swingtimer.ranged:CreateTexture(nil, "OVERLAY") - pfUI.swingtimer.ranged.marker:SetTexture(1, 1, 1, 1.0) + pfUI.swingtimer.ranged.marker:SetColorTexture(1, 1, 1, 1.0) pfUI.swingtimer.ranged.marker:SetWidth(2) pfUI.swingtimer.ranged.marker:SetHeight(sw_height) pfUI.swingtimer.ranged.marker:Hide() -- Left glow: fades from transparent to white (right edge = marker) pfUI.swingtimer.ranged.markerGlowL = pfUI.swingtimer.ranged:CreateTexture(nil, "OVERLAY") - pfUI.swingtimer.ranged.markerGlowL:SetTexture(1, 1, 1, 1) + pfUI.swingtimer.ranged.markerGlowL:SetColorTexture(1, 1, 1, 1) pfUI.swingtimer.ranged.markerGlowL:SetGradientAlpha("HORIZONTAL", 1, 1, 1, 0, 1, 1, 1, 0.35) pfUI.swingtimer.ranged.markerGlowL:SetWidth(10) pfUI.swingtimer.ranged.markerGlowL:SetHeight(sw_height) @@ -242,7 +242,7 @@ pfUI:RegisterModule("swingtimer", function () -- Right glow: fades from white to transparent (left edge = marker) pfUI.swingtimer.ranged.markerGlowR = pfUI.swingtimer.ranged:CreateTexture(nil, "OVERLAY") - pfUI.swingtimer.ranged.markerGlowR:SetTexture(1, 1, 1, 1) + pfUI.swingtimer.ranged.markerGlowR:SetColorTexture(1, 1, 1, 1) pfUI.swingtimer.ranged.markerGlowR:SetGradientAlpha("HORIZONTAL", 1, 1, 1, 0.35, 1, 1, 1, 0) pfUI.swingtimer.ranged.markerGlowR:SetWidth(10) pfUI.swingtimer.ranged.markerGlowR:SetHeight(sw_height) diff --git a/modules/thirdparty-vanilla.lua b/modules/thirdparty-vanilla.lua index 710c7698..787d4033 100644 --- a/modules/thirdparty-vanilla.lua +++ b/modules/thirdparty-vanilla.lua @@ -122,7 +122,7 @@ pfUI:RegisterModule("thirdparty-vanilla", function() -- remove red background on some buttons for i,v in ipairs({b:GetRegions()}) do if v.SetTexture and i == 1 then - v:SetTexture(0,0,0,0) + v:SetColorTexture(0,0,0,0) end end diff --git a/modules/unlock.lua b/modules/unlock.lua index f89f9b80..cef0baf4 100644 --- a/modules/unlock.lua +++ b/modules/unlock.lua @@ -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)) diff --git a/skins/blizzard/gossipquest.lua b/skins/blizzard/gossipquest.lua index 98be46c9..0a82ab70 100644 --- a/skins/blizzard/gossipquest.lua +++ b/skins/blizzard/gossipquest.lua @@ -21,7 +21,7 @@ pfUI:RegisterSkin("Gossip and Quest", function () StripTextures(QuestRewardItemHighlight) local QuestRewardItemHighlight = CreateFrame("Frame", nil, QuestRewardScrollChildFrame) local QuestRewardItemHighlightBG = QuestRewardItemHighlight:CreateTexture(nil, "OVERLAY") - QuestRewardItemHighlightBG:SetTexture(1,1,1,.2) + QuestRewardItemHighlightBG:SetColorTexture(1,1,1,.2) QuestRewardItemHighlightBG:SetAllPoints() hooksecurefunc("QuestFrameItems_Update", function() diff --git a/skins/blizzard/merchant.lua b/skins/blizzard/merchant.lua index eed86a3f..9942de00 100644 --- a/skins/blizzard/merchant.lua +++ b/skins/blizzard/merchant.lua @@ -44,7 +44,7 @@ pfUI:RegisterSkin("Merchant", function () merchantButton:SetHeight(37) local bg = merchantButton:CreateTexture(nil, "LOW") - bg:SetTexture(1,1,1,.05) + bg:SetColorTexture(1,1,1,.05) bg:SetAllPoints() local itemButton = _G["MerchantItem"..i.."ItemButton"] @@ -72,7 +72,7 @@ pfUI:RegisterSkin("Merchant", function () StripTextures(MerchantBuyBackItem) local bg = MerchantBuyBackItem:CreateTexture(nil, "LOW") - bg:SetTexture(1,1,1,.05) + bg:SetColorTexture(1,1,1,.05) bg:SetAllPoints() StripTextures(MerchantBuyBackItemItemButton) diff --git a/skins/blizzard/options-interface.lua b/skins/blizzard/options-interface.lua index 7b431578..8aae3a8c 100644 --- a/skins/blizzard/options-interface.lua +++ b/skins/blizzard/options-interface.lua @@ -16,7 +16,7 @@ pfUI:RegisterSkin("Options - Interface", function () SkinScrollbar(InterfaceOptionsFrameAddOnsListScrollBar) for _, button in ipairs(InterfaceOptionsFrameAddOns.buttons) do - button:GetHighlightTexture():SetTexture(cr, cg, cb, .25) + button:GetHighlightTexture():SetColorTexture(cr, cg, cb, .25) -- the list update swaps plus/minus textures on the toggle by path local toggle = _G[button:GetName() .. "Toggle"] diff --git a/skins/blizzard/questlog.lua b/skins/blizzard/questlog.lua index dc5828af..ae32ee89 100644 --- a/skins/blizzard/questlog.lua +++ b/skins/blizzard/questlog.lua @@ -53,7 +53,7 @@ pfUI:RegisterSkin("Quest Log", function () QuestLogTrack:SetPoint("RIGHT", QuestLogQuestCount, "LEFT", -5, 0) StripTextures(QuestLogTrack) - QuestLogTrackTracking:SetTexture(.8,.8,.8,1) + QuestLogTrackTracking:SetColorTexture(.8,.8,.8,1) QuestLogTrackTitle:Hide() SkinButton(QuestLogFrameAbandonButton) diff --git a/skins/blizzard/trade.lua b/skins/blizzard/trade.lua index 7fdbc8d7..2c8108b0 100644 --- a/skins/blizzard/trade.lua +++ b/skins/blizzard/trade.lua @@ -30,14 +30,14 @@ pfUI:RegisterSkin("Trade", function () StripTextures(PlayerItemButton) SkinButton(PlayerItemButton, nil, nil, nil, _G[PlayerItemButton:GetName()..'IconTexture']) local PlayerItemButtonBG = PlayerButton:CreateTexture(nil, "LOW") - PlayerItemButtonBG:SetTexture(1,1,1,.05) + PlayerItemButtonBG:SetColorTexture(1,1,1,.05) PlayerItemButtonBG:SetAllPoints() StripTextures(RecipientButton) StripTextures(RecipientItemButton) SkinButton(RecipientItemButton, nil, nil, nil, _G[RecipientItemButton:GetName()..'IconTexture']) local RecipientButtonBG = RecipientButton:CreateTexture(nil, "LOW") - RecipientButtonBG:SetTexture(1,1,1,.05) + RecipientButtonBG:SetColorTexture(1,1,1,.05) RecipientButtonBG:SetAllPoints() end @@ -55,23 +55,23 @@ pfUI:RegisterSkin("Trade", function () TradeFrameTradeButton:SetPoint("RIGHT", TradeFrameCancelButton, "LEFT", -2*bpad, 0) -- skin highlights - TradeHighlightPlayerTop:SetTexture(0, 0, 0, 0) - TradeHighlightPlayerMiddle:SetTexture(0, 0, 0, 0) - TradeHighlightPlayerBottom:SetTexture(0, 1, 0, 0.2) + TradeHighlightPlayerTop:SetColorTexture(0, 0, 0, 0) + TradeHighlightPlayerMiddle:SetColorTexture(0, 0, 0, 0) + TradeHighlightPlayerBottom:SetColorTexture(0, 1, 0, 0.2) TradeHighlightPlayerBottom:SetPoint("TOPLEFT", 2, 0) - TradeHighlightPlayerEnchantTop:SetTexture(0, 0, 0, 0) - TradeHighlightPlayerEnchantMiddle:SetTexture(0, 0, 0, 0) - TradeHighlightPlayerEnchantBottom:SetTexture(0, 1, 0, 0.2) + TradeHighlightPlayerEnchantTop:SetColorTexture(0, 0, 0, 0) + TradeHighlightPlayerEnchantMiddle:SetColorTexture(0, 0, 0, 0) + TradeHighlightPlayerEnchantBottom:SetColorTexture(0, 1, 0, 0.2) TradeHighlightPlayerEnchantBottom:SetPoint("TOPLEFT", 2, 0) - TradeHighlightRecipientTop:SetTexture(0, 0, 0, 0) - TradeHighlightRecipientMiddle:SetTexture(0, 0, 0, 0) - TradeHighlightRecipientBottom:SetTexture(0, 1, 0, 0.2) + TradeHighlightRecipientTop:SetColorTexture(0, 0, 0, 0) + TradeHighlightRecipientMiddle:SetColorTexture(0, 0, 0, 0) + TradeHighlightRecipientBottom:SetColorTexture(0, 1, 0, 0.2) TradeHighlightRecipientBottom:SetPoint("TOPLEFT", 2, 0) - TradeHighlightRecipientEnchantTop:SetTexture(0, 0, 0, 0) - TradeHighlightRecipientEnchantMiddle:SetTexture(0, 0, 0, 0) - TradeHighlightRecipientEnchantBottom:SetTexture(0, 1, 0, 0.2) + TradeHighlightRecipientEnchantTop:SetColorTexture(0, 0, 0, 0) + TradeHighlightRecipientEnchantMiddle:SetColorTexture(0, 0, 0, 0) + TradeHighlightRecipientEnchantBottom:SetColorTexture(0, 1, 0, 0.2) TradeHighlightRecipientEnchantBottom:SetPoint("TOPLEFT", 2, 0) end)