Rename Events to Messages.

This commit is contained in:
Major-
2014-08-08 13:50:56 +01:00
parent 1ecdedd2e8
commit 3931b9eb48
467 changed files with 5032 additions and 5057 deletions
+3 -3
View File
@@ -11,9 +11,9 @@ ANIMATIONS = {
666 => Animation::GLASS_WALL, 168 => Animation::YES, 13383 => Animation::GOBLIN_BOW
}
# Intercept the ButtonEvent
on :event, :button do |ctx, player, event|
anim = ANIMATIONS[event.widget_id]
# Intercept the button message.
on :message, :button do |ctx, player, message|
anim = ANIMATIONS[message.widget_id]
unless anim == nil
player.play_animation(anim)
ctx.break_handler_chain