From b4d2a942dc4acd20d827684bf5c1c13b1d2d718f Mon Sep 17 00:00:00 2001 From: HonorGoG Date: Sun, 3 Mar 2024 18:22:49 -0800 Subject: [PATCH] - TitanRepair: Added new process for showing repair costs with better formatting. --- TitanRepair/TitanRepair.lua | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/TitanRepair/TitanRepair.lua b/TitanRepair/TitanRepair.lua index b3265e0..04ce15a 100644 --- a/TitanRepair/TitanRepair.lua +++ b/TitanRepair/TitanRepair.lua @@ -698,8 +698,7 @@ Realized the Disable also changes the button so the DeSat is redundent if TitanGetVar(TITAN_REPAIR_ID,"AutoRepairReport") then -- report repair cost to chat (optional) DEFAULT_CHAT_FRAME:AddMessage(_G["GREEN_FONT_COLOR_CODE"]..L["TITAN_REPAIR"]..": ".."|r" - ..L["TITAN_REPAIR_REPORT_COST_CHAT"]..GetTextGSC(cost).."|r" - .." "..FROM.." "..GUILD..".") + ..format(L["TITAN_REPAIR_REPORT_COST_CHAT_GUILD"], GetTextGSC(cost)).."\n") end -- disable repair all icon in merchant MerchantRepairAllButton:Disable(); @@ -725,8 +724,7 @@ Realized the Disable also changes the button so the DeSat is redundent -- report repair cost to chat (optional) if TitanGetVar(TITAN_REPAIR_ID,"AutoRepairReport") then DEFAULT_CHAT_FRAME:AddMessage(_G["GREEN_FONT_COLOR_CODE"]..L["TITAN_REPAIR"]..": ".."|r" - ..L["TITAN_REPAIR_REPORT_COST_CHAT"]..GetTextGSC(cost) - .." "..FROM.." "..YOU..".") + ..format(L["TITAN_REPAIR_REPORT_COST_CHAT_YOU"], GetTextGSC(cost)).."\n") end -- disable repair all icon in merchant MerchantRepairAllButton:Disable(); -- 1.7.9.5