Mercurial > wow > worldplan
comparison WorldQuests.lua @ 43:77c2ffb5c7f5 v1.0-rc11
- Removed possible refresh loop occurring in non-BrokenIsle zones
author | Nenue |
---|---|
date | Sun, 25 Dec 2016 15:47:17 -0500 |
parents | 79e5e96e5f18 |
children | db570c6a0ffb |
comparison
equal
deleted
inserted
replaced
42:f494175a2d15 | 43:77c2ffb5c7f5 |
---|---|
39 callback(pin) | 39 callback(pin) |
40 end | 40 end |
41 end) | 41 end) |
42 end | 42 end |
43 | 43 |
44 function WorldQuests:OnShow() | |
45 self:Refresh(true) | |
46 end | |
47 | |
48 function WorldQuests:OnUpdate(sinceLast) | 44 function WorldQuests:OnUpdate(sinceLast) |
49 if self.filtersDirty or self.isStale then | 45 if self.filtersDirty or self.isStale then |
50 self:Refresh() | 46 self:Refresh() |
51 end | 47 end |
52 end | 48 end |
105 WorldMapPOIFrame = _G.WorldMapPOIFrame | 101 WorldMapPOIFrame = _G.WorldMapPOIFrame |
106 | 102 |
107 end | 103 end |
108 | 104 |
109 function WorldQuests:OnMapInfo() | 105 function WorldQuests:OnMapInfo() |
110 self:Refresh(true) | 106 if self:IsVisible() then |
107 self:Refresh() | |
108 else | |
109 self.isStale = true | |
110 end | |
111 end | 111 end |
112 | 112 |
113 function WorldQuests:OnEvent (event, ...) | 113 function WorldQuests:OnEvent (event, ...) |
114 | 114 |
115 print('|cFFFFFF00'..self:GetName()..':OnEvent() '..event..'|r', GetTime(), ...) | 115 print('|cFFFFFF00'..self:GetName()..':OnEvent() '..event..'|r', GetTime(), ...) |