Mercurial > wow > worldplan
comparison FilterBar.lua @ 82:26d736fbfe67 v1.4.4
- Fixed filter bar issues
| author | Nenue |
|---|---|
| date | Mon, 10 Apr 2017 17:29:28 -0400 |
| parents | 31de7e9e7849 |
| children | a12f782571c5 |
comparison
equal
deleted
inserted
replaced
| 81:2a86d6584ddd | 82:26d736fbfe67 |
|---|---|
| 182 local blocks = self.buttons | 182 local blocks = self.buttons |
| 183 | 183 |
| 184 local relativeFrame = self | 184 local relativeFrame = self |
| 185 | 185 |
| 186 local numHeaders = 0 | 186 local numHeaders = 0 |
| 187 print('|cFF00FF88'..self:GetName()..':Update()|r', 'currentMap=',WorldPlan.currentMapID) | 187 print('|cFF00FF88'..self:GetName()..':Update()|r', 'currentMap=',db.currentMapID) |
| 188 | 188 |
| 189 | 189 |
| 190 local layout = db.DefaultFilterType | 190 local layout = db.DefaultFilterType |
| 191 local borderWidth = layout.iconWidth + (layout.borderWidth * 2) | 191 local borderWidth = layout.iconWidth + (layout.borderWidth * 2) |
| 192 local highlightWidth = borderWidth + (layout.highlightWidth * 2) | 192 local highlightWidth = borderWidth + (layout.highlightWidth * 2) |
| 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.used then | 203 if pin.used then |
| 204 | 204 |
| 205 if (pin.worldQuestType ~= LE_QUEST_TAG_TYPE_PROFESSION) or (db.Config.ShowAllProfessionQuests or pin.isKnownProfession) then | 205 if (pin.worldQuestType ~= LE_QUEST_TAG_TYPE_PROFESSION) or (db.Config.ShowAllProfessionQuests or pin.isKnownProfession) then |
| 206 --print(pin.title) | 206 |
| 207 if not info.filterKey then | 207 if not info.filterKey then |
| 208 if mapQuests[questID] then | 208 if mapQuests[questID] then |
| 209 numQuestsHere = numQuestsHere + 1 | 209 numQuestsHere = numQuestsHere + 1 |
| 210 end | 210 end |
| 211 numQuestsTotal = numQuestsTotal + 1 | 211 numQuestsTotal = numQuestsTotal + 1 |
| 212 elseif pin[info.filterKey] == info.filterValue then | 212 elseif pin[info.filterKey] == info.filterValue then |
| 213 print(pin.title, mapQuests[questID]) | |
| 213 if mapQuests[questID] then | 214 if mapQuests[questID] then |
| 214 numQuestsHere = numQuestsHere + 1 | 215 numQuestsHere = numQuestsHere + 1 |
| 215 tinsert(info.questList, pin) | 216 tinsert(info.questList, pin) |
| 216 end | 217 end |
| 217 numQuestsTotal = numQuestsTotal + 1 | 218 numQuestsTotal = numQuestsTotal + 1 |
