Mercurial > wow > worldplan
comparison FilterBar.lua @ 59:bc09961d5a98
fix attempts for lingering quest text and filter bar data
| author | Nenue |
|---|---|
| date | Wed, 01 Feb 2017 17:44:20 -0500 |
| parents | 54aa7f8ebca8 |
| children | 31de7e9e7849 |
comparison
equal
deleted
inserted
replaced
| 58:68a695d725ed | 59:bc09961d5a98 |
|---|---|
| 198 info.questList = info.questList or {} | 198 info.questList = info.questList or {} |
| 199 wipe(info.questList) | 199 wipe(info.questList) |
| 200 | 200 |
| 201 for questID, pin in pairs(db.QuestsByID) do | 201 for questID, pin in pairs(db.QuestsByID) do |
| 202 --print(pin.worldQuestType ~= LE_QUEST_TAG_TYPE_PROFESSION, (db.Config.ShowAllProfessionQuests or pin.isKnownProfession)) | 202 --print(pin.worldQuestType ~= LE_QUEST_TAG_TYPE_PROFESSION, (db.Config.ShowAllProfessionQuests or pin.isKnownProfession)) |
| 203 if (pin.worldQuestType ~= LE_QUEST_TAG_TYPE_PROFESSION) or (db.Config.ShowAllProfessionQuests or pin.isKnownProfession) then | 203 if pin.used then |
| 204 --print(pin.title) | 204 |
| 205 if not info.filterKey then | 205 if (pin.worldQuestType ~= LE_QUEST_TAG_TYPE_PROFESSION) or (db.Config.ShowAllProfessionQuests or pin.isKnownProfession) then |
| 206 if mapQuests[questID] then | 206 --print(pin.title) |
| 207 if not info.filterKey then | |
| 208 if mapQuests[questID] then | |
| 209 numQuestsHere = numQuestsHere + 1 | |
| 210 end | |
| 211 numQuestsTotal = numQuestsTotal + 1 | |
| 212 elseif pin[info.filterKey] == info.filterValue then | |
| 213 if mapQuests[questID] then | |
| 207 numQuestsHere = numQuestsHere + 1 | 214 numQuestsHere = numQuestsHere + 1 |
| 215 tinsert(info.questList, pin) | |
| 216 end | |
| 217 numQuestsTotal = numQuestsTotal + 1 | |
| 208 end | 218 end |
| 209 numQuestsTotal = numQuestsTotal + 1 | 219 end |
| 210 elseif pin[info.filterKey] == info.filterValue then | 220 end |
| 211 if mapQuests[questID] then | 221 |
| 212 numQuestsHere = numQuestsHere + 1 | |
| 213 tinsert(info.questList, pin) | |
| 214 end | |
| 215 numQuestsTotal = numQuestsTotal + 1 | |
| 216 end | |
| 217 end | |
| 218 end | 222 end |
| 219 --print('num here', numQuestsHere, numQuestsTotal) | 223 --print('num here', numQuestsHere, numQuestsTotal) |
| 220 info.totalQuests = maxQuests | 224 info.totalQuests = numQuestsTotal |
| 221 | 225 |
| 222 --print(tostring(index).. ' ("'..tostring(info.label)..'" f('.. tostring(info.filterKey).. '='..tostring(info.filterValue) .. '), '..tostring(numQuests)..')') | 226 --print(tostring(index).. ' ("'..tostring(info.label)..'" f('.. tostring(info.filterKey).. '='..tostring(info.filterValue) .. '), '..tostring(numQuests)..')') |
| 223 | 227 |
| 224 if numQuestsTotal >= 1 then | 228 if numQuestsTotal >= 1 then |
| 225 numHeaders = numHeaders + 1 | 229 numHeaders = numHeaders + 1 |
