summaryrefslogtreecommitdiff
path: root/src/gui/statuswindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-02-16 02:43:31 +0300
committerAndrei Karas <akaras@inbox.ru>2012-02-16 02:43:31 +0300
commitcbf5a66ac0d5cbcd2f0058b9e326ef9b6d56f23b (patch)
tree5acc50addb37120aa7719e52a2fa0d451118fb74 /src/gui/statuswindow.cpp
parent572c2e0048400388c71b962b74b9a443a0b076a0 (diff)
downloadManaVerse-cbf5a66ac0d5cbcd2f0058b9e326ef9b6d56f23b.tar.gz
ManaVerse-cbf5a66ac0d5cbcd2f0058b9e326ef9b6d56f23b.tar.bz2
ManaVerse-cbf5a66ac0d5cbcd2f0058b9e326ef9b6d56f23b.tar.xz
ManaVerse-cbf5a66ac0d5cbcd2f0058b9e326ef9b6d56f23b.zip
Add race name to status and debug windows.
Diffstat (limited to 'src/gui/statuswindow.cpp')
-rw-r--r--src/gui/statuswindow.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gui/statuswindow.cpp b/src/gui/statuswindow.cpp
index 25403e544..1964b974d 100644
--- a/src/gui/statuswindow.cpp
+++ b/src/gui/statuswindow.cpp
@@ -135,7 +135,13 @@ StatusWindow::StatusWindow():
setSaveVisible(true);
setStickyButtonLock(true);
setDefaultSize((windowContainer->getWidth() - 480) / 2,
- (windowContainer->getHeight() - 500) / 2, 480, 500);
+ (windowContainer->getHeight() - 500) / 2, 480, 500);
+
+ if (player_node && !player_node->getRaceName().empty())
+ {
+ setCaption(strprintf("%s (%s)", player_node->getName().c_str(),
+ player_node->getRaceName().c_str()));
+ }
// ----------------------
// Status Part