mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 17:51:24 +01:00
refactor: replace fmg.modules with local vars
This commit is contained in:
parent
80bf0ef688
commit
a97e7f44f6
31 changed files with 141 additions and 95 deletions
|
|
@ -974,6 +974,8 @@ function resize3d() {
|
|||
ThreeD.redraw();
|
||||
}
|
||||
|
||||
let isLoaded = false;
|
||||
|
||||
function toggle3dOptions() {
|
||||
if (options3dUpdate.offsetParent) {
|
||||
$("#options3d").dialog("close");
|
||||
|
|
@ -988,8 +990,8 @@ function toggle3dOptions() {
|
|||
|
||||
updateValues();
|
||||
|
||||
if (fmg.modules.options3d) return;
|
||||
fmg.modules.options3d = true;
|
||||
if (isLoaded) return;
|
||||
isLoaded = true;
|
||||
|
||||
document.getElementById("options3dUpdate").addEventListener("click", ThreeD.update);
|
||||
document.getElementById("options3dSave").addEventListener("click", ThreeD.saveScreenshot);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue