- TitanRepair: Added new process for showing repair costs with better formatting.
HonorGoG [03-04-24 - 02:22]
- TitanRepair: Added new process for showing repair costs with better formatting.
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();