re-added import of characters
Pull Request Check / testing (pull_request) Successful in 20s Details

pull/13/head
Jendrik 2025-09-27 23:18:17 +02:00
parent c758fcc3e4
commit b21ba191d8
1 changed files with 12 additions and 0 deletions

View File

@ -1,4 +1,16 @@
import {importCharacter} from "../xml-import/xml-import.mjs";
export class Character extends Actor { export class Character extends Actor {
import() {
let input = document.createElement('input')
input.type = 'file'
input.accept = '.xml'
input.onchange = e => {
importCharacter(this.id, e.target.files[0])
}
input.click()
}
/** /**
* Augment the basic Item data model with additional dynamic data. * Augment the basic Item data model with additional dynamic data.
*/ */