comparison Summary.lua @ 11:10a2244f7ff0

Renamed addon from Inventory to Inventorium.
author Zerotorescue
date Tue, 12 Oct 2010 02:11:23 +0200
parents c4d0e5d47e10
children 417c3cfb9623
comparison
equal deleted inserted replaced
10:c4d0e5d47e10 11:10a2244f7ff0
1 local addon = LibStub("AceAddon-3.0"):GetAddon("Inventory"); 1 local addon = LibStub("AceAddon-3.0"):GetAddon("Inventorium");
2 local mod = addon:NewModule("Summary", "AceEvent-3.0", "AceTimer-3.0"); 2 local mod = addon:NewModule("Summary", "AceEvent-3.0", "AceTimer-3.0");
3 3
4 local AceGUI = LibStub("AceGUI-3.0"); 4 local AceGUI = LibStub("AceGUI-3.0");
5 5
6 function mod:OnEnable() 6 function mod:OnEnable()
63 local itemsCache = {}; 63 local itemsCache = {};
64 local CACHE_ITEMS_TOTAL, CACHE_ITEMS_CURRENT, CACHE_ITEMS_PER_UPDATE = 0, 0, 5; 64 local CACHE_ITEMS_TOTAL, CACHE_ITEMS_CURRENT, CACHE_ITEMS_PER_UPDATE = 0, 0, 5;
65 local cacheStart; 65 local cacheStart;
66 66
67 function mod:BuildMain() 67 function mod:BuildMain()
68 LibStub("AceConfigDialog-3.0"):Close("InventoryOptions"); 68 LibStub("AceConfigDialog-3.0"):Close("InventoriumOptions");
69 69
70 self:CloseFrame(); 70 self:CloseFrame();
71 71
72 -- Main Window 72 -- Main Window
73 mod.frame = AceGUI:Create("Frame"); 73 mod.frame = AceGUI:Create("Frame");
74 mod.frame:SetTitle("Inventory Summary"); 74 mod.frame:SetTitle("Inventorium Summary");
75 mod.frame:SetLayout("Fill"); 75 mod.frame:SetLayout("Fill");
76 mod.frame:SetCallback("OnClose", function(widget) 76 mod.frame:SetCallback("OnClose", function(widget)
77 mod:CancelTimer(self.tmrUpdater, true); 77 mod:CancelTimer(self.tmrUpdater, true);
78 mod:CloseFrame(); 78 mod:CloseFrame();
79 end); 79 end);