From 4262c0cdb6dce7aa12e40ea3c103f0a70c3e1f76 Mon Sep 17 00:00:00 2001 From: atomaka Date: Sun, 16 Oct 2011 01:17:43 -0400 Subject: [PATCH] Include an option that will allow the user to show a realm abbreviation next to their character name. --- ChoreTracker.lua | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/ChoreTracker.lua b/ChoreTracker.lua index b16d61a..9dac6bc 100644 --- a/ChoreTracker.lua +++ b/ChoreTracker.lua @@ -20,6 +20,7 @@ local defaults = { sortType = 1, sortDirection = 1, currentOnTop = false, + showServer = false, instances = { [Z['Baradin Hold']] = { abbreviation = 'BH', enable = true, removed = false, }, [Z['Firelands']] = { abbreviation = 'FL', enable = true, removed = false, }, @@ -79,6 +80,20 @@ local options = { get = function(info) return core.db.profile.sortDirection end, set = function(info, value) core.db.profile.sortDirection = value end, }, + otherHeader = { + name = '', + type = 'header', + order = 20, + }, + showServer = { + name = L['Show Server'], + desc = L['Show the server abbreviation next to a character name in the list.'], + type = 'toggle', + width = 'full', + order = 21, + get = function(info) return core.db.profile.showServer end, + set = function(info, value) core.db.profile.showServer = value end, + }, }, }, instances = { @@ -528,6 +543,10 @@ function core:DrawTooltip() end for _,information in pairs(tooltipTable) do + if self.db.profile.showServer then + information.name = information.name .. '-' .. string.sub(information.realm,0,3) + end + local characterLine = self.tooltip:AddLine('') self.tooltip:SetCell(characterLine, 1, information.name, self.fontObjects[information.class], 'LEFT')