mirror of
https://git.leinelab.org/Mal/mr-crocs-adventures.git
synced 2025-09-11 02:57:36 +02:00
Loading of levels is working now
This commit is contained in:
@@ -7,13 +7,8 @@ export class LoadLevelDialog extends Dialog
|
||||
|
||||
this.setMessage('Level laden');
|
||||
this.fileInput = this.createFileInput(['json']);
|
||||
|
||||
this.onClose = () => {};
|
||||
this.onLoad = () => {};
|
||||
|
||||
this.buttonLoad = this.createButton('Laden');
|
||||
this.buttonLoad.addEventListener(
|
||||
'click',
|
||||
this.fileInput.addEventListener(
|
||||
'change',
|
||||
() => {
|
||||
if (this.fileInput.files.length === 0) {
|
||||
return;
|
||||
@@ -29,7 +24,9 @@ export class LoadLevelDialog extends Dialog
|
||||
)
|
||||
reader.readAsBinaryString(this.fileInput.files[0]);
|
||||
}
|
||||
);
|
||||
)
|
||||
this.onClose = () => {};
|
||||
this.onLoad = () => {};
|
||||
|
||||
this.buttonCancel = this.createButton('Abbrechen');
|
||||
this.buttonCancel.addEventListener(
|
||||
|
||||
Reference in New Issue
Block a user