diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-03-08 22:08:22 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-03-08 22:19:55 +0300 |
commit | a149a49aa167cb7122afc6b12bdb4af9fa90394c (patch) | |
tree | 4e2baf673cda888b94d1d640a055c6046105ffa9 /src/client.cpp | |
parent | 9247c5a23757e01ef7ee91dd5655fcab177e5e6d (diff) | |
download | mv-a149a49aa167cb7122afc6b12bdb4af9fa90394c.tar.gz mv-a149a49aa167cb7122afc6b12bdb4af9fa90394c.tar.bz2 mv-a149a49aa167cb7122afc6b12bdb4af9fa90394c.tar.xz mv-a149a49aa167cb7122afc6b12bdb4af9fa90394c.zip |
Add about button.
Diffstat (limited to 'src/client.cpp')
-rw-r--r-- | src/client.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/client.cpp b/src/client.cpp index a462f8603..2f2341ea7 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -234,6 +234,7 @@ Client::Client(const Options &options) : mSetupButton(nullptr), mVideoButton(nullptr), mHelpButton(nullptr), + mAboutButton(nullptr), mThemesButton(nullptr), mPerfomanceButton(nullptr), #ifdef ANDROID @@ -1146,6 +1147,9 @@ int Client::gameExec() ADDBUTTON(mThemesButton, new Button(mDesktop, // TRANSLATORS: theme tab quick button _("Theme"), "Themes", this)) + ADDBUTTON(mAboutButton, new Button(mDesktop, + // TRANSLATORS: theme tab quick button + _("About"), "about", this)) ADDBUTTON(mHelpButton, new Button(mDesktop, // TRANSLATORS: theme tab quick button _("Help"), "help", this)) @@ -1579,6 +1583,8 @@ int Client::gameExec() mVideoButton = nullptr; delete mThemesButton; mThemesButton = nullptr; + delete mAboutButton; + mAboutButton = nullptr; delete mHelpButton; mHelpButton = nullptr; delete mPerfomanceButton; @@ -1869,6 +1875,11 @@ void Client::action(const ActionEvent &event) inputManager.executeAction(Input::KEY_WINDOW_HELP); return; } + else if (eventId == "about") + { + inputManager.executeAction(Input::KEY_WINDOW_ABOUT); + return; + } else if (eventId == "Video") { tab = "Video"; |