Mercurial > wow > itemauditor
diff Modules/Frames.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/Frames.lua Sun Jul 25 15:51:00 2010 -0700 +++ b/Modules/Frames.lua Sun Jul 25 15:51:13 2010 -0700 @@ -5,8 +5,8 @@ local tabs = {} -function addon:RegisterTab(text, value, width, callback) - tabs[value] = {text=text, callback=callback, width=width} +function addon:RegisterTab(text, value, callback) + tabs[value] = {text=text, callback=callback} end local displayFrame = false @@ -25,18 +25,13 @@ displayFrame:SetStatusText('') end end - + currentContent = cb(container) end function addon:CreateFrame(selectedTab) - --@debug@ - -- This is here so I can verify that all of the callbacks and tab switching works. - -- The real crafting tab will become its own module. - -- addon:RegisterTab('Placeholder Crafting', 'tab_crafting', 400, function() addon:Print('crafting') end) - --@end-debug@ - + if not displayFrame then -- Create the frame container displayFrame = AceGUI:Create("Frame")