mirror of
https://git.leinelab.org/Mal/mr-crocs-adventures.git
synced 2025-09-11 02:57:36 +02:00
Tilorswift levels can now be loaded into the running game
This commit is contained in:
@@ -126,8 +126,31 @@ export default class Dialog
|
||||
return htmlElement;
|
||||
}
|
||||
|
||||
createFileInput(types = [])
|
||||
{
|
||||
let input = document.createElement('input');
|
||||
input.type = 'file';
|
||||
|
||||
if (types.length > 0) {
|
||||
for (const t in types) {
|
||||
types[t] = '.' + types[t]
|
||||
}
|
||||
|
||||
input.accept = types.join(', ');
|
||||
}
|
||||
|
||||
this.inputAreaElement.appendChild(input);
|
||||
|
||||
return input;
|
||||
}
|
||||
|
||||
setMessage(message)
|
||||
{
|
||||
this.messageElement.innerText = message;
|
||||
}
|
||||
|
||||
close()
|
||||
{
|
||||
this.htmlElement.remove();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user