From 576c37172c329cd2be518bc5e4f15711c758e0b6 Mon Sep 17 00:00:00 2001 From: Scott Sibley Date: Sat, 23 Jul 2011 03:59:10 -0500 Subject: [PATCH] * Embed LibDogTag-3.0 and LibDogTag-Unit-3.0 for dynamic DogTag widgets. * Provide an option under UnitTooltip lines to enable or disable DogTag support for each line. * These DogTag widgets go in two phases. First the script is executed, and you return your DogTag string from your script. It'll be given to LibDogTag for compiling and execution. * What you get is dynamic DogTags. :) --- .pkgmeta | 1 + Localization/enUS.lua | 4 +++- Modules/UnitTooltip/UnitTooltip.lua | 12 ++++++++++++ embeds.xml | 3 ++- 4 files changed, 18 insertions(+), 2 deletions(-) diff --git a/.pkgmeta b/.pkgmeta index 743ebf1..8a826bf 100644 --- a/.pkgmeta +++ b/.pkgmeta @@ -78,6 +78,7 @@ externals: Libs/LibLocalizedEJBosses-1.0: svn://svn.wowace.com/wow/liblocalizedejbosses-1-0/mainline/trunk Libs/LibTalentQuery-1.0: svn://svn.wowace.com/wow/libtalentquery-1-0/mainline/trunk Libs/LibGroupTalents-1.0: svn://svn.wowace.com/wow/libgrouptalents-1-0/mainline/trunk + Libs/LibDogTag-3.0: svn://svn.wowace.com/wow/libdogtag-3-0/mainline/trunk move-folders: StarTip/Modules/Appearance: StarTip_Appearance diff --git a/Localization/enUS.lua b/Localization/enUS.lua index 4f414ba..f630d16 100644 --- a/Localization/enUS.lua +++ b/Localization/enUS.lua @@ -215,7 +215,9 @@ L["Line segments won't update if the text never changes. Enable this option to b L["How fast to scroll marquee text."] = true L["Clip Length"] = true L["Whether to clip the string's length when it is longer than the value of Columns."] = true - +L["Dog Tags"] = true +L["Whether to parse the return values as DogTags or not."] = true + -- Mouse Gestures L["Left Button"] = true L["Right Button"] = true diff --git a/Modules/UnitTooltip/UnitTooltip.lua b/Modules/UnitTooltip/UnitTooltip.lua index 615483b..8fababe 100644 --- a/Modules/UnitTooltip/UnitTooltip.lua +++ b/Modules/UnitTooltip/UnitTooltip.lua @@ -1289,6 +1289,18 @@ function mod:RebuildOpts() end, order = 10 }, + dogtag = { + name = L["Dog Tags"], + desc = L["Whether to parse the return values as DogTags or not."], + type = "toggle", + get = function() return v.dogtag end, + set = function(info, val) + v.dogtag = val + v.dogtagDIrty = true + self:CreateLines() + end, + order = 11 + }, --[[ wordwrap = { name = L["Word Wrap"], diff --git a/embeds.xml b/embeds.xml index 5996fb9..be06d3f 100644 --- a/embeds.xml +++ b/embeds.xml @@ -37,7 +37,8 @@ + + - -- 1.7.9.5