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