Mercurial > wow > inventory
comparison Modules/Summary.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 | d3fbb5676a5e |
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) |
254 iGroup:SetLayout("Flow"); | 254 iGroup:SetLayout("Flow"); |
255 iGroup:MakeButton({ | 255 iGroup:MakeButton({ |
256 name = "Queue", | 256 name = "Queue", |
257 desc = "Queue all items in this group.", | 257 desc = "Queue all items in this group.", |
258 exec = function() | 258 exec = function() |
259 print("Queueing all items within " .. groupName .. " craftable by the currently open profession."); | 259 addon:Print(("Queueing all items within %s craftable by the currently open profession."):format(groupName)); |
260 self:SendMessage("IM_QUEUE_GROUP", groupName); | 260 self:SendMessage("IM_QUEUE_GROUP", groupName); |
261 end, | 261 end, |
262 }); | 262 }); |
263 | 263 |
264 | 264 |