category view spacing bug fixed
This commit is contained in:
@@ -15,6 +15,9 @@ addon.DEBUG = false
|
||||
-- Debug sort flag (verbose sorting output)
|
||||
addon.DEBUG_SORT = false
|
||||
|
||||
-- Debug category view flag (for troubleshooting category view layout issues)
|
||||
addon.DEBUG_CATEGORY = false
|
||||
|
||||
-- Constants
|
||||
addon.Constants = {
|
||||
-- Bag IDs
|
||||
@@ -243,6 +246,14 @@ function addon:DebugSort(msg, a1, a2, a3, a4, a5, a6, a7)
|
||||
end
|
||||
end
|
||||
|
||||
-- Debug category view print (only shows when DEBUG_CATEGORY is enabled)
|
||||
function addon:DebugCategory(msg, a1, a2, a3, a4, a5, a6, a7)
|
||||
if self.DEBUG_CATEGORY then
|
||||
local text = string.format(msg or "nil", a1 or "", a2 or "", a3 or "", a4 or "", a5 or "", a6 or "", a7 or "")
|
||||
DEFAULT_CHAT_FRAME:AddMessage("|cFFFF69B4[Category]|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)
|
||||
|
||||
@@ -132,6 +132,11 @@ function Main:SetupSlashCommands()
|
||||
addon.DEBUG_SORT = not addon.DEBUG_SORT
|
||||
addon:Print("Debug sort mode: %s", addon.DEBUG_SORT and "ON" or "OFF")
|
||||
|
||||
elseif msg == "debugcat" then
|
||||
-- Toggle debug category view (for troubleshooting layout issues)
|
||||
addon.DEBUG_CATEGORY = not addon.DEBUG_CATEGORY
|
||||
addon:Print("Debug category mode: %s", addon.DEBUG_CATEGORY and "ON" or "OFF")
|
||||
|
||||
elseif msg == "quest" then
|
||||
-- Toggle quest bar
|
||||
local show = not addon.Modules.DB:GetSetting("showQuestBar")
|
||||
|
||||
Reference in New Issue
Block a user