Mercurial > wow > buffalo2
comparison ObjectiveFrame.lua @ 8:7923243ae972
ObjectiveUI & ObjectiveEvents
- securehook to API calls for compatibility with addons that work with the objective tracking interface
- let the API hooks invoke ObjectiveUI functions when possible
- ObjectiveUI framescript handlers should use the corresponding API call if possible, so that addon space can be fully aware of our actions
- Sanity check cached data when possible during 'Remove' hooks
ObjectiveInfo
- Add cheevID to criteria info
ObjectiveCore
- Index quest tracker blocks by their watch offset, and use that to verify whether the given block frame should be released into pool
ObjectiveFrame
- Differentiate between visible and non-visible unused buttons, and only release when their quest has been dropped
author | Nenue |
---|---|
date | Fri, 01 Apr 2016 14:40:14 -0400 |
parents | 5301c68f28d8 |
children | 2698173edd40 |
comparison
equal
deleted
inserted
replaced
7:5301c68f28d8 | 8:7923243ae972 |
---|---|
666 '|cFF00FF00'..Wrapper:GetName()..'|r:', Wrapper:GetWidth(), Wrapper:GetHeight(), | 666 '|cFF00FF00'..Wrapper:GetName()..'|r:', Wrapper:GetWidth(), Wrapper:GetHeight(), |
667 '|cFF0088FFvScrollRange|r:', floor(Scroller:GetVerticalScrollRange()+.5) | 667 '|cFF0088FFvScrollRange|r:', floor(Scroller:GetVerticalScrollRange()+.5) |
668 ) | 668 ) |
669 mod.UpdateActionButtons('FULL_UPDATE') | 669 mod.UpdateActionButtons('FULL_UPDATE') |
670 | 670 |
671 QuestPOIUpdateIcons() | |
672 end | 671 end |
673 | 672 |
674 --- Queue any active item buttons for update for that frame | 673 --- Queue any active item buttons for update for that frame |
675 mod.UpdateActionButtons = function(updateReason) | 674 mod.UpdateActionButtons = function(updateReason) |
676 Scroller.snap_upper = 0 | 675 Scroller.snap_upper = 0 |
702 else | 701 else |
703 print('hidden block or unwatched quest') | 702 print('hidden block or unwatched quest') |
704 itemButton.previousItem = nil | 703 itemButton.previousItem = nil |
705 itemButton:Hide() | 704 itemButton:Hide() |
706 end | 705 end |
707 else | 706 elseif itemButton:IsVisible() then |
708 print(' |cFFFF0088missing block data', itemButton:GetName()) | 707 print(' |cFFFF0088hiding unwatched quest button', itemButton:GetName()) |
709 itemButton.previousItem = nil | 708 itemButton.previousItem = nil |
710 itemButton:Hide() | 709 itemButton:Hide() |
710 else | |
711 print(' |cFFBBBBBBignoring hidden log quest button', itemButton:GetName()) | |
711 end | 712 end |
712 end | 713 end |
713 end | 714 end |
714 | 715 |
715 mod.UpdateBlockAction = function (block, itemButton) | 716 mod.UpdateBlockAction = function (block, itemButton) |