diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-10-09 17:14:13 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-10-09 17:14:13 +0300 |
commit | 938b8720351610e0b6188fce8219ddb3d7bd3cf6 (patch) | |
tree | 0c3881b98e9e6d52488316b7b815b1a2947b1f7b /src | |
parent | 1b92142af3d5512722e8c5474fbbd423d431b146 (diff) | |
download | manaplus-938b8720351610e0b6188fce8219ddb3d7bd3cf6.tar.gz manaplus-938b8720351610e0b6188fce8219ddb3d7bd3cf6.tar.bz2 manaplus-938b8720351610e0b6188fce8219ddb3d7bd3cf6.tar.xz manaplus-938b8720351610e0b6188fce8219ddb3d7bd3cf6.zip |
Add help button into right top corner.
Diffstat (limited to 'src')
-rw-r--r-- | src/client.cpp | 18 |
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) { |