Mercurial > wow > worldplan
comparison FilterBar.lua @ 69:31de7e9e7849
stop hiding pins when the timeleft returns 0; use C_TQ.IsActive
author | Nenue |
---|---|
date | Wed, 05 Apr 2017 11:36:06 -0400 |
parents | bc09961d5a98 |
children | 26d736fbfe67 |
comparison
equal
deleted
inserted
replaced
68:cce68795f955 | 69:31de7e9e7849 |
---|---|
76 function Module:OnLoad() | 76 function Module:OnLoad() |
77 self:SetParent(WorldMapFrame.UIElementsFrame) | 77 self:SetParent(WorldMapFrame.UIElementsFrame) |
78 self:ClearAllPoints() | 78 self:ClearAllPoints() |
79 self:SetPoint('TOPRIGHT') | 79 self:SetPoint('TOPRIGHT') |
80 WorldPlan:AddHandler(self) | 80 WorldPlan:AddHandler(self) |
81 for index, info in ipairs(db.DefaultFilters) do | 81 --[[for index, info in ipairs(db.DefaultFilters) do |
82 info.zone = db.DefaultFilterType | 82 info.zone = db.DefaultFilterType |
83 info.continent = db.DefaultFilterType | 83 info.continent = db.DefaultFilterType |
84 info.pinMask = "Interface\\Minimap\\UI-Minimap-Background" | 84 info.pinMask = "Interface\\Minimap\\UI-Minimap-Background" |
85 WorldPlan:AddTypeInfo(self,index, info) | 85 WorldPlan:AddTypeInfo(self,index, info) |
86 end | 86 end |
87 --]] | |
87 end | 88 end |
88 | 89 |
89 | 90 |
90 function Module:OnEvent(event, arg) | 91 function Module:OnEvent(event, arg) |
91 print('|cFF00FF88'..self:GetName()..':OnEvent()', event) | 92 print('|cFF00FF88'..self:GetName()..':OnEvent()', event) |
163 --{ filterKey= 'worldQuestType', filterValue = LE_QUEST_TAG_TYPE_PROFESSION, label = 'Profession', texture = "Interface\\LFGFRAME\\UI-LFR-PORTRAIT", }, | 164 --{ filterKey= 'worldQuestType', filterValue = LE_QUEST_TAG_TYPE_PROFESSION, label = 'Profession', texture = "Interface\\LFGFRAME\\UI-LFR-PORTRAIT", }, |
164 end | 165 end |
165 end | 166 end |
166 | 167 |
167 function Module:Reset() | 168 function Module:Reset() |
168 self.pinLayout = self:GetTypeInfo(255) | |
169 self:GetFilters() | 169 self:GetFilters() |
170 end | 170 end |
171 | 171 |
172 function Module:Refresh() | 172 function Module:Refresh() |
173 self:GetFilters() | 173 self:GetFilters() |