From 7b4052db70e68be45ae8fbe72b4df26eae46d06f Mon Sep 17 00:00:00 2001 From: "Johnny C. Lam" Date: Thu, 28 Mar 2013 04:33:33 +0000 Subject: [PATCH] Reorganize debug options and add a button to trace the next frame. git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@833 d5049fe3-3747-40f7-a4b5-f36d6801af5f --- OvaleOptions.lua | 113 +++++++++++++++++++++++++++++++++--------------------- 1 file changed, 69 insertions(+), 44 deletions(-) diff --git a/OvaleOptions.lua b/OvaleOptions.lua index 1bc6ddc..f9f73db 100644 --- a/OvaleOptions.lua +++ b/OvaleOptions.lua @@ -355,52 +355,77 @@ local self_options = type = "group", args = { - -- Node names must match the names of the debug flags. - action_bar = - { - name = "Action bars", - desc = L["Debug action bars"], - type = "toggle", - }, - aura = - { - name = "Auras", - desc = L["Debug aura"], - type = "toggle", - }, - compile = - { - name = "Compile", - desc = L["Debug compile"], - type = "toggle", - }, - enemy = - { - name = "Enemies", - desc = L["Debug enemies"], - type = "toggle", - }, - guid = - { - name = "GUIDs", - desc = L["Debug GUID"], - type = "toggle", - }, - missing_spells = - { - name = "Missing spells", - desc = L["Debug missing spells"], - type = "toggle", - }, - unknown_spells = - { - name = "Unknown spells", - desc = L["Debug unknown spells"], - type = "toggle", + trace = + { + name = "Trace", + type = "group", + args = + { + trace = + { + name = "Trace", + type = "execute", + name = "Trace next frame", + func = function() + Ovale.trace = true + end, + }, + }, + }, + toggles = + { + name = "Options", + type = "group", + args = + { + -- Node names must match the names of the debug flags. + action_bar = + { + name = "Action bars", + desc = L["Debug action bars"], + type = "toggle", + }, + aura = + { + name = "Auras", + desc = L["Debug aura"], + type = "toggle", + }, + compile = + { + name = "Compile", + desc = L["Debug compile"], + type = "toggle", + }, + enemy = + { + name = "Enemies", + desc = L["Debug enemies"], + type = "toggle", + }, + guid = + { + name = "GUIDs", + desc = L["Debug GUID"], + type = "toggle", + }, + missing_spells = + { + name = "Missing spells", + desc = L["Debug missing spells"], + type = "toggle", + }, + unknown_spells = + { + name = "Unknown spells", + desc = L["Debug unknown spells"], + type = "toggle", + }, + }, + get = function(info) return OvaleOptions.db.profile.debug[info[#info]] end, + set = function(info, value) OvaleOptions.db.profile.debug[info[#info]] = value end, }, }, - get = function(info) return OvaleOptions.db.profile.debug[info[#info]] end, - set = function(info, value) OvaleOptions.db.profile.debug[info[#info]] = value end, }, actions = { -- 1.7.9.5