Ace3

315 - Adding OnUsed and OnUnused messages to AceEvent-3.0

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
User When Change
Nevcairiel Dec 04, 2012 at 08:21 UTC
Nevcairiel Dec 04, 2012 at 08:20 UTC
Adirelle Nov 03, 2012 at 08:55 UTC Create

You must login to post a comment. Don't have an account? Register to get one!

Facts

Last updated
Dec 04, 2012
Reported
Nov 03, 2012
Status
Accepted - Problem reproduced / Need acknowledged.
Type
Enhancement - A change which is intended to better the project in some way
Priority
Medium - Normal priority.
Votes
0
Component
AceEvent-3.0

Reported by

Possible assignees