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