diff --git a/system/lang/en-en.json b/system/lang/en-en.json index 3ac4cc2..38cd292 100644 --- a/system/lang/en-en.json +++ b/system/lang/en-en.json @@ -302,6 +302,7 @@ "title": "Twenty questions", "bt_abrev": "20Q", "bt_refresh": "Refresh", + "bt_next": "Next", "increase_ring1": "Ring increase (1)", "increase_ring2": "Ring increase (2)", "increase_skill1": "Skill increases (1)", diff --git a/system/lang/es-es.json b/system/lang/es-es.json index 905a625..a23098f 100644 --- a/system/lang/es-es.json +++ b/system/lang/es-es.json @@ -302,6 +302,7 @@ "title": "Twenty questions", "bt_abrev": "20Q", "bt_refresh": "Refresh", + "bt_next": "Next", "increase_ring1": "Ring increase (1)", "increase_ring2": "Ring increase (2)", "increase_skill1": "Skill increases (1)", diff --git a/system/lang/fr-fr.json b/system/lang/fr-fr.json index a066b28..5db24ba 100644 --- a/system/lang/fr-fr.json +++ b/system/lang/fr-fr.json @@ -302,6 +302,7 @@ "title": "Le jeu des Vingt questions", "bt_abrev": "20Q", "bt_refresh": "Actualiser", + "bt_next": "Suivant", "increase_ring1": "Augmentation d'anneau (1)", "increase_ring2": "Augmentations d'anneau (2)", "increase_skill1": "Augmentation de compétence (1)", diff --git a/system/scripts/actors/twenty-questions-dialog.js b/system/scripts/actors/twenty-questions-dialog.js index d5d53a6..8f7e31d 100644 --- a/system/scripts/actors/twenty-questions-dialog.js +++ b/system/scripts/actors/twenty-questions-dialog.js @@ -152,6 +152,15 @@ export class TwentyQuestionsDialog extends FormApplication { tgt.hasClass("toggle-active") ? tgt.removeClass("toggle-active") : tgt.addClass("toggle-active"); }); + // BT Next + html.find(".next").on("click", (event) => { + event.preventDefault(); + event.stopPropagation(); + const tab = this._tabs.find((e) => e._navSelector === ".sheet-tabs"); + const next = parseInt(tab.active.replace(/[^0-9]/g, "")) + 1; + tab.activate("part" + next); + }); + // *** Everything below here is only needed if the sheet is editable *** if (!this.options.editable) { return; diff --git a/system/scripts/dice/dice-picker-dialog.js b/system/scripts/dice/dice-picker-dialog.js index b9bad94..7d4a49a 100644 --- a/system/scripts/dice/dice-picker-dialog.js +++ b/system/scripts/dice/dice-picker-dialog.js @@ -241,6 +241,7 @@ export class DicePickerDialog extends FormApplication { actorIsPc: !this._actor || this._actor.data?.type === "character", canUseVoidPoint: this.object.difficulty.hidden || !this._actor || this._actor.data.data.void_points.value > 0, + disableSubmit: this.object.skill.value < 1 && this.object.ring.value < 1, }; } diff --git a/system/templates/actors/twenty-questions-dialog.html b/system/templates/actors/twenty-questions-dialog.html index 69c2de1..df2cf46 100644 --- a/system/templates/actors/twenty-questions-dialog.html +++ b/system/templates/actors/twenty-questions-dialog.html @@ -18,8 +18,10 @@

{{localize 'l5r5e.twenty_questions.title'}}

{{localize 'l5r5e.twenty_questions.part0.intro'}} -

- {{localize 'l5r5e.twenty_questions.part0.section'}} +
+
{{localize 'l5r5e.twenty_questions.part0.section'}} +
+

{{localize 'l5r5e.twenty_questions.part1.title'}}

@@ -126,6 +128,8 @@ +
+

{{localize 'l5r5e.twenty_questions.part2.title'}}

@@ -272,6 +276,8 @@ {{/select}} +
+

{{localize 'l5r5e.twenty_questions.part3.title'}}

@@ -367,6 +373,8 @@ +
+

{{localize 'l5r5e.twenty_questions.part4.title'}}

@@ -444,6 +452,8 @@ {{localize 'l5r5e.twenty_questions.part4.disadvantage'}} {{> 'systems/l5r5e/templates/actors/character/twenty-questions-item.html' itemsList=cache.step13.disadvantage stepName='step13.disadvantage' itemType='peculiarities' hideDndAt=1 }} +
+

{{localize 'l5r5e.twenty_questions.part5.title'}}

@@ -475,6 +485,8 @@ {{> 'systems/l5r5e/templates/actors/character/twenty-questions-item.html' itemsList=cache.step16.item stepName='step16.item' itemType='items' hideDndAt=1 }} +
+

{{localize 'l5r5e.twenty_questions.part6.title'}}

@@ -582,6 +594,8 @@ +
+

{{localize 'l5r5e.twenty_questions.part7.title'}}

diff --git a/system/templates/dice/dice-picker-dialog.html b/system/templates/dice/dice-picker-dialog.html index 97e064d..ee897e3 100644 --- a/system/templates/dice/dice-picker-dialog.html +++ b/system/templates/dice/dice-picker-dialog.html @@ -163,6 +163,6 @@
- +