From 1e1f619b9ae5aa26058c499c988f45d1fb1b6d53 Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Sat, 9 Apr 2011 00:11:54 +0200 Subject: Moved Channels to Mana::Event::Channel Acked-by: Jared Adams --- src/gui/ministatus.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/gui/ministatus.cpp') diff --git a/src/gui/ministatus.cpp b/src/gui/ministatus.cpp index 8093a893..5791b4fb 100644 --- a/src/gui/ministatus.cpp +++ b/src/gui/ministatus.cpp @@ -47,7 +47,7 @@ extern volatile int tick_time; MiniStatusWindow::MiniStatusWindow(): Popup("MiniStatus") { - listen(CHANNEL_ATTRIBUTES); + listen(Mana::Event::AttributesChannel); mHpBar = new ProgressBar(0, 100, 20, Theme::PROG_HP); StatusWindow::updateHPBar(mHpBar); @@ -119,9 +119,10 @@ void MiniStatusWindow::drawIcons(Graphics *graphics) } } -void MiniStatusWindow::event(Channels channel, const Mana::Event &event) +void MiniStatusWindow::event(Mana::Event::Channel channel, + const Mana::Event &event) { - if (channel == CHANNEL_ATTRIBUTES) + if (channel == Mana::Event::AttributesChannel) { if (event.getType() == Mana::Event::UpdateAttribute) { @@ -140,7 +141,7 @@ void MiniStatusWindow::event(Channels channel, const Mana::Event &event) } } } - else if (channel == CHANNEL_ACTORSPRITE) + else if (channel == Mana::Event::ActorSpriteChannel) { if (event.getType() == Mana::Event::UpdateStatusEffect) { -- cgit v1.2.3-70-g09d2