mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-19 02:21: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
|
|
@ -9,6 +9,8 @@ import {getNextId} from "utils/nodeUtils";
|
|||
import {rn} from "utils/numberUtils";
|
||||
import {getArea, getAreaUnit, si} from "utils/unitUtils";
|
||||
|
||||
let isLoaded = false;
|
||||
|
||||
export function editZones() {
|
||||
closeDialogs();
|
||||
if (!layerIsOn("toggleZones")) toggleZones();
|
||||
|
|
@ -17,8 +19,8 @@ export function editZones() {
|
|||
updateFilters();
|
||||
zonesEditorAddLines();
|
||||
|
||||
if (fmg.modules.editZones) return;
|
||||
fmg.modules.editZones = true;
|
||||
if (isLoaded) return;
|
||||
isLoaded = true;
|
||||
|
||||
$("#zonesEditor").dialog({
|
||||
title: "Zones Editor",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue