From c9d5bdff1ac4fa4d4d1b6369f4663cef870abd72 Mon Sep 17 00:00:00 2001 From: "Johnny C. Lam" Date: Fri, 15 Feb 2013 22:13:19 +0000 Subject: [PATCH] Split ``debug'' into separate toggles to make options panel prettier. git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@692 d5049fe3-3747-40f7-a4b5-f36d6801af5f --- OvaleOptions.lua | 53 ++++++++++++++++++++++++++++++++++++++--------------- 1 file changed, 38 insertions(+), 15 deletions(-) diff --git a/OvaleOptions.lua b/OvaleOptions.lua index b3fd084..4475c08 100644 --- a/OvaleOptions.lua +++ b/OvaleOptions.lua @@ -313,23 +313,46 @@ local options = type = "group", args = { - debug = + -- Node names must match the names of the debug flags. + aura = { - type = "multiselect", - name = "Debug", - values = - { - ["aura"] = L["Debug aura"], - ["compile"] = L["Debug compile"], - ["enemy"] = L["Debug enemies"], - ["guid"] = L["Debug GUID"], - ["missing_spells"] = L["Debug missing spells"], - ["unknown_spells"] = L["Debug unknown spells"], - }, - get = function(info, key) return OvaleOptions.db.profile.debug[key] end, - set = function(info, key, state) OvaleOptions.db.profile.debug[key] = state end, - } + 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, }, actions = { -- 1.7.9.5