Adding OnUsed and OnUnused messages to AceEvent-3.0 #315


  • Enhancment
  • Accepted
Open
Assigned to nevcairiel
  • Adirelle created this issue Nov 3, 2012

    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 closed issue Dec 4, 2012
  • nevcairiel removed a tag Fixed Dec 4, 2012
  • nevcairiel added a tag Accepted Dec 4, 2012
  • nevcairiel reopened issue Dec 4, 2012

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