summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2011-05-28 13:56:35 +0000
committeralberth <alberth@openttd.org>2011-05-28 13:56:35 +0000
commit9bc3d8861fa5dbd093264d3ba4fda24c6552fdcd (patch)
tree8a88792a237a6c64b90816ee38b4777ae9e85a41 /src
parentc6f3ded6d54d79320c5cdf4daa5d09c713084ab5 (diff)
downloadopenttd-9bc3d8861fa5dbd093264d3ba4fda24c6552fdcd.tar.xz
(svn r22514) -Feature: Save heightmap in scenario editor.
Diffstat (limited to 'src')
-rw-r--r--src/lang/english.txt1
-rw-r--r--src/toolbar_gui.cpp4
2 files changed, 4 insertions, 1 deletions
diff --git a/src/lang/english.txt b/src/lang/english.txt
index 68a8b5e3d..f61962892 100644
--- a/src/lang/english.txt
+++ b/src/lang/english.txt
@@ -338,6 +338,7 @@ STR_SCENEDIT_TOOLBAR_PLACE_OBJECT :{BLACK}Place ob
############ range for SE file menu starts
STR_SCENEDIT_FILE_MENU_SAVE_SCENARIO :Save scenario
STR_SCENEDIT_FILE_MENU_LOAD_SCENARIO :Load scenario
+STR_SCENEDIT_FILE_MENU_SAVE_HEIGHTMAP :Save heightmap
STR_SCENEDIT_FILE_MENU_LOAD_HEIGHTMAP :Load heightmap
STR_SCENEDIT_FILE_MENU_QUIT_EDITOR :Quit editor
STR_SCENEDIT_FILE_MENU_SEPARATOR :
diff --git a/src/toolbar_gui.cpp b/src/toolbar_gui.cpp
index 4bd5efcf6..e879114d2 100644
--- a/src/toolbar_gui.cpp
+++ b/src/toolbar_gui.cpp
@@ -355,9 +355,10 @@ static CallBackFunction MenuClickSettings(int index)
enum SaveLoadEditorMenuEntries {
SLEME_SAVE_SCENARIO = 0,
SLEME_LOAD_SCENARIO,
+ SLEME_SAVE_HEIGHTMAP,
SLEME_LOAD_HEIGHTMAP,
SLEME_EXIT_TOINTRO,
- SLEME_EXIT_GAME = 5,
+ SLEME_EXIT_GAME = 6,
SLEME_MENUCOUNT,
};
@@ -387,6 +388,7 @@ static CallBackFunction MenuClickSaveLoad(int index = 0)
switch (index) {
case SLEME_SAVE_SCENARIO: ShowSaveLoadDialog(SLD_SAVE_SCENARIO); break;
case SLEME_LOAD_SCENARIO: ShowSaveLoadDialog(SLD_LOAD_SCENARIO); break;
+ case SLEME_SAVE_HEIGHTMAP: ShowSaveLoadDialog(SLD_SAVE_HEIGHTMAP); break;
case SLEME_LOAD_HEIGHTMAP: ShowSaveLoadDialog(SLD_LOAD_HEIGHTMAP); break;
case SLEME_EXIT_TOINTRO: AskExitToGameMenu(); break;
case SLEME_EXIT_GAME: HandleExitGameRequest(); break;