Mercurial > wow > inventory
comparison Modules/Scanner.lua @ 133:2efe61ca718e
The mover frame will now be build the first time it is needed rather than on module load.
| author | Zerotorescue |
|---|---|
| date | Tue, 18 Jan 2011 00:33:47 +0100 |
| parents | 8460855e3d90 |
| children | 20d7d3d19f97 |
comparison
equal
deleted
inserted
replaced
| 132:8460855e3d90 | 133:2efe61ca718e |
|---|---|
| 401 if addon.db.profile.defaults.autoRefillSkipConfirm then | 401 if addon.db.profile.defaults.autoRefillSkipConfirm then |
| 402 OnMoveAccept(); | 402 OnMoveAccept(); |
| 403 else | 403 else |
| 404 local moves = Mover:GetMoves(); | 404 local moves = Mover:GetMoves(); |
| 405 | 405 |
| 406 if not InventoriumItemMover then | |
| 407 addon:CreateMoverFrame(); | |
| 408 end | |
| 409 | |
| 406 -- This table is never copied, just referenced. It is the same for every row. | 410 -- This table is never copied, just referenced. It is the same for every row. |
| 407 local columns; | 411 local columns; |
| 408 | 412 |
| 409 if isRestock then | 413 if isRestock then |
| 410 local totalCost = 0; | 414 local totalCost = 0; |
| 623 self:RegisterEvent("GUILDBANKFRAME_OPENED"); | 627 self:RegisterEvent("GUILDBANKFRAME_OPENED"); |
| 624 self:RegisterEvent("MAIL_SHOW"); | 628 self:RegisterEvent("MAIL_SHOW"); |
| 625 self:RegisterEvent("MERCHANT_SHOW"); | 629 self:RegisterEvent("MERCHANT_SHOW"); |
| 626 | 630 |
| 627 Mover = addon:GetModule("Mover"); | 631 Mover = addon:GetModule("Mover"); |
| 628 | |
| 629 if not InventoriumItemMover then | |
| 630 addon:CreateMoverFrame(); | |
| 631 end | |
| 632 end | 632 end |
| 633 | 633 |
| 634 function mod:OnDisable() | 634 function mod:OnDisable() |
| 635 Mover = nil; | 635 Mover = nil; |
| 636 currentLocation = nil; | 636 currentLocation = nil; |
