From 8cdaf1fc009ea671e02748cf1e3caa182d69e3c3 Mon Sep 17 00:00:00 2001 From: Brues <5278969+brues-code@users.noreply.github.com> Date: Tue, 18 Aug 2026 04:38:09 -0500 Subject: [PATCH] Prefer GetCoinTextureString in CreateGoldString If the global GetCoinTextureString exists, use it to format money (wrapped in white color codes) for CreateGoldString. Keeps the existing numeric fallback formatting for environments without GetCoinTextureString. --- api/api.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api/api.lua b/api/api.lua index 94dfb260..3c740f17 100644 --- a/api/api.lua +++ b/api/api.lua @@ -671,6 +671,10 @@ end function pfUI.api.CreateGoldString(money) if type(money) ~= "number" then return "-" end + if _G.GetCoinTextureString then + return "|cffffffff" .. _G.GetCoinTextureString(money) .. "|r" + end + local gold = floor(money/ 100 / 100) local silver = floor(mod((money/100),100)) local copper = floor(mod(money,100))