Route config color strings through GetStringColor cache

Replace raw strsplit(",", ...) color parsing across action bars, chat,
nameplates, third-party skins, player, and roll with the cached
GetStringColor / GetStringColorObject helpers, dropping the per-build
string-table allocations they created.
This commit is contained in:
Brues
2026-08-04 22:27:43 -05:00
parent 350b1d63ae
commit fe0ec82ede
8 changed files with 36 additions and 36 deletions
+1 -1
View File
@@ -948,7 +948,7 @@ nameplates:RegisterEvent("UNIT_SPELLCAST_CHANNEL_STOP")
-- Use the same castbar texture and color as the unit frame castbar (castbar.lua)
local cbtexture = pfUI.media[C.appearance.castbar.texture]
nameplate.castbar:SetStatusBarTexture(cbtexture or hptexture)
local cbr, cbg, cbb, cba = strsplit(",", C.appearance.castbar.castbarcolor)
local cbr, cbg, cbb, cba = GetStringColor(C.appearance.castbar.castbarcolor)
nameplate.castbar:SetStatusBarColor(cbr, cbg, cbb, cba)
-- reset endTime cache so color/texture refresh takes effect on next cast
nameplate.castbar.lastEndTime = nil