From 3a5412ba73462c831feaba76736a3ea0a03ec748 Mon Sep 17 00:00:00 2001 From: atomaka Date: Wed, 21 Sep 2011 01:32:59 -0400 Subject: [PATCH] Added more sorting stuff. --- ChoreTracker.lua | 57 +++++++++++++++++++++++++++++------------------- 1 file changed, 35 insertions(+), 22 deletions(-) diff --git a/ChoreTracker.lua b/ChoreTracker.lua index 1bafd67..e297e83 100644 --- a/ChoreTracker.lua +++ b/ChoreTracker.lua @@ -19,29 +19,42 @@ local options = { name = 'ChoreTracker', type = 'group', args = { - minimap = { - name = 'Hide Minimap Icon', - desc = 'Removes the icon from your minimap.', - type = 'toggle', - get = function(info) return db.profile.minimap.hide end, - set = function(info, value) db.profile.minimap.hide = value LDBIcon[value and 'Hide' or 'Show'](LDBIcon, 'ChoreTracker') end, - }, - sortType = { - name = 'Sort Field', - desc = 'Field to sort the tooltip by.', - type = 'select', - values = { 'Character', 'Valor Points', 'Class' }, - get = function(info) return db.profile.sortType end, - set = function(info, value) db.profile.sortType = value end, - }, - sortingDirection = { - name = 'Sorting Direction', - desc = 'Which direction to sort.', - type = 'select', - values = { 'Ascending', 'Descending' }, - get = function(info) return db.profile.sortDirection end, - set = function(info, value) db.profile.sortDirection = value end, + general = { + name = 'Settings', + type = 'group', + order = 1, + args = { + minimap = { + name = 'Hide Minimap Icon', + desc = 'Removes the icon from your minimap.', + type = 'toggle', + get = function(info) return db.profile.minimap.hide end, + set = function(info, value) db.profile.minimap.hide = value LDBIcon[value and 'Hide' or 'Show'](LDBIcon, 'ChoreTracker') end, + }, + sortType = { + name = 'Sort Field', + desc = 'Field to sort the tooltip by.', + type = 'select', + values = { 'Character', 'Valor Points', 'Class' }, + get = function(info) return db.profile.sortType end, + set = function(info, value) db.profile.sortType = value end, + }, + sortingDirection = { + name = 'Sorting Direction', + desc = 'Which direction to sort.', + type = 'select', + values = { 'Ascending', 'Descending' }, + get = function(info) return db.profile.sortDirection end, + set = function(info, value) db.profile.sortDirection = value end, + }, + }, }, + instances = { + name = 'Instances', + type = 'group', + order = 2, + args = { }, + } }, }