diff --git a/src/lang/en.json b/src/lang/en.json index cdd4b7e..7ee7ec4 100644 --- a/src/lang/en.json +++ b/src/lang/en.json @@ -19,6 +19,9 @@ "ACKS.dialog.generateSaves": "Generate Saves", "ACKS.dialog.generateScores": "Generate Scores", "ACKS.dialog.generateScore": "Rolling {score} ({count})", + "ACKS.dialog.createItem": "Create Item", + "ACKS.dialog.itemType": "Item type", + "ACKS.dialog.itemName": "Item name", "ACKS.Formula": "Formula", "ACKS.SitMod": "Situational Modifier", diff --git a/src/lang/fr.json b/src/lang/fr.json index e947aaf..6a4e346 100644 --- a/src/lang/fr.json +++ b/src/lang/fr.json @@ -19,6 +19,9 @@ "ACKS.dialog.generateSaves": "Générer les Sauvegardes", "ACKS.dialog.generateScores": "Générer les Scores", "ACKS.dialog.generateScore": "Création: {score} ({count})", + "ACKS.dialog.createItem": "Créer un Objet", + "ACKS.dialog.itemType": "Type de l'Objet", + "ACKS.dialog.itemName": "Nom de l'Objet", "ACKS.Formula": "Formule", "ACKS.SitMod": "Mod. de situation", diff --git a/src/module/actor/monster-sheet.js b/src/module/actor/monster-sheet.js index 2f655a9..b54b7ca 100644 --- a/src/module/actor/monster-sheet.js +++ b/src/module/actor/monster-sheet.js @@ -105,15 +105,15 @@ export class AcksActorSheetMonster extends AcksActorSheet { /* -------------------------------------------- */ async _chooseItemType(choices = ["weapon", "armor", "shield", "gear"]) { - let templateData = { upper: "", lower: "", types: choices }, + let templateData = { types: choices }, dlg = await renderTemplate( - "templates/sidebar/entity-create.html", + "systems/acks/templates/items/entity-create.html", templateData ); //Create Dialog window return new Promise((resolve) => { new Dialog({ - title: "", + title: game.i18n.localize("ACKS.dialog.createItem"), content: dlg, buttons: { ok: { diff --git a/src/templates/items/entity-create.html b/src/templates/items/entity-create.html new file mode 100644 index 0000000..dba6f36 --- /dev/null +++ b/src/templates/items/entity-create.html @@ -0,0 +1,20 @@ +
+
+ +
+ +
+
+
+ +
+ +
+
+ \ No newline at end of file