From 890fd4c9ceab089de688b00acf5163d795ccec4a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 10 Jan 2015 20:30:10 +0300 Subject: eathena: add packet SMSG_BEING_ATTRS 0x0b0a. --- src/gui/windows/statuswindow.cpp | 5 +++++ src/gui/windows/statuswindow.h | 2 ++ 2 files changed, 7 insertions(+) (limited to 'src/gui') diff --git a/src/gui/windows/statuswindow.cpp b/src/gui/windows/statuswindow.cpp index db03fbe70..d16262cc1 100644 --- a/src/gui/windows/statuswindow.cpp +++ b/src/gui/windows/statuswindow.cpp @@ -240,6 +240,11 @@ StatusWindow::StatusWindow() : PlayerInfo::getAttribute(Attributes::CHAR_POINTS))); mCharacterPointsLabel->adjustSize(); + updateLevelLabel(); +} + +void StatusWindow::updateLevelLabel() +{ if (localPlayer && localPlayer->isGM()) { // TRANSLATORS: status window label diff --git a/src/gui/windows/statuswindow.h b/src/gui/windows/statuswindow.h index 3bc5ab6f3..34462498b 100644 --- a/src/gui/windows/statuswindow.h +++ b/src/gui/windows/statuswindow.h @@ -93,6 +93,8 @@ class StatusWindow final : public Window, const int oldVal1, const int oldVal2) override final; + void updateLevelLabel(); + private: static std::string translateLetter(const char *const letters); static std::string translateLetter2(const std::string &letters); -- cgit v1.2.3-70-g09d2