Mercurial > wow > itemauditor
diff Modules/Frames.lua @ 63:e7d287cc3b02
Replaced all instances of addon with ItemAuditor and I moved ItemAuditor out of the global namespace. The conversion was mostly a search/replace offering no new functionality. That will come in a later commit.
author | Asa Ayers <Asa.Ayers@Gmail.com> |
---|---|
date | Tue, 27 Jul 2010 17:58:33 -0700 |
parents | 4ec321eb0dfe |
children | 32d53abee666 |
line wrap: on
line diff
--- a/Modules/Frames.lua Tue Jul 27 17:52:21 2010 -0700 +++ b/Modules/Frames.lua Tue Jul 27 17:58:33 2010 -0700 @@ -1,11 +1,11 @@ -local addonName, addonTable = ...; -local addon = _G[addonName] +local ItemAuditor = select(2, ...) +local Frames = ItemAuditor:NewModule("Frames") local AceGUI = LibStub("AceGUI-3.0") local tabs = {} -function addon:RegisterTab(text, value, callback) +function ItemAuditor:RegisterTab(text, value, callback) tabs[value] = {text=text, callback=callback} end @@ -30,7 +30,7 @@ end -function addon:CreateFrame(selectedTab) +function ItemAuditor:CreateFrame(selectedTab) if not displayFrame then -- Create the frame container @@ -77,7 +77,7 @@ displayFrame:Show() end -function addon:UpdateStatusText(message) +function ItemAuditor:UpdateStatusText(message) if displayFrame then displayFrame:SetStatusText(message) end