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 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 |
end
-- Can be overridden
-- Context can be setup elsewhere in the code to be used here.
-- The TEXT_SEARCH_MANAGER function will override the filter target descriptors for a context that already exists.
--[[
Expected format for filterTargetDescriptors:
filterTargetDescriptors =
{
[<FilterTarget>] =
{
searchFilterList =
{
BACKGROUND_LIST_FILTER_TYPE_<FilterType>,
...
},
primaryKeys =
{
<List of keys> (ie. BAG_BACKPACK, BAG_BANK for FILTER_TARGET_BAG_SLOT or filterFunction() for filter like slottable in FILTER_TARGET_COLLECTIBLE)
},
},
}
TEXT_SEARCH_MANAGER:SetupContextTextSearch(self.searchContext, filterTargetDescriptor)
]] --
end
if currentSearchEditBox then
end
end
end
end
end
end
end
if previousContextActive then
end
if editBox then
end
if previousContextActive then
end
end
end
end
-- To be overridden
end
end
end
if searchEditBox then
end
return ""
end
end
end
end
end
end
end
end
end
end
return true
end
end
return false
else
return TEXT_SEARCH_MANAGER : IsDataInSearchTextResults ( self . searchContext , self . searchFilterType , dataId )
end
end
-- Return true for every result if we don't have a context search
return true
end |