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:
+4
-4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user