Quantcast

* Embed LibDogTag-3.0 and LibDogTag-Unit-3.0 for dynamic DogTag widgets.

Scott Sibley [07-23-11 - 08:59]
* 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. :)
Filename
.pkgmeta
Localization/enUS.lua
Modules/UnitTooltip/UnitTooltip.lua
embeds.xml
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 @@
 <Include file = "Libs\LibTalentQuery-1.0\lib.xml" />
 <Include file = "Libs\LibGroupTalents-1.0\lib.xml" />
 <Include file = "Libs\LibFail-2.0\lib.xml"/>
+<Include file = "Libs\LibDogTag-3.0\lib.xml"/>
+<Include file = "Libs\LibDogTag-Unit-3.0\lib.xml"/>

 <Include file = "Libs\LibScriptable-1.0\LibScriptable-1.0.xml"/>
-
 </Ui>