mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-19 10:31:24 +01:00
options available through button again
This commit is contained in:
parent
70e77714b9
commit
f75327772f
3 changed files with 12 additions and 8 deletions
|
|
@ -3,8 +3,7 @@ import {addOnLoadListener} from "./loading";
|
|||
import {assignLockBehavior} from "./options/lock";
|
||||
import {addTooptipListers} from "./tooltips";
|
||||
import {assignSpeakerBehavior} from "./speaker";
|
||||
// @ts-ignore
|
||||
import {addResizeListener} from "modules/ui/options";
|
||||
import {addResizeListener, hideOptions, showOptions} from "modules/ui/options";
|
||||
// @ts-ignore
|
||||
import {addDragToUpload} from "modules/io/load";
|
||||
import {addHotkeyListeners} from "scripts/hotkeys";
|
||||
|
|
@ -25,6 +24,7 @@ export function addGlobalListeners() {
|
|||
assignSpeakerBehavior();
|
||||
addDragToUpload();
|
||||
addFindAll();
|
||||
addOptionsListeners();
|
||||
}
|
||||
|
||||
function registerServiceWorker() {
|
||||
|
|
@ -54,3 +54,8 @@ 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