Mercurial > wow > inventory
comparison Modules/Scanner.lua @ 132:8460855e3d90
Rewrote queueing module to insert a GUI.
Minor mover window changes.
| author | Zerotorescue |
|---|---|
| date | Tue, 18 Jan 2011 00:30:15 +0100 |
| parents | ee4672f21586 |
| children | 2efe61ca718e |
comparison
equal
deleted
inserted
replaced
| 131:a27948591159 | 132:8460855e3d90 |
|---|---|
| 103 tooltipTitle = (not addon.db.profile.defaults.hideHelp and "Cancel"), | 103 tooltipTitle = (not addon.db.profile.defaults.hideHelp and "Cancel"), |
| 104 tooltip = (not addon.db.profile.defaults.hideHelp and "Do not move anything and close the window."), | 104 tooltip = (not addon.db.profile.defaults.hideHelp and "Do not move anything and close the window."), |
| 105 onClick = OnMoveCancel, | 105 onClick = OnMoveCancel, |
| 106 }; | 106 }; |
| 107 | 107 |
| 108 addon:SetFrameSettings("Inventorium Storage Refill", "The items listed below can be refilled from this location, do you wish to move them to your bags?", proceedButton, cancelButton, headers); | 108 addon:SetMoverFrameSettings("Inventorium Storage Refill", "The items listed below can be refilled from this location, do you wish to move them to your bags?", proceedButton, cancelButton, headers); |
| 109 end | 109 end |
| 110 | 110 |
| 111 -- Merchant restock window: restock from a merchant by buying items needed | 111 -- Merchant restock window: restock from a merchant by buying items needed |
| 112 local function UseMerchantRestockST(totalCost) | 112 local function UseMerchantRestockST(totalCost) |
| 113 local frame = InventoriumItemMover; -- both for speed as code-consistency | 113 local frame = InventoriumItemMover; -- both for speed as code-consistency |
| 167 tooltipTitle = (not addon.db.profile.defaults.hideHelp and "Cancel"), | 167 tooltipTitle = (not addon.db.profile.defaults.hideHelp and "Cancel"), |
| 168 tooltip = (not addon.db.profile.defaults.hideHelp and "Do not purchase anything and close the window."), | 168 tooltip = (not addon.db.profile.defaults.hideHelp and "Do not purchase anything and close the window."), |
| 169 onClick = OnMoveCancel, | 169 onClick = OnMoveCancel, |
| 170 }; | 170 }; |
| 171 | 171 |
| 172 addon:SetFrameSettings("Inventorium Merchant Restock", ("The following items can be restocked from this merchant for a total of %s. Do you wish to proceed?"):format(GetSmallCoinTextureString(totalCost)), proceedButton, cancelButton, headers); | 172 addon:SetMoverFrameSettings("Inventorium Merchant Restock", ("The following items can be restocked from this merchant for a total of %s. Do you wish to proceed?"):format(GetSmallCoinTextureString(totalCost)), proceedButton, cancelButton, headers); |
| 173 end | 173 end |
| 174 | 174 |
| 175 function mod:ClearCache() | 175 function mod:ClearCache() |
| 176 twipe(itemCache); | 176 twipe(itemCache); |
| 177 end | 177 end |
| 625 self:RegisterEvent("MERCHANT_SHOW"); | 625 self:RegisterEvent("MERCHANT_SHOW"); |
| 626 | 626 |
| 627 Mover = addon:GetModule("Mover"); | 627 Mover = addon:GetModule("Mover"); |
| 628 | 628 |
| 629 if not InventoriumItemMover then | 629 if not InventoriumItemMover then |
| 630 addon:CreateMoverFrame(OnMoveAccept, OnMoveCancel); | 630 addon:CreateMoverFrame(); |
| 631 end | 631 end |
| 632 end | 632 end |
| 633 | 633 |
| 634 function mod:OnDisable() | 634 function mod:OnDisable() |
| 635 Mover = nil; | 635 Mover = nil; |
