diff options
author | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2025-02-17 20:58:47 +0100 |
---|---|---|
committer | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2025-02-21 15:47:59 +0100 |
commit | 2f5c1467be6f46de659763e90c5d209c63e320b2 (patch) | |
tree | 41befd7edabc372a64639a76074f4f781dfb9037 /src/gui | |
parent | b57e51ff732c93808aa844c511b87decc533237d (diff) | |
download | mana-2f5c1467be6f46de659763e90c5d209c63e320b2.tar.gz mana-2f5c1467be6f46de659763e90c5d209c63e320b2.tar.bz2 mana-2f5c1467be6f46de659763e90c5d209c63e320b2.tar.xz mana-2f5c1467be6f46de659763e90c5d209c63e320b2.zip |
Merged AnimatedSprite into Sprite
With AnimatedSprite being the only implementation of the Sprite
interface, there was no longer a point in separating these.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/ministatuswindow.cpp | 6 | ||||
-rw-r--r-- | src/gui/ministatuswindow.h | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/gui/ministatuswindow.cpp b/src/gui/ministatuswindow.cpp index 8172189b..534a5c42 100644 --- a/src/gui/ministatuswindow.cpp +++ b/src/gui/ministatuswindow.cpp @@ -21,10 +21,10 @@ #include "gui/ministatuswindow.h" -#include "animatedsprite.h" #include "configuration.h" #include "graphics.h" #include "playerinfo.h" +#include "sprite.h" #include "statuseffect.h" #include "gui/gui.h" @@ -95,7 +95,7 @@ MiniStatusWindow::MiniStatusWindow(): addMouseListener(this); } -void MiniStatusWindow::setIcon(int index, AnimatedSprite *sprite) +void MiniStatusWindow::setIcon(int index, Sprite *sprite) { if (index >= (int) mIcons.size()) mIcons.resize(index + 1); @@ -168,7 +168,7 @@ void MiniStatusWindow::event(Event::Channel channel, effect->deliverMessage(); effect->playSFX(); - AnimatedSprite *sprite = effect->getIcon(); + Sprite *sprite = effect->getIcon(); if (!sprite) { diff --git a/src/gui/ministatuswindow.h b/src/gui/ministatuswindow.h index 9400b661..b496fb00 100644 --- a/src/gui/ministatuswindow.h +++ b/src/gui/ministatuswindow.h @@ -27,7 +27,7 @@ #include <vector> -class AnimatedSprite; +class Sprite; class Graphics; class ProgressBar; class TextPopup; @@ -60,7 +60,7 @@ class MiniStatusWindow : public Popup, public EventListener /** * Sets one of the icons. */ - void setIcon(int index, AnimatedSprite *sprite); + void setIcon(int index, Sprite *sprite); void eraseIcon(int index); @@ -73,7 +73,7 @@ class MiniStatusWindow : public Popup, public EventListener TextPopup *mTextPopup; std::vector<int> mStatusEffectIcons; - std::vector<AnimatedSprite *> mIcons; + std::vector<Sprite *> mIcons; }; extern MiniStatusWindow *miniStatusWindow; |