mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-21 23:26:56 +00:00
Use GetStringColor for newitem glow color
Replace CreateColor/Color:GetRGBA usage with pfUI.api.GetStringColor in modules/newitem.lua
This commit is contained in:
+2
-2
@@ -4,7 +4,7 @@ pfUI:RegisterModule("newitem", function ()
|
||||
|
||||
pfUI.newitem = {}
|
||||
|
||||
local color = CreateColor(strsplit(",", C.appearance.bags.newitem_color))
|
||||
local r, g, b, a = pfUI.api.GetStringColor(C.appearance.bags.newitem_color)
|
||||
|
||||
function pfUI.newitem:UpdateSlot(bag, slot)
|
||||
if bag < 0 or bag > 4 then return end
|
||||
@@ -18,7 +18,7 @@ pfUI:RegisterModule("newitem", function ()
|
||||
local glow = frame:CreateTexture(nil, "OVERLAY")
|
||||
glow:SetTexture("Interface\\Buttons\\UI-ActionButton-Border")
|
||||
glow:SetBlendMode("ADD")
|
||||
glow:SetVertexColor(color:GetRGBA())
|
||||
glow:SetVertexColor(r, g, b, a)
|
||||
glow:SetPoint("CENTER", frame, "CENTER")
|
||||
glow:Hide()
|
||||
glow.RefreshSize = function(g)
|
||||
|
||||
Reference in New Issue
Block a user