summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2005-09-16 10:50:06 +0000
committerDarkvater <darkvater@openttd.org>2005-09-16 10:50:06 +0000
commit4797310f91579b0cbf6cbce8a3ab85654d4d3f22 (patch)
tree5d0ad2fc343a294144bccf9dafa25a8a28f017d2
parent2525e1d507d1bccb2a5e296a921758998dd6b7be (diff)
downloadopenttd-4797310f91579b0cbf6cbce8a3ab85654d4d3f22.tar.xz
(svn r2958) - Feature: [ 1258971 ] Menu option to toggle console. Mainly for MacOS's or PDA's. (toholio)
-rw-r--r--lang/english.txt1
-rw-r--r--main_gui.c11
2 files changed, 7 insertions, 5 deletions
diff --git a/lang/english.txt b/lang/english.txt
index 150e53c5d..39d00c9ae 100644
--- a/lang/english.txt
+++ b/lang/english.txt
@@ -733,6 +733,7 @@ STR_TRANSPARENT_SIGNS :{SETX 12}Transp
############ range for menu starts
STR_02D5_LAND_BLOCK_INFO :Land area information
STR_02D6 :
+STR_CONSOLE_SETTING :Toggle Console
STR_02D7_SCREENSHOT_CTRL_S :Screenshot (Ctrl-S)
STR_02D8_GIANT_SCREENSHOT_CTRL_G :Giant Screenshot (Ctrl-G)
STR_02D9_ABOUT_OPENTTD :About 'OpenTTD'
diff --git a/main_gui.c b/main_gui.c
index d599bc4b1..2828386f4 100644
--- a/main_gui.c
+++ b/main_gui.c
@@ -436,11 +436,12 @@ static void MenuClickNewspaper(int index)
static void MenuClickHelp(int index)
{
- switch(index) {
+ switch (index) {
case 0: PlaceLandBlockInfo(); break;
- case 2: _make_screenshot = 1; break;
- case 3: _make_screenshot = 2; break;
- case 4: ShowAboutWindow(); break;
+ case 2: IConsoleSwitch(); break;
+ case 3: _make_screenshot = 1; break;
+ case 4: _make_screenshot = 2; break;
+ case 5: ShowAboutWindow(); break;
}
}
@@ -980,7 +981,7 @@ static void ToolbarNewspaperClick(Window *w)
static void ToolbarHelpClick(Window *w)
{
- PopupMainToolbMenu(w, 0x1E0, 26, STR_02D5_LAND_BLOCK_INFO, 5, 0);
+ PopupMainToolbMenu(w, 0x1E0, 26, STR_02D5_LAND_BLOCK_INFO, 6, 0);
}
static void ToolbarOptionsClick(Window *w)