from retail

This commit is contained in:
NoM0Re
2025-01-28 10:36:41 +01:00
parent d3a9fb094c
commit 8cc8d5ea62
4 changed files with 72 additions and 11 deletions
+5 -3
View File
@@ -186,7 +186,7 @@ local function modify(parent, region, data)
containsCustomText = true
end
local formatters
local formatters, everyFrameFormatters
do
local getter = function(key, default)
local fullKey = "displayText_format_" .. key
@@ -218,7 +218,7 @@ local function modify(parent, region, data)
end
end
formatters = Private.CreateFormatters(texts, getter, false, data)
formatters, everyFrameFormatters = Private.CreateFormatters(texts, getter, false, data)
end
local customTextFunc = nil
@@ -251,7 +251,9 @@ local function modify(parent, region, data)
end
local FrameTick
if Private.ContainsPlaceHolders(self.displayText, "p") then
if Private.ContainsPlaceHolders(self.displayText, "p")
or Private.AnyEveryFrameFormatters(self.displayText, everyFrameFormatters)
then
FrameTick = UpdateText
end