diff options
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"; |