1
0
Fork 0

Use CURRENCY_DISPLAY_UPDATE to track Valor Point spending.

This commit is contained in:
Andrew Tomaka 2011-12-06 19:13:13 -05:00
parent da5111170f
commit 5f7cfc7610

View file

@ -256,6 +256,7 @@ function core:OnEnable()
self:RegisterEvent('LFG_LOCK_INFO_RECEIVED')
self:RegisterEvent('UPDATE_INSTANCE_INFO')
self:RegisterEvent('CURRENCY_DISPLAY_UPDATE')
self:RegisterEvent('CHAT_MSG_CURRENCY')
self:RegisterEvent('INSTANCE_ENCOUNTER_ENGAGE_UNIT')
end
@ -294,6 +295,10 @@ function core:LFG_LOCK_INFO_RECEIVED()
core:UpdateLFRLockouts()
end
function core:CURRENCY_DISPLAY_UPDATE()
core:UpdateValorPoints()
end
function core:CHAT_MSG_CURRENCY()
RequestRaidInfo()
RequestLFDPlayerLockInfo()
@ -386,7 +391,6 @@ function core:ResetLFRLockouts()
end
end
function core:DrawInstanceOptions()
-- Redraw our instance options everytime they are updated.
options.args.instances.args = {