mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-19 18:41:23 +01:00
moved listener for option back to option file
This commit is contained in:
parent
50fe5ae2e7
commit
0216c0456f
2 changed files with 88 additions and 63 deletions
|
|
@ -3,7 +3,7 @@ import {addOnLoadListener} from "./loading";
|
|||
import {assignLockBehavior} from "./options/lock";
|
||||
import {addTooptipListers} from "./tooltips";
|
||||
import {assignSpeakerBehavior} from "./speaker";
|
||||
import {addResizeListener, hideOptions, showOptions} from "modules/ui/options";
|
||||
import {addResizeListener} from "modules/ui/options";
|
||||
// @ts-ignore
|
||||
import {addDragToUpload} from "modules/io/load";
|
||||
import {addHotkeyListeners} from "scripts/hotkeys";
|
||||
|
|
@ -24,7 +24,6 @@ export function addGlobalListeners() {
|
|||
assignSpeakerBehavior();
|
||||
addDragToUpload();
|
||||
addFindAll();
|
||||
addOptionsListeners();
|
||||
}
|
||||
|
||||
function registerServiceWorker() {
|
||||
|
|
@ -53,9 +52,4 @@ function addInstallationPrompt() {
|
|||
|
||||
function addBeforeunloadListener() {
|
||||
window.onbeforeunload = () => "Are you sure you want to navigate away?";
|
||||
}
|
||||
|
||||
function addOptionsListeners() {
|
||||
document.querySelector<HTMLButtonElement>("#optionsTrigger")!.on("click", (evt) => showOptions(evt as MouseEvent));
|
||||
document.querySelector<HTMLButtonElement>("#optionsHide")!.on("click", (evt) => hideOptions(evt as MouseEvent));
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue