disable sort debug

This commit is contained in:
Salikh Gurgenidze
2026-01-22 03:11:10 +04:00
parent 89ef1b79fb
commit 673910cf77
3 changed files with 25 additions and 8 deletions
+11
View File
@@ -12,6 +12,9 @@ addon.BUILD = "TurtleWoW-1.12.1"
-- Debug flag
addon.DEBUG = false
-- Debug sort flag (verbose sorting output)
addon.DEBUG_SORT = false
-- Constants
addon.Constants = {
-- Bag IDs
@@ -232,6 +235,14 @@ function addon:Debug(msg, a1, a2, a3, a4, a5, a6, a7)
end
end
-- Debug sort print (only shows when DEBUG_SORT is enabled)
function addon:DebugSort(msg, a1, a2, a3, a4, a5, a6, a7)
if self.DEBUG_SORT then
local text = string.format(msg, a1, a2, a3, a4, a5, a6, a7)
DEFAULT_CHAT_FRAME:AddMessage("|cFF87CEEB[Sort]|r |cFF00FF96Guda:|r " .. text)
end
end
-- Error handler
function addon:Error(msg, a1, a2, a3, a4, a5, a6, a7)
local text = string.format(msg, a1, a2, a3, a4, a5, a6, a7)