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:
Brues
2026-10-30 19:48:48 -05:00
parent 6469a557ff
commit f7680ded0b
25 changed files with 83 additions and 83 deletions
+4 -4
View File
@@ -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
+4 -4
View File
@@ -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)
+1 -1
View File
@@ -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
+2 -2
View File
@@ -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")
+4 -4
View File
@@ -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)
+2 -2
View File
@@ -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)
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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()
+5 -5
View File
@@ -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)
+3 -3
View File
@@ -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])
+3 -3
View File
@@ -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
+1 -1
View File
@@ -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
+3 -3
View File
@@ -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)
+10 -10
View File
@@ -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
+1 -1
View File
@@ -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)
+4 -4
View File
@@ -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
+1 -1
View File
@@ -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()
+9 -9
View File
@@ -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)
+1 -1
View File
@@ -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
+4 -4
View File
@@ -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))
+1 -1
View File
@@ -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()
+2 -2
View File
@@ -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)
+1 -1
View File
@@ -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"]
+1 -1
View File
@@ -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)
+14 -14
View File
@@ -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)