1
0
Fork 0

Added more sorting stuff.

This commit is contained in:
Andrew Tomaka 2011-09-21 01:32:59 -04:00
parent 10449cd7cb
commit 3a5412ba73
1 changed files with 35 additions and 22 deletions

View File

@ -19,29 +19,42 @@ local options = {
name = 'ChoreTracker', name = 'ChoreTracker',
type = 'group', type = 'group',
args = { args = {
minimap = { general = {
name = 'Hide Minimap Icon', name = 'Settings',
desc = 'Removes the icon from your minimap.', type = 'group',
type = 'toggle', order = 1,
get = function(info) return db.profile.minimap.hide end, args = {
set = function(info, value) db.profile.minimap.hide = value LDBIcon[value and 'Hide' or 'Show'](LDBIcon, 'ChoreTracker') end, minimap = {
}, name = 'Hide Minimap Icon',
sortType = { desc = 'Removes the icon from your minimap.',
name = 'Sort Field', type = 'toggle',
desc = 'Field to sort the tooltip by.', get = function(info) return db.profile.minimap.hide end,
type = 'select', set = function(info, value) db.profile.minimap.hide = value LDBIcon[value and 'Hide' or 'Show'](LDBIcon, 'ChoreTracker') end,
values = { 'Character', 'Valor Points', 'Class' }, },
get = function(info) return db.profile.sortType end, sortType = {
set = function(info, value) db.profile.sortType = value end, name = 'Sort Field',
}, desc = 'Field to sort the tooltip by.',
sortingDirection = { type = 'select',
name = 'Sorting Direction', values = { 'Character', 'Valor Points', 'Class' },
desc = 'Which direction to sort.', get = function(info) return db.profile.sortType end,
type = 'select', set = function(info, value) db.profile.sortType = value end,
values = { 'Ascending', 'Descending' }, },
get = function(info) return db.profile.sortDirection end, sortingDirection = {
set = function(info, value) db.profile.sortDirection = value end, 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 = { },
}
}, },
} }