Merge PR #271 into jgrpp

This commit is contained in:
Jonathan G Rennison
2021-06-12 00:31:47 +01:00
6 changed files with 243 additions and 17 deletions

View File

@@ -1505,6 +1505,8 @@ DEF_CONSOLE_CMD(ConScreenShot)
"'world' makes a screenshot of the whole map using the current zoom level, "
"'heightmap' makes a heightmap screenshot of the map that can be loaded in as heightmap, "
"'minimap' makes a top-viewed minimap screenshot of the whole world which represents one tile by one pixel. "
"'topography' makes a top-viewed topography screenshot of the whole world which represents one tile by one pixel. "
"'industry' makes a top-viewed industries screenshot of the whole world which represents one tile by one pixel. "
"'no_con' hides the console to create the screenshot (only useful in combination with 'viewport'). "
"'size' sets the width and height of the viewport to make a screenshot of (only useful in combination with 'normal' or 'big').");
return true;
@@ -1540,6 +1542,12 @@ DEF_CONSOLE_CMD(ConScreenShot)
} else if (strcmp(argv[arg_index], "minimap") == 0) {
type = SC_MINIMAP;
arg_index += 1;
} else if (strcmp(argv[arg_index], "topography") == 0) {
type = SC_TOPOGRAPHY;
arg_index += 1;
} else if (strcmp(argv[arg_index], "industry") == 0) {
type = SC_INDUSTRY;
arg_index += 1;
}
}