Mercurial > wow > askmrrobot
comparison Junk.lua @ 162:f66108c1f674
Remove debugging messages
| author | yellowfive |
|---|---|
| date | Mon, 06 May 2019 17:06:26 -0700 |
| parents | 35612aee8e15 |
| children | f27a7c64b21f |
comparison
equal
deleted
inserted
replaced
| 161:35612aee8e15 | 162:f66108c1f674 |
|---|---|
| 174 Amr.Wait(1, function() | 174 Amr.Wait(1, function() |
| 175 doBankWithdraw() | 175 doBankWithdraw() |
| 176 end) | 176 end) |
| 177 else | 177 else |
| 178 | 178 |
| 179 print("bank withdraw done") | |
| 180 | |
| 181 -- reset state | 179 -- reset state |
| 182 _bankUsedBagSlots = nil | 180 _bankUsedBagSlots = nil |
| 183 _btnBank:SetDisabled(not _isBankOpen) | 181 _btnBank:SetDisabled(not _isBankOpen) |
| 184 | 182 |
| 185 -- re-render the junk list | 183 -- re-render the junk list |
| 191 if not _isBankOpen then return end | 189 if not _isBankOpen then return end |
| 192 | 190 |
| 193 local data = Amr.db.char.JunkData | 191 local data = Amr.db.char.JunkData |
| 194 if not data.Junk then return end | 192 if not data.Junk then return end |
| 195 | 193 |
| 196 print("doing bank withdraw...") | |
| 197 | |
| 198 -- disable button while processing | 194 -- disable button while processing |
| 199 _btnBank:SetDisabled(true) | 195 _btnBank:SetDisabled(true) |
| 200 | 196 |
| 201 local bagList = {} | 197 local bagList = {} |
| 202 table.insert(bagList, BANK_CONTAINER) | 198 table.insert(bagList, BANK_CONTAINER) |
| 599 end | 595 end |
| 600 | 596 |
| 601 _lblBank:SetText(L.JunkBankText(bankCount)) | 597 _lblBank:SetText(L.JunkBankText(bankCount)) |
| 602 _lblBank:SetVisible(bankCount > 0) | 598 _lblBank:SetVisible(bankCount > 0) |
| 603 _btnBank:SetVisible(bankCount > 0) | 599 _btnBank:SetVisible(bankCount > 0) |
| 604 | |
| 605 -- in most cases, this is because the user has sold/scrapped the items already | |
| 606 --if missingCount > 0 then | |
| 607 -- Amr:Print(L.JunkMissingText(missingCount)) | |
| 608 --end | |
| 609 end | 600 end |
| 610 end | 601 end |
| 611 | 602 |
| 612 Amr:AddEventHandler("SCRAPPING_MACHINE_SHOW", function() | 603 Amr:AddEventHandler("SCRAPPING_MACHINE_SHOW", function() |
| 613 _isScrapOpen = true | 604 _isScrapOpen = true |
