Mercurial > wow > buffalo2
comparison Modules/ArtifactPower.lua @ 115:8c94bee4fdfc
- AddHandler simplified
- Centralized combat start/stop hooks
- WorldState removed
| author | Nenue |
|---|---|
| date | Tue, 28 Mar 2017 07:02:26 -0400 |
| parents | 7c77fde36287 |
| children | ddfe19d70a34 |
comparison
equal
deleted
inserted
replaced
| 114:6748c98a6c6c | 115:8c94bee4fdfc |
|---|---|
| 11 cache = {}, | 11 cache = {}, |
| 12 fishingCache = {}, | 12 fishingCache = {}, |
| 13 scanQueue = {}, | 13 scanQueue = {}, |
| 14 ItemButtons = {}, | 14 ItemButtons = {}, |
| 15 anchorPoint = 'TOP', | 15 anchorPoint = 'TOP', |
| 16 anchorPriority = 2, | |
| 16 anchorFrom = 'TOP', | 17 anchorFrom = 'TOP', |
| 18 moduleName = 'Artifactor', | |
| 19 HideCombat = true | |
| 17 } | 20 } |
| 18 local defaultSettings = { | 21 local defaultSettings = { |
| 19 firstUse = true, | 22 firstUse = true, |
| 20 autoHide = true, | 23 autoHide = true, |
| 21 } | 24 } |
| 51 self:RegisterEvent('ARTIFACT_XP_UPDATE') -- when artifact xp has changed (but not necessarily data) | 54 self:RegisterEvent('ARTIFACT_XP_UPDATE') -- when artifact xp has changed (but not necessarily data) |
| 52 self:RegisterEvent('PLAYER_REGEN_ENABLED') | 55 self:RegisterEvent('PLAYER_REGEN_ENABLED') |
| 53 self:RegisterEvent('PLAYER_REGEN_DISABLED') | 56 self:RegisterEvent('PLAYER_REGEN_DISABLED') |
| 54 self:RegisterEvent('PLAYER_ENTERING_WORLD') | 57 self:RegisterEvent('PLAYER_ENTERING_WORLD') |
| 55 self:RegisterEvent('ITEM_LOCK_CHANGED') -- use to clear bag slot cache data | 58 self:RegisterEvent('ITEM_LOCK_CHANGED') -- use to clear bag slot cache data |
| 56 Veneer:AddHandler(self, self.anchorPoint, 2) | 59 Veneer:AddHandler(self) |
| 57 SLASH_VENEER_AP1 = "/vap" | 60 SLASH_VENEER_AP1 = "/vap" |
| 58 SLASH_VENEER_AP2 = "/veneerap" | 61 SLASH_VENEER_AP2 = "/veneerap" |
| 59 SlashCmdList.VENEER_AP = function(arg) | 62 SlashCmdList.VENEER_AP = function(arg) |
| 60 if arg == 'fishing' then | 63 if arg == 'fishing' then |
| 61 if VeneerData.ArtifactPower.EnableFishing then | 64 if VeneerData.ArtifactPower.EnableFishing then |
