|
@@ -128,31 +128,31 @@ GUIFrontend::GUIFrontend()
|
|
|
&buttonTexture, &clickedButtonTexture, buttonSize);
|
|
|
heightmapButton = new Button
|
|
|
(Vector2f(buttonSize.x, buttonOffset), &buttonFont,
|
|
|
- "View\nheightmap",
|
|
|
+ "Height",
|
|
|
&buttonTexture, &clickedButtonTexture, buttonSize);
|
|
|
riverMapButton = new Button
|
|
|
(Vector2f(buttonSize.x, buttonOffset + buttonSize.y),
|
|
|
- &buttonFont, "View\nriver map",
|
|
|
+ &buttonFont, "Rivers",
|
|
|
&buttonTexture, &clickedButtonTexture, buttonSize);
|
|
|
windMapButton = new Button
|
|
|
(Vector2f(buttonSize.x, buttonOffset + 2 * buttonSize.y),
|
|
|
- &buttonFont, "View\nwind map",
|
|
|
+ &buttonFont, "Wind",
|
|
|
&buttonTexture, &clickedButtonTexture, buttonSize);
|
|
|
heatMapButton = new Button
|
|
|
(Vector2f(buttonSize.x, buttonOffset + 3 * buttonSize.y),
|
|
|
- &buttonFont, "View\nheat map",
|
|
|
+ &buttonFont, "Heat",
|
|
|
&buttonTexture, &clickedButtonTexture, buttonSize);
|
|
|
groundWaterMapButton = new Button
|
|
|
(Vector2f(buttonSize.x, buttonOffset + 4 * buttonSize.y),
|
|
|
- &buttonFont, "View grou-\nnd water",
|
|
|
+ &buttonFont, "Ground\nwater",
|
|
|
&buttonTexture, &clickedButtonTexture, buttonSize);
|
|
|
biomeButton = new Button
|
|
|
(Vector2f(buttonSize.x, buttonOffset + 5 * buttonSize.y),
|
|
|
- &buttonFont, "View\nbiomes",
|
|
|
+ &buttonFont, "Biomes",
|
|
|
&buttonTexture, &clickedButtonTexture, buttonSize);
|
|
|
renderedMapButton = new Button
|
|
|
(Vector2f(buttonSize.x, buttonOffset + 6 * buttonSize.y),
|
|
|
- &buttonFont, "View\nrender",
|
|
|
+ &buttonFont, "Render",
|
|
|
&buttonTexture, &clickedButtonTexture, buttonSize);
|
|
|
|
|
|
|
|
@@ -542,8 +542,6 @@ void GUIFrontend::generateWithSeed(unsigned seed)
|
|
|
double waterLevel =
|
|
|
islandHeightmapGenerator->modifiedHeightValue(0.5);
|
|
|
|
|
|
- std::cout << waterLevel << " water level\n";
|
|
|
-
|
|
|
// LandMapGenerator
|
|
|
drawProgress("Generating island land map...", 0.15);
|
|
|
|
|
@@ -689,8 +687,6 @@ void GUIFrontend::save()
|
|
|
std::string directory = "saves" + DIRSEP + nameWithoutSpaces +
|
|
|
"-" + std::to_string(currentSeed) + DIRSEP;
|
|
|
|
|
|
- std::cout << "Saving island to " << directory << "\n";
|
|
|
-
|
|
|
#ifdef OS_WIN
|
|
|
TCHAR path[MAX_PATH];
|
|
|
GetCurrentDirectory(MAX_PATH, path);
|
|
@@ -713,8 +709,6 @@ void GUIFrontend::save()
|
|
|
biomeMapImage.saveToFile(directory + "biomemap.png");
|
|
|
biomeGenerator->getRawImage().saveToFile(directory + "raw-biomemap.png");
|
|
|
renderedMapImage.saveToFile(directory + "renderedmap.png");
|
|
|
-
|
|
|
- std::cout << "Done saving\n";
|
|
|
}
|
|
|
|
|
|
void GUIFrontend::fillImage(double *values, Image *image)
|
|
@@ -728,6 +722,7 @@ void GUIFrontend::fillImage(double *values, Image *image)
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
+// More accurate saving method
|
|
|
/*void GUIFrontend::fillImage(double *values, Image *image)
|
|
|
{
|
|
|
for (int i = 0; i < islandSize.x * islandSize.y; i++) {
|