Made the attribution changes to move to using Mr. Robot's default weights
Kevin Lyles [07-09-11 - 03:49]
Made the attribution changes to move to using Mr. Robot's default weights
diff --git a/Locales/enUS/base.lua b/Locales/enUS/base.lua
index b4a8148..82666a7 100644
--- a/Locales/enUS/base.lua
+++ b/Locales/enUS/base.lua
@@ -91,6 +91,7 @@ L["USE_PROF_ENCH"] = "Use enchants with profession reqs if my skill is:"
-- weights.xml
L["WEIGHTS_TITLE"] = "WeightsWatcher Weight Values"
+L["WEIGHTS_ATTRIBUTION"] = "Default weights graciously provided by AskMrRobot.com"
L["WATCH_TT"] = "Watch this weight?"
L["Save"] = "Save"
L["Copy"] = "Copy"
diff --git a/weights.xml b/weights.xml
index 546377e..49d0fc3 100644
--- a/weights.xml
+++ b/weights.xml
@@ -452,6 +452,16 @@
</Anchor>
</Anchors>
</FontString>
+ <!--Mr. Robot weight attribution-->
+ <FontString name="$parentWeightsAttribution" parentKey="weightsAttribution" inherits="GameFontNormal" text="WEIGHTS_ATTRIBUTION">
+ <Anchors>
+ <Anchor point="BOTTOM">
+ <Offset>
+ <AbsDimension x="20" y="5"/>
+ </Offset>
+ </Anchor>
+ </Anchors>
+ </FontString>
</Layer>
<Layer level="BACKGROUND">
<Texture setAllPoints="true">
@@ -711,6 +721,7 @@
<Scripts>
<OnLoad>
self.title:SetText(ww_localization[self.title:GetText()])
+ self.weightsAttribution:SetText(ww_localization[self.weightsAttribution:GetText()])
table.insert(UISpecialFrames, self:GetName())
function self:SmartHide(func)
self.afterHide = func