From 938b8720351610e0b6188fce8219ddb3d7bd3cf6 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 9 Oct 2013 17:14:13 +0300 Subject: Add help button into right top corner. --- src/client.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src/client.cpp') diff --git a/src/client.cpp b/src/client.cpp index a18c2c0f7..36651b01e 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -1109,6 +1109,9 @@ int Client::gameExec() ADDBUTTON(mThemesButton, new Button(mDesktop, // TRANSLATORS: theme tab quick button _("Theme"), "Themes", this)) + ADDBUTTON(mThemesButton, new Button(mDesktop, + // TRANSLATORS: theme tab quick button + _("Help"), "help", this)) #ifdef ANDROID ADDBUTTON(mCloseButton, new Button(mDesktop, // TRANSLATORS: close quick button @@ -1796,15 +1799,30 @@ void Client::action(const gcn::ActionEvent &event) return; } if (eventId == "Setup") + { tab.clear(); + } + else if (eventId == "help") + { + inputManager.executeAction(Input::KEY_WINDOW_HELP); + return; + } else if (eventId == "Video") + { tab = "Video"; + } else if (eventId == "Themes") + { tab = "Theme"; + } else if (eventId == "Perfomance") + { tab = "Perfomance"; + } else + { return; + } if (setupWindow) { -- cgit v1.2.3-60-g2f50