Restored alpha value for original tradeskill frame when closing Cauldron.
pschifferer [03-15-09 - 15:30]
Restored alpha value for original tradeskill frame when closing Cauldron.
Moved test suite registration into main file.
Removed frame strata setting in main UI XML file.
diff --git a/CauldronMain.lua b/CauldronMain.lua
index 4be5dd7..4d416f3 100644
--- a/CauldronMain.lua
+++ b/CauldronMain.lua
@@ -101,6 +101,13 @@ function Cauldron:OnInitialize()
end
collectgarbage();
--]]
+
+ --@alpha@
+ -- register test suite
+ if WoWUnit then
+ WoWUnit:AddTestSuite("CauldronTestSuite", CauldronTestSuite);
+ end
+ --@end-alpha@
-- let the user know the addon is loaded
self:Print(L["Cauldron loaded; version "],Cauldron.version);
diff --git a/CauldronMain.xml b/CauldronMain.xml
index f44000e..934ebc1 100644
--- a/CauldronMain.xml
+++ b/CauldronMain.xml
@@ -659,7 +659,7 @@
<Frames>
<!-- Link button -->
- <Button name="CauldronTradeSkillLinkButton" frameStrata="HIGH">
+ <Button name="CauldronTradeSkillLinkButton">
<Size x="32" y="16" />
<Anchors>
<Anchor point="LEFT" relativeTo="CauldronFrameTitleText" relativePoint="RIGHT">
diff --git a/CauldronMainUI.lua b/CauldronMainUI.lua
index a694924..b495dfd 100644
--- a/CauldronMainUI.lua
+++ b/CauldronMainUI.lua
@@ -56,6 +56,10 @@ function Cauldron:Frame_Hide()
self:UnregisterEvent("Cauldron_Update")
HideUIPanel(CauldronFrame);
+
+ if TradeSkillFrame then
+ TradeSkillFrame:SetAlpha(1.0);
+ end
--@alpha@
self:debug("Frame_Hide exit");
diff --git a/CauldronUnitTests.lua b/CauldronUnitTests.lua
index c38a36d..716a839 100644
--- a/CauldronUnitTests.lua
+++ b/CauldronUnitTests.lua
@@ -29,8 +29,4 @@ local CauldronTestSuite = {
end;
};
-if WoWUnit then
- WoWUnit:AddTestSuite("CauldronTestSuite", CauldronTestSuite);
-end
-
--@end-alpha@