Add topography and industries screenshot types

This commit is contained in:
Andreas Schmitt
2021-06-11 20:14:56 +02:00
parent a7d8c6fe0c
commit 5e3a244198
6 changed files with 258 additions and 4 deletions

View File

@@ -24,6 +24,8 @@ enum ScreenshotType {
SC_WORLD_ZOOM, ///< World screenshot using current zoom level.
SC_HEIGHTMAP, ///< Heightmap of the world.
SC_MINIMAP, ///< Minimap screenshot.
SC_TOPOGRAPHY, ///< Topography screenshot.
SC_INDUSTRY, ///< Industry screenshot.
SC_SMALLMAP, ///< Smallmap window screenshot.
};
@@ -35,6 +37,8 @@ bool MakeSmallMapScreenshot(unsigned int width, unsigned int height, SmallMapWin
void MakeScreenshotWithConfirm(ScreenshotType t);
bool MakeScreenshot(ScreenshotType t, std::string name, uint32 width = 0, uint32 height = 0);
bool MakeMinimapWorldScreenshot(const char *name);
bool MakeTopographyScreenshot(const char *name);
bool MakeIndustryScreenshot(const char *name);
void SetScreenshotAuxiliaryText(const char *key, const char *value);
inline void ClearScreenshotAuxiliaryText() { SetScreenshotAuxiliaryText(nullptr, nullptr); }