diff Modules/DisplayInvested.lua @ 59:4ec321eb0dfe

Adding a crafing tab to the ItemAuditor window.
author Asa Ayers <Asa.Ayers@Gmail.com>
date Sun, 25 Jul 2010 15:51:13 -0700
parents bdf3aba93aa9
children e7d287cc3b02
line wrap: on
line diff
--- a/Modules/DisplayInvested.lua	Sun Jul 25 15:51:00 2010 -0700
+++ b/Modules/DisplayInvested.lua	Sun Jul 25 15:51:13 2010 -0700
@@ -10,7 +10,7 @@
 local promptFrame = false
 
 local validateMoney = ItemAuditor.validateMoney
-local parseMoney = parseMoney
+local parseMoney = ItemAuditor.parseMoney
 
 
 StaticPopupDialogs["ItemAuditor_NewPrice"] = {
@@ -160,18 +160,9 @@
 	return investedTable
 end
 
-local function getinvestedColsWidth()
-	local width = 0
-	for i, data in pairs(investedCols) do 
-		width = width + data.width
-	end
-	return width
-end
-
-local tabName = 'tab_invested'
-ItemAuditor:RegisterTab("Invested", tabName, getinvestedColsWidth(), ShowInvested)
+ItemAuditor:RegisterTab("Invested", 'tab_invested', ShowInvested)
 function ItemAuditor:DisplayInvested()
-	self:CreateFrame(tabName)
+	self:CreateFrame('tab_invested')
 end
 
 function UpdateInvestedData()