mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-22 03:51:23 +01:00
geogen release
This commit is contained in:
parent
9aa369b6df
commit
edb0cb820d
7 changed files with 2056 additions and 0 deletions
|
|
@ -211,6 +211,8 @@ document.addEventListener("keydown", function(event) {
|
|||
if (key === 118) regenerateMap(); // "F7" for new map
|
||||
else if (key === 27) {closeDialogs(); hideOptions();} // Escape to close all dialogs
|
||||
else if (key === 9) {toggleOptions(event); event.preventDefault();} // Tab to toggle options
|
||||
else if (shift && key === 79) saveGeo("osm"); // Shift + "O" to save as OSM
|
||||
else if (shift && key === 74) saveGeo("json"); // Shift + "J" to save as JSON
|
||||
else if (ctrl && key === 80) saveAsImage("png"); // Ctrl + "P" to save as PNG
|
||||
else if (ctrl && key === 83) saveAsImage("svg"); // Ctrl + "S" to save as SVG
|
||||
else if (ctrl && key === 77) saveMap(); // Ctrl + "M" to save MAP file
|
||||
|
|
|
|||
|
|
@ -903,6 +903,8 @@ document.getElementById("sticked").addEventListener("click", function(event) {
|
|||
else if (id === "loadMap") mapToLoad.click();
|
||||
else if (id === "zoomReset") resetZoom(1000);
|
||||
else if (id === "saveMap") saveMap();
|
||||
else if (id === "saveOSM") saveGeo("osm");
|
||||
else if (id === "saveJSON") saveGeo("json");
|
||||
else if (id === "saveSVG") saveAsImage("svg");
|
||||
else if (id === "savePNG") saveAsImage("png");
|
||||
if (id === "saveMap" || id === "saveSVG" || id === "savePNG") toggleSavePane();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue