summaryrefslogtreecommitdiff
path: root/src/gui/widgets/characterdisplay.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-11 19:28:57 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-11 19:28:57 +0300
commit87c59212f8590a8dd72fac3e320fcb2ada781355 (patch)
tree198d627c44f1164140659827a5c782d30bec375b /src/gui/widgets/characterdisplay.cpp
parent02e91411eb9961e95f856bd717d6ca0d8ec0e435 (diff)
downloadmanaverse-87c59212f8590a8dd72fac3e320fcb2ada781355.tar.gz
manaverse-87c59212f8590a8dd72fac3e320fcb2ada781355.tar.bz2
manaverse-87c59212f8590a8dd72fac3e320fcb2ada781355.tar.xz
manaverse-87c59212f8590a8dd72fac3e320fcb2ada781355.zip
Move player attributes into separate file.
Diffstat (limited to 'src/gui/widgets/characterdisplay.cpp')
-rw-r--r--src/gui/widgets/characterdisplay.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/widgets/characterdisplay.cpp b/src/gui/widgets/characterdisplay.cpp
index 941249560..85480db3a 100644
--- a/src/gui/widgets/characterdisplay.cpp
+++ b/src/gui/widgets/characterdisplay.cpp
@@ -24,6 +24,8 @@
#include "units.h"
+#include "being/attributes.h"
+
#include "gui/gui.h"
#include "gui/windows/charselectdialog.h"
@@ -133,9 +135,9 @@ void CharacterDisplay::mouseMoved(MouseEvent &event A_UNUSED)
{
mPopup->show(mouseX, mouseY, name, strprintf(_("Level: %u"),
static_cast<uint32_t>(
- mCharacter->data.mAttributes[PlayerInfo::LEVEL])),
+ mCharacter->data.mAttributes[Attributes::LEVEL])),
strprintf(_("Money: %s"), Units::formatCurrency(
- mCharacter->data.mAttributes[PlayerInfo::MONEY]).c_str()));
+ mCharacter->data.mAttributes[Attributes::MONEY]).c_str()));
}
else
{