summaryrefslogtreecommitdiff
path: root/src/gui/playerbox.cpp
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2009-01-26 16:25:55 -0700
committerIra Rice <irarice@gmail.com>2009-01-26 16:25:55 -0700
commit368a7d109248fe286aad278e744192746381df9c (patch)
tree2a3c1fd8b00772e35e16118abb173daa5f1502e5 /src/gui/playerbox.cpp
parent63126a5dd5e6cf9acaf9b2114e8ac7213939d69f (diff)
downloadmana-368a7d109248fe286aad278e744192746381df9c.tar.gz
mana-368a7d109248fe286aad278e744192746381df9c.tar.bz2
mana-368a7d109248fe286aad278e744192746381df9c.tar.xz
mana-368a7d109248fe286aad278e744192746381df9c.zip
Created a new equipment screen, which is loosely related to the
equipment screen on TMW's mainline client. Also fixed up the player box so that it can be used in game as well, which could potentially be useful in the future for making future equipment dialog changes. Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/gui/playerbox.cpp')
-rw-r--r--src/gui/playerbox.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/gui/playerbox.cpp b/src/gui/playerbox.cpp
index e8c19ad4..c22d407c 100644
--- a/src/gui/playerbox.cpp
+++ b/src/gui/playerbox.cpp
@@ -23,6 +23,7 @@
#include "playerbox.h"
+#include "../animatedsprite.h"
#include "../configuration.h"
#include "../graphics.h"
#include "../player.h"
@@ -85,7 +86,13 @@ void PlayerBox::draw(gcn::Graphics *graphics)
bs = getFrameSize();
x = getWidth() / 2 - 16 + bs;
y = getHeight() / 2 + bs;
- mPlayer->draw(static_cast<Graphics*>(graphics), x, y);
+ for (int i = 0; i < Being::VECTOREND_SPRITE; i++)
+ {
+ if (mPlayer->getSprite(i) != NULL)
+ {
+ mPlayer->getSprite(i)->draw(static_cast<Graphics*>(graphics), x, y);
+ }
+ }
}
}