summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-10-09 17:14:13 +0300
committerAndrei Karas <akaras@inbox.ru>2013-10-09 17:14:13 +0300
commit938b8720351610e0b6188fce8219ddb3d7bd3cf6 (patch)
tree0c3881b98e9e6d52488316b7b815b1a2947b1f7b /src
parent1b92142af3d5512722e8c5474fbbd423d431b146 (diff)
downloadplus-938b8720351610e0b6188fce8219ddb3d7bd3cf6.tar.gz
plus-938b8720351610e0b6188fce8219ddb3d7bd3cf6.tar.bz2
plus-938b8720351610e0b6188fce8219ddb3d7bd3cf6.tar.xz
plus-938b8720351610e0b6188fce8219ddb3d7bd3cf6.zip
Add help button into right top corner.
Diffstat (limited to 'src')
-rw-r--r--src/client.cpp18
1 files changed, 18 insertions, 0 deletions
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)
{