167 |
167 |
168 static void MenuClickSaveLoad(int index) |
168 static void MenuClickSaveLoad(int index) |
169 { |
169 { |
170 if (_game_mode == GM_EDITOR) { |
170 if (_game_mode == GM_EDITOR) { |
171 switch (index) { |
171 switch (index) { |
172 case 0: ShowSaveLoadDialog(SLD_SAVE_SCENARIO); break; |
172 case 0: ShowSaveLoadDialog(SLD_SAVE_SCENARIO); break; |
173 case 1: ShowSaveLoadDialog(SLD_LOAD_SCENARIO); break; |
173 case 1: ShowSaveLoadDialog(SLD_LOAD_SCENARIO); break; |
174 case 2: AskExitToGameMenu(); break; |
174 case 2: ShowSaveLoadDialog(SLD_LOAD_HEIGHTMAP); break; |
175 case 4: HandleExitGameRequest(); break; |
175 case 3: AskExitToGameMenu(); break; |
|
176 case 5: HandleExitGameRequest(); break; |
176 } |
177 } |
177 } else { |
178 } else { |
178 switch (index) { |
179 switch (index) { |
179 case 0: ShowSaveLoadDialog(SLD_SAVE_GAME); break; |
180 case 0: ShowSaveLoadDialog(SLD_SAVE_GAME); break; |
180 case 1: ShowSaveLoadDialog(SLD_LOAD_GAME); break; |
181 case 1: ShowSaveLoadDialog(SLD_LOAD_GAME); break; |
1155 { WWT_IMGBTN, RESIZE_NONE, 14, 112, 134, 16, 37, SPR_IMG_ROCKS, STR_028C_PLACE_ROCKY_AREAS_ON_LANDSCAPE}, |
1156 { WWT_IMGBTN, RESIZE_NONE, 14, 112, 134, 16, 37, SPR_IMG_ROCKS, STR_028C_PLACE_ROCKY_AREAS_ON_LANDSCAPE}, |
1156 { WWT_IMGBTN, RESIZE_NONE, 14, 135, 157, 16, 37, SPR_IMG_LIGHTHOUSE_DESERT, STR_NULL}, // XXX - dynamic |
1157 { WWT_IMGBTN, RESIZE_NONE, 14, 135, 157, 16, 37, SPR_IMG_LIGHTHOUSE_DESERT, STR_NULL}, // XXX - dynamic |
1157 { WWT_IMGBTN, RESIZE_NONE, 14, 158, 179, 16, 37, SPR_IMG_TRANSMITTER, STR_028E_PLACE_TRANSMITTER}, |
1158 { WWT_IMGBTN, RESIZE_NONE, 14, 158, 179, 16, 37, SPR_IMG_TRANSMITTER, STR_028E_PLACE_TRANSMITTER}, |
1158 { WWT_IMGBTN, RESIZE_NONE, 14, 139, 150, 45, 56, SPR_ARROW_UP, STR_0228_INCREASE_SIZE_OF_LAND_AREA}, |
1159 { WWT_IMGBTN, RESIZE_NONE, 14, 139, 150, 45, 56, SPR_ARROW_UP, STR_0228_INCREASE_SIZE_OF_LAND_AREA}, |
1159 { WWT_IMGBTN, RESIZE_NONE, 14, 139, 150, 58, 69, SPR_ARROW_DOWN, STR_0229_DECREASE_SIZE_OF_LAND_AREA}, |
1160 { WWT_IMGBTN, RESIZE_NONE, 14, 139, 150, 58, 69, SPR_ARROW_DOWN, STR_0229_DECREASE_SIZE_OF_LAND_AREA}, |
1160 { WWT_TEXTBTN, RESIZE_NONE, 14, 34, 145, 76, 87, STR_SE_NEW_WORLD, STR_022A_GENERATE_RANDOM_LAND}, |
1161 { WWT_TEXTBTN, RESIZE_NONE, 14, 24, 157, 76, 87, STR_SE_NEW_WORLD, STR_022A_GENERATE_RANDOM_LAND}, |
1161 { WWT_TEXTBTN, RESIZE_NONE, 14, 34, 145, 89, 100, STR_022B_RESET_LANDSCAPE, STR_RESET_LANDSCAPE_TOOLTIP}, |
1162 { WWT_TEXTBTN, RESIZE_NONE, 14, 24, 157, 89, 100, STR_022B_RESET_LANDSCAPE, STR_RESET_LANDSCAPE_TOOLTIP}, |
1162 { WIDGETS_END}, |
1163 { WIDGETS_END}, |
1163 }; |
1164 }; |
1164 |
1165 |
1165 static const int8 _multi_terraform_coords[][2] = { |
1166 static const int8 _multi_terraform_coords[][2] = { |
1166 { 0, -2}, |
1167 { 0, -2}, |