diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-02-16 02:43:31 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-02-16 02:43:31 +0300 |
commit | cbf5a66ac0d5cbcd2f0058b9e326ef9b6d56f23b (patch) | |
tree | 5acc50addb37120aa7719e52a2fa0d451118fb74 /src/gui/statuswindow.cpp | |
parent | 572c2e0048400388c71b962b74b9a443a0b076a0 (diff) | |
download | manaplus-cbf5a66ac0d5cbcd2f0058b9e326ef9b6d56f23b.tar.gz manaplus-cbf5a66ac0d5cbcd2f0058b9e326ef9b6d56f23b.tar.bz2 manaplus-cbf5a66ac0d5cbcd2f0058b9e326ef9b6d56f23b.tar.xz manaplus-cbf5a66ac0d5cbcd2f0058b9e326ef9b6d56f23b.zip |
Add race name to status and debug windows.
Diffstat (limited to 'src/gui/statuswindow.cpp')
-rw-r--r-- | src/gui/statuswindow.cpp | 8 |
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 |