Fix issue #35 - Cannot add abilities to monster sheets
parent
afe61cb07e
commit
90665825aa
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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: {
|
||||
|
|
|
@ -0,0 +1,20 @@
|
|||
<form class="ose dialog">
|
||||
<div class="form-group">
|
||||
<label>{{localize 'ACKS.dialog.itemName'}}</label>
|
||||
<div class="form-fields">
|
||||
<input name="name" type="text" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>{{localize 'ACKS.dialog.itemType'}}</label>
|
||||
<div class="form-fields">
|
||||
<select name="type">
|
||||
{{#select types}}
|
||||
{{#each types as |type|}}
|
||||
<option value="{{type}}">{{type}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
Loading…
Reference in New Issue