Mercurial > wow > buffalo2
comparison ObjectiveTracker/Block.lua @ 44:756e8aeb040b
- Default.lua
- simplified the response to SuperTrackedQuestID changes
- tag icons work again
| author | Nenue |
|---|---|
| date | Mon, 25 Apr 2016 19:37:13 -0400 |
| parents | 9480bd904f4c |
| children | dd1ae565f559 |
comparison
equal
deleted
inserted
replaced
| 43:9480bd904f4c | 44:756e8aeb040b |
|---|---|
| 97 print('|cFF0088FF'..self.name..':GetBlock', index) | 97 print('|cFF0088FF'..self.name..':GetBlock', index) |
| 98 local block = self.InfoBlock[index] | 98 local block = self.InfoBlock[index] |
| 99 local used = self.usedBlocks | 99 local used = self.usedBlocks |
| 100 local free = self.freeBlocks | 100 local free = self.freeBlocks |
| 101 | 101 |
| 102 if block then | 102 if block and block.isAnimating then |
| 103 print(block.info.id, index) | 103 return block |
| 104 end | 104 end |
| 105 | 105 |
| 106 -- if the frame entry is still good, sort heaps | 106 -- if the frame entry is still good, sort heaps |
| 107 if block and block.info.id == index then | 107 if block and block.info.id == index then |
| 108 block.posIndex = tMove(free, used, block) | 108 block.posIndex = tMove(free, used, block) |
| 138 end | 138 end |
| 139 self.InfoBlock[index] = block | 139 self.InfoBlock[index] = block |
| 140 block.posIndex = tMove(free, used, block) | 140 block.posIndex = tMove(free, used, block) |
| 141 print(' |cFF00FF00('..source..')|r |cFF0088FF'..self.name..'|r.|cFF00FFBBusedBlocks['..block.posIndex..'] =|r', block:GetName()) | 141 print(' |cFF00FF00('..source..')|r |cFF0088FF'..self.name..'|r.|cFF00FFBBusedBlocks['..block.posIndex..'] =|r', block:GetName()) |
| 142 end | 142 end |
| 143 block.blockFadeOut:SetScript('OnFinished', blockFadeOut_OnFinished) | 143 |
| 144 block:SetScript('OnHide', function(self) | 144 block.blockFadeOut:SetScript('OnFinished', blockFadeOut_OnFinished) |
| 145 fprint(self:GetName(), '|cFF00FF00HIDE|r', debugstack(1,3,1)) | 145 block:SetScript('OnHide', function(self) |
| 146 if(self.DebugTab:IsShown()) then | 146 fprint(self:GetName(), '|cFF00FF00HIDE|r', debugstack(1,3,1)) |
| 147 self.DebugTab:Hide() | 147 if(self.DebugTab:IsShown()) then |
| 148 end | 148 self.DebugTab:Hide() |
| 149 self.blockFadeOut:SetScript('OnFinished', blockFadeOut_OnFinished) | 149 end |
| 150 self.isAnimating = nil | 150 self.blockFadeOut:SetScript('OnFinished', blockFadeOut_OnFinished) |
| 151 end) | 151 self.isAnimating = nil |
| 152 end) | |
| 152 print(' used/free: |cFFFFFF00' .. #self.usedBlocks .. '|r/|cFF00FFFF'..#self.freeBlocks ..'|r') | 153 print(' used/free: |cFFFFFF00' .. #self.usedBlocks .. '|r/|cFF00FFFF'..#self.freeBlocks ..'|r') |
| 153 return block | 154 return block |
| 154 end | 155 end |
| 155 | 156 |
| 156 --- begins a blockFadeOut animation and fires FreeBlock when that's done | 157 --- begins a blockFadeOut animation and fires FreeBlock when that's done |
