Mercurial > wow > itemauditor
diff Modules/Frames.lua @ 65:32d53abee666
Converting ItemAuditor modules into true modules instead of a bunch of files that all write to the ItemAuditor table.
author | Asa Ayers <Asa.Ayers@Gmail.com> |
---|---|
date | Tue, 27 Jul 2010 18:15:38 -0700 |
parents | e7d287cc3b02 |
children | f37ab41f1928 |
line wrap: on
line diff
--- a/Modules/Frames.lua Tue Jul 27 18:00:00 2010 -0700 +++ b/Modules/Frames.lua Tue Jul 27 18:15:38 2010 -0700 @@ -5,7 +5,7 @@ local tabs = {} -function ItemAuditor:RegisterTab(text, value, callback) +function Frames.RegisterTab(text, value, callback) tabs[value] = {text=text, callback=callback} end @@ -29,8 +29,7 @@ currentContent = cb(container) end - -function ItemAuditor:CreateFrame(selectedTab) +function Frames.CreateFrame(selectedTab) if not displayFrame then -- Create the frame container @@ -77,8 +76,20 @@ displayFrame:Show() end -function ItemAuditor:UpdateStatusText(message) +function Frames.UpdateStatusText(message) if displayFrame then displayFrame:SetStatusText(message) end -end \ No newline at end of file +end + +function ItemAuditor:UpdateStatusText(message) + return Frames.UpdateStatusText(message) +end + +function ItemAuditor:RegisterTab(text, value, callback) + return Frames.RegisterTab(text, value, callback) +end + +function ItemAuditor:CreateFrame(selectedTab) + Frames.CreateFrame(selectedTab) +end