mirror of
https://git.leinelab.org/Mal/mr-crocs-adventures.git
synced 2025-09-11 02:57:36 +02:00
Snow fullscreen effect implemented
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import GraphicSet from "../../../js/GraphicSet.js";
|
||||
import Setting from "../../../js/Setting.js";
|
||||
import TilorswiftTilesetSelectedEvent from "../events/TilorswiftTilesetSelectedEvent.js";
|
||||
import {Checkbox} from "./elements/Checkbox.js";
|
||||
|
||||
export default class Dialog
|
||||
{
|
||||
@@ -66,6 +67,16 @@ export default class Dialog
|
||||
return htmlElementInput;
|
||||
}
|
||||
|
||||
createCheckbox(label, value, isChecked = false, onClick = () => {})
|
||||
{
|
||||
const checkbox = new Checkbox(label, value, isChecked);
|
||||
checkbox.onClick = onClick;
|
||||
|
||||
this.inputAreaElement.appendChild(checkbox.htmlElement);
|
||||
|
||||
return checkbox;
|
||||
}
|
||||
|
||||
createTilesetSelector()
|
||||
{
|
||||
let htmlElement = document.createElement('div');
|
||||
@@ -133,6 +144,8 @@ export default class Dialog
|
||||
return htmlElement;
|
||||
}
|
||||
|
||||
|
||||
|
||||
createFileInput(types = [])
|
||||
{
|
||||
let input = document.createElement('input');
|
||||
|
||||
Reference in New Issue
Block a user