disable sort debug
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -122,6 +122,11 @@ function Main:SetupSlashCommands()
|
||||
addon.DEBUG = not addon.DEBUG
|
||||
addon:Print("Debug mode: %s", addon.DEBUG and "ON" or "OFF")
|
||||
|
||||
elseif msg == "debugsort" then
|
||||
-- Toggle debug sort (verbose sorting output)
|
||||
addon.DEBUG_SORT = not addon.DEBUG_SORT
|
||||
addon:Print("Debug sort mode: %s", addon.DEBUG_SORT and "ON" or "OFF")
|
||||
|
||||
elseif msg == "quest" then
|
||||
-- Toggle quest bar
|
||||
local show = not addon.Modules.DB:GetSetting("showQuestBar")
|
||||
@@ -154,6 +159,7 @@ function Main:SetupSlashCommands()
|
||||
addon:Print("/guda sortbank - Sort bank")
|
||||
addon:Print("/guda track - Toggle item tracking")
|
||||
addon:Print("/guda debug - Toggle debug mode")
|
||||
addon:Print("/guda debugsort - Toggle sort debug output")
|
||||
addon:Print("/guda cleanup - Remove old characters")
|
||||
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user