dropbox - import changes from alpha

This commit is contained in:
Azgaar 2021-09-01 21:33:49 +03:00 committed by Peter
parent eecdff1968
commit 68fade20c3
7 changed files with 4547 additions and 0 deletions

View file

@ -1,4 +1,33 @@
<<<<<<< HEAD
"use strict";
=======
'use strict';
function editHeightmap() {
void (function selectEditMode() {
alertMessage.innerHTML = `Heightmap is a core element on which all other data (rivers, burgs, states etc) is based.
So the best edit approach is to <i>erase</i> the secondary data and let the system automatically regenerate it on edit completion.
<p><i>Erase</i> mode also allows you Convert an Image into a heightmap or use Template Editor.</p>
<p>You can <i>keep</i> the data, but you won't be able to change the coastline.</p>
<p>Try <i>risk</i> mode to change the coastline and keep the data. The data will be restored as much as possible, but it can cause unpredictable errors.</p>
<p>Please <span class="pseudoLink" onclick=dowloadMap(); editHeightmap();>save the map</span> before editing the heightmap!</p>
<p>Check out ${link("https://github.com/Azgaar/Fantasy-Map-Generator/wiki/Heightmap-customization", "wiki")} for guidance.</p>`;
$('#alert').dialog({
resizable: false,
title: 'Edit Heightmap',
width: '28em',
buttons: {
Erase: () => enterHeightmapEditMode('erase'),
Keep: () => enterHeightmapEditMode('keep'),
Risk: () => enterHeightmapEditMode('risk'),
Cancel: function () {
$(this).dialog('close');
}
}
});
})();
>>>>>>> f557701e (dropbox - import changes from alpha)
function editHeightmap(options) {
const {mode, tool} = options || {};

View file

@ -702,7 +702,11 @@ function showSavePane() {
$("#saveMapData").dialog({
title: "Save map",
resizable: false,
<<<<<<< HEAD
width: "25em",
=======
width: "27em",
>>>>>>> f557701e (dropbox - import changes from alpha)
position: {my: "center", at: "center", of: "svg"},
buttons: {
Close: function () {
@ -743,7 +747,11 @@ async function showLoadPane() {
$("#loadMapData").dialog({
title: "Load map",
resizable: false,
<<<<<<< HEAD
width: "24em",
=======
width: "22em",
>>>>>>> f557701e (dropbox - import changes from alpha)
position: {my: "center", at: "center", of: "svg"},
buttons: {
Close: function () {