Ace3

Addons
7,674,496 Downloads Last Updated: Aug 12, 2019 Game Version: 8.2.0

Adding OnUsed and OnUnused messages to AceEvent-3.0

#315 By  Adirelle

Created Nov 3, 2012 Updated --

Open
Assigned to  nevcairiel
Enhancment
Accepted

What is the enhancement in mind? How should it look and feel?

The idea is to have AceEvent-3.0 send messages when message are used on unused (based on CallbackHandler :OnUsed and :OnUnused hooks).

This would allow addons providing optional messages to setup appropriately.

Please provide any additional information below.

This could be implemented like this in AceEvent-3.0.lua :

function AceEvent.messages:OnUsed(_, message)
    self:Fire('AceEvent30_OnMessageUsed', message)
end

function AceEvent.messages:OnUnused(_, message)
    self:Fire('AceEvent30_OnMessageUnused', message)
end
Adirelle   added the tags
New
Enhancment
  Nov 3, 2012
nevcairiel   removed a tag
New
  Dec 4, 2012
nevcairiel   added a tag
Fixed
  Dec 4, 2012
nevcairiel   removed a tag
Fixed
  Dec 4, 2012
nevcairiel   added a tag
Accepted
  Dec 4, 2012

To post a comment, please login or register a new account.