1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 |
ZO_GROUP_FINDER_SEARCH_STATES =
{
NONE = 1 ,
QUEUED = 2 ,
WAITING = 3 ,
COMPLETE = 4 ,
}
end
-- Don't update when the search complete event is not for our current search or we are waiting to do a new search immediately
if self . searchState == ZO_GROUP_FINDER_SEARCH_STATES . QUEUED or searchId ~= self . currentSearchId then
return
end
local FORCE_UPDATE = true
end
end
end
end
end
--TODO GroupFinder: Verify which additional events we need to listen for
EVENT_MANAGER : RegisterForEvent ( "GroupFinder_Search_Manager" , EVENT_GROUP_FINDER_SEARCH_COMPLETE , OnGroupFinderSearchResults )
EVENT_MANAGER : RegisterForEvent ( "GroupFinder_Search_Manager" , EVENT_GROUP_FINDER_SEARCH_UPDATED , OnGroupFinderSearchResultsUpdated )
EVENT_MANAGER : RegisterForEvent ( "GroupFinder_Search_Manager" , EVENT_GROUP_FINDER_SEARCH_COOLDOWN_UPDATE , OnGroupFinderSearchCooldownUpdate )
end
else
end
end
if searchId ~= nil then
end
end
--Do not populate the search results if there is a search in progress
end
end
end
end
end
end
end
return self . searchState == ZO_GROUP_FINDER_SEARCH_STATES . NONE or self . searchState == ZO_GROUP_FINDER_SEARCH_STATES . COMPLETE
end
end
|