public
Description: WoW Addon - Prospecting and Disenchanting Aide
Homepage: http://www.tekkub.net
Clone URL: git://github.com/tekkub/panda.git
Search Repo:
Click here to lend your support to: panda and make a donation at www.pledgie.com !
Open backback when panels are shown, nil out frame factories when they 
aren't needed anymore
tekkub (author)
Tue Jan 15 20:12:48 -0800 2008
commit  fc4bb8a6668ee9b7122fac9f58b40b783d049324
tree    7612f3be819646facb55aa30fc42b79fbcc8074b
parent  4c352777b368ba3411174a47ce8a0df889f84296
...
211
212
213
 
214
215
216
...
211
212
213
214
215
216
217
0
@@ -211,6 +211,7 @@ function Panda:CreateDisenchantingPanel()
0
   frame:SetScript("OnShow", function()
0
     self:RegisterEvent("BAG_UPDATE", "DisenchantBagUpdate")
0
     self:DisenchantBagUpdate()
0
+ OpenBackpack()
0
   end)
0
   frame:SetScript("OnHide", function() self:UnregisterEvent("BAG_UPDATE") end)
0
 
...
108
109
110
 
 
 
111
112
113
...
108
109
110
111
112
113
114
115
116
0
@@ -108,6 +108,9 @@ function Panda:CreateCutGreenBluePanel()
0
     b:SetAttribute("macrotext", "/run CloseTradeSkill()\n/cast Jewelcrafting\n/run CloseTradeSkill()")
0
   end
0
 
0
+ frame:SetScript("OnShow", function() OpenBackpack() end)
0
+
0
+ self.CreateCutGreenBluePanel = nil -- Don't need this function anymore!
0
   return frame
0
 end
0
 
...
100
101
102
 
103
104
...
100
101
102
103
104
105
0
@@ -100,5 +100,6 @@ function Panda:CreateDisenchantingPricePanel()
0
   text1:SetText(string.format("Fel Iron crush value: %.1f%% (%.1f%%)", fi*100, fi2*100))
0
   text2:SetText(string.format("Adamantite crush value: %.1f%% (%.1f%%)", adam*100, adam2*100))
0
 
0
+ self.CreateDisenchantingPricePanel = nil -- Don't need this function anymore!
0
   return frame
0
 end
...
125
126
127
 
128
129
130
...
125
126
127
128
129
130
131
0
@@ -125,6 +125,7 @@ function Panda:CreateProspectingPanel()
0
   frame:SetScript("OnShow", function()
0
     self:RegisterEvent("BAG_UPDATE", "ProspectingBagUpdate")
0
     self:ProspectingBagUpdate()
0
+ OpenBackpack()
0
   end)
0
   frame:SetScript("OnHide", function() self:UnregisterEvent("BAG_UPDATE") end)
0
 

Comments

    No one has commented yet.