1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-21 05:53:02 +01:00

Move loadsave dialog

This commit is contained in:
Marijn van der Werf
2017-09-12 00:04:03 +02:00
parent 9b1b2b5c62
commit d18e59ff17
20 changed files with 145 additions and 65 deletions

View File

@@ -1189,9 +1189,13 @@ static void window_mapgen_heightmap_mouseup(rct_window *w, rct_widgetindex widge
// Page widgets
case WIDX_HEIGHTMAP_SELECT:
window_loadsave_open(LOADSAVETYPE_LOAD | LOADSAVETYPE_IMAGE, nullptr);
window_loadsave_set_loadsave_callback(window_mapgen_heightmap_loadsave_callback);
{
auto intent = Intent(WC_LOADSAVE);
intent.putExtra(INTENT_EXTRA_4, LOADSAVETYPE_LOAD | LOADSAVETYPE_IMAGE);
intent.putExtra(INTENT_EXTRA_6, (void *) window_mapgen_heightmap_loadsave_callback);
context_open_intent(&intent);
return;
}
case WIDX_HEIGHTMAP_SMOOTH_HEIGHTMAP:
_heightmapSmoothMap = !_heightmapSmoothMap;
widget_set_checkbox_value(w, WIDX_HEIGHTMAP_SMOOTH_HEIGHTMAP, _heightmapSmoothMap);