diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-10-10 12:10:17 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-10-10 12:10:17 +0300 |
commit | 768a7e7499a95bb3ce14600e8050bcbbaaeed31f (patch) | |
tree | d2360b4606ccec34de01cf88431e2e4dcc85f567 | |
parent | 6f04e44cdc1dd00107c62418173a1ac71f4bd6b9 (diff) | |
download | manaplus-768a7e7499a95bb3ce14600e8050bcbbaaeed31f.tar.gz manaplus-768a7e7499a95bb3ce14600e8050bcbbaaeed31f.tar.bz2 manaplus-768a7e7499a95bb3ce14600e8050bcbbaaeed31f.tar.xz manaplus-768a7e7499a95bb3ce14600e8050bcbbaaeed31f.zip |
Fix help button before login to game.
-rw-r--r-- | src/client.cpp | 7 | ||||
-rw-r--r-- | src/client.h | 1 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/client.cpp b/src/client.cpp index 36651b01e..39c7beb52 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -1109,7 +1109,7 @@ int Client::gameExec() ADDBUTTON(mThemesButton, new Button(mDesktop, // TRANSLATORS: theme tab quick button _("Theme"), "Themes", this)) - ADDBUTTON(mThemesButton, new Button(mDesktop, + ADDBUTTON(mHelpButton, new Button(mDesktop, // TRANSLATORS: theme tab quick button _("Help"), "help", this)) #ifdef ANDROID @@ -1527,6 +1527,8 @@ int Client::gameExec() mVideoButton = nullptr; delete mThemesButton; mThemesButton = nullptr; + delete mHelpButton; + mHelpButton = nullptr; delete mPerfomanceButton; mPerfomanceButton = nullptr; delete mDesktop; @@ -2756,6 +2758,9 @@ void Client::resizeVideo(int width, int height, const bool always) x -= mThemesButton->getWidth() + mButtonSpacing; mThemesButton->setPosition(x, mButtonPadding); + + x -= mHelpButton->getWidth() + mButtonSpacing; + mHelpButton->setPosition(x, mButtonPadding); #ifdef ANDROID x -= mCloseButton->getWidth() + mButtonSpacing; mCloseButton->setPosition(x, mButtonPadding); diff --git a/src/client.h b/src/client.h index 65e02e006..c5fb1e505 100644 --- a/src/client.h +++ b/src/client.h @@ -412,6 +412,7 @@ private: Desktop *mDesktop; Button *mSetupButton; Button *mVideoButton; + Button *mHelpButton; Button *mThemesButton; Button *mPerfomanceButton; #ifdef ANDROID |