mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2026-02-07 02:51:23 +01:00
collect statistics for a short period
This commit is contained in:
parent
b3e0d5e7b1
commit
83fa6a13e6
7 changed files with 48 additions and 866 deletions
|
|
@ -1,33 +1,4 @@
|
|||
<<<<<<< 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 style="margin-bottom: 0">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 || {};
|
||||
|
|
@ -1089,7 +1060,8 @@ function editHeightmap(options) {
|
|||
}
|
||||
|
||||
function openImageConverter() {
|
||||
if ($('#imageConverter').is(':visible')) return;
|
||||
if ($("#imageConverter").is(":visible")) return;
|
||||
track("edit", "convert image");
|
||||
imageToLoad.click();
|
||||
closeDialogs('#imageConverter');
|
||||
|
||||
|
|
|
|||
|
|
@ -665,7 +665,7 @@ function restoreDefaultOptions() {
|
|||
// Sticked menu Options listeners
|
||||
document.getElementById("sticked").addEventListener("click", function (event) {
|
||||
const id = event.target.id;
|
||||
if (id === "newMapButton") regeneratePrompt();
|
||||
if (id === "newMapButton") regeneratePrompt("sticky button");
|
||||
else if (id === "saveButton") showSavePane();
|
||||
else if (id === "exportButton") showExportPane();
|
||||
else if (id === "loadButton") showLoadPane();
|
||||
|
|
@ -931,8 +931,9 @@ function enterStandardView() {
|
|||
}
|
||||
|
||||
async function enter3dView(type) {
|
||||
const canvas = document.createElement('canvas');
|
||||
canvas.id = 'canvas3d';
|
||||
track("click", `3d mode: ${type}`);
|
||||
const canvas = document.createElement("canvas");
|
||||
canvas.id = "canvas3d";
|
||||
canvas.dataset.type = type;
|
||||
|
||||
if (type === 'heightmap3DView') {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue