comparison Modules/Summary v2.lua @ 98:252292b703ce

All print(...) function calls are now handled by addon:Print(text, color). The cursor will be cleared of any items/spells before moving as well as when aborting.
author Zerotorescue
date Sun, 09 Jan 2011 17:49:33 +0100
parents a12d22ef3f39
children
comparison
equal deleted inserted replaced
97:ae268e5c7825 98:252292b703ce
26 addon:RegisterSlash(function() 26 addon:RegisterSlash(function()
27 if mod.frame then 27 if mod.frame then
28 mod.frame:SetWidth(700); 28 mod.frame:SetWidth(700);
29 mod.frame:SetHeight(600); 29 mod.frame:SetHeight(600);
30 30
31 print("Resetting width and height of the summary frame."); 31 addon:Print("Resetting width and height of the summary frame.");
32 end 32 end
33 end, { "r", "reset" }, "|Hfunction:InventoriumCommandHandler:reset|h|cff00fff7/im reset|r|h (or /im r) - Reset the size of the summary frame."); 33 end, { "r", "reset" }, "|Hfunction:InventoriumCommandHandler:reset|h|cff00fff7/im reset|r|h (or /im r) - Reset the size of the summary frame.");
34 end 34 end
35 35
36 local function ShowTooltip(self) 36 local function ShowTooltip(self)
332 iGroup:SetLayout("Flow"); 332 iGroup:SetLayout("Flow");
333 iGroup:MakeButton({ 333 iGroup:MakeButton({
334 name = "Queue", 334 name = "Queue",
335 desc = "Queue all items in this group.", 335 desc = "Queue all items in this group.",
336 exec = function() 336 exec = function()
337 print("Queueing all items within " .. groupName .. " craftable by the currently open profession."); 337 addon:Print(("Queueing all items within %s craftable by the currently open profession."):format(groupName));
338 self:SendMessage("IM_QUEUE_GROUP", groupName); 338 self:SendMessage("IM_QUEUE_GROUP", groupName);
339 end, 339 end,
340 }); 340 });
341 341
342 -- Headers 342 -- Headers