Mercurial > wow > buffalo2
comparison Modules/WorldState.lua @ 97:5476337198ec
- apply default anchors when docking modules
- Arifact Power tracker: totals AP items in bags and bank, and forecasts progress on each weapon. Requires user to shift-click each weapon at least once to get initial XP data.
| author | Nenue |
|---|---|
| date | Mon, 16 Jan 2017 20:24:12 -0500 |
| parents | bb38bc0e787f |
| children | dadddb8a551f |
comparison
equal
deleted
inserted
replaced
| 96:bb38bc0e787f | 97:5476337198ec |
|---|---|
| 2 -- WorldState.lua | 2 -- WorldState.lua |
| 3 -- Created: 10/7/2016 10:55 PM | 3 -- Created: 10/7/2016 10:55 PM |
| 4 -- %file-revision% | 4 -- %file-revision% |
| 5 -- | 5 -- |
| 6 | 6 |
| 7 local print = DEVIAN_WORKSPACE and function(...) print('VnWorldState', ...) end or nop | |
| 7 local WorldStateBlockMixin = {} | 8 local WorldStateBlockMixin = {} |
| 8 VeneerOrderHallMixin = { | 9 VeneerOrderHallMixin = { |
| 9 anchorPoint = 'TOP', | 10 anchorPoint = 'TOP', |
| 10 anchorFrom = 'TOP', | 11 anchorFrom = 'TOP', |
| 11 anchorX = 0, | 12 anchorX = 0, |
| 12 anchorY = 0, | 13 anchorY = 0, |
| 13 addonTrigger = 'Blizzard_OrderHallUI', | 14 addonTrigger = 'Blizzard_OrderHallUI', |
| 14 addonFrame = 'OrderHallCommandBar', | 15 addonFrame = 'OrderHallCommandBar', |
| 15 } | 16 } |
| 17 | |
| 16 VeneerWorldStateHeadsUpMixin = { | 18 VeneerWorldStateHeadsUpMixin = { |
| 17 | |
| 18 } | 19 } |
| 19 | 20 |
| 20 VeneerWorldStateCurrencyMixin = { | 21 VeneerWorldStateCurrencyMixin = { |
| 21 } | 22 } |
| 22 VeneerWorldStateProgressMixin = { | 23 VeneerWorldStateProgressMixin = { |
| 25 VeneerWorldStateMixin = { | 26 VeneerWorldStateMixin = { |
| 26 maxHeight = 0, | 27 maxHeight = 0, |
| 27 detectedFrames = {}, | 28 detectedFrames = {}, |
| 28 anchorPoint = 'TOP', | 29 anchorPoint = 'TOP', |
| 29 } | 30 } |
| 30 local print = DEVIAN_WORKSPACE and function(...) print('VnWorldState', ...) end or nop | |
| 31 | 31 |
| 32 function VeneerWorldStateMixin:Reset() | 32 function VeneerWorldStateMixin:Reset() |
| 33 for i, frame in ipairs(self.modules) do | 33 for i, frame in ipairs(self.modules) do |
| 34 if frame.Reset then | 34 if frame.Reset then |
| 35 frame:Reset() | 35 frame:Reset() |
| 84 end | 84 end |
| 85 | 85 |
| 86 function VeneerWorldStateMixin:OnEvent(event, arg) | 86 function VeneerWorldStateMixin:OnEvent(event, arg) |
| 87 print(event, arg) | 87 print(event, arg) |
| 88 if event == 'PLAYER_ENTERING_WORLD' then | 88 if event == 'PLAYER_ENTERING_WORLD' then |
| 89 self:Show() | |
| 89 self:Update() | 90 self:Update() |
| 90 elseif event == 'PLAYER_REGEN_ENABLED' then | 91 elseif event == 'PLAYER_REGEN_ENABLED' then |
| 91 self:SetShown(true) | 92 self:SetShown(true) |
| 92 elseif event == 'PLAYER_REGEN_DISABLED' then | 93 elseif event == 'PLAYER_REGEN_DISABLED' then |
| 93 self:SetShown(false) | 94 self:SetShown(false) |
