changement rolldialog

This commit is contained in:
Erwan Lemaire
2025-04-17 15:53:34 +02:00
parent d380efeed5
commit 5889a8111d
6 changed files with 252 additions and 221 deletions
+1 -1
View File
File diff suppressed because one or more lines are too long
+5
View File
@@ -383,6 +383,11 @@ ul.unstyled li {
}
.system-vermine2047 .sheet.actor form input[disabled],
.system-vermine2047 .sheet.actor form select[disabled] {
cursor: not-allowed;
}
.system-vermine2047 .sheet.actor form input[type=text]:hover:not(:disabled),
.system-vermine2047 .sheet.actor form input[type=text]:focus,
.system-vermine2047 .sheet.actor form select:hover:not(:disabled),
+1 -1
View File
@@ -1,7 +1,7 @@
.window-app.vermineDialog {
.window-content {
background: url(/systems/vermine2047/assets/images/ui/box_background.webp) repeat;
color: black;
}
.flexrow,
+1 -5
View File
@@ -153,13 +153,9 @@
"hotReload": {
"extensions": [
"css",
"scss",
"hbs",
"json"
],
"paths": [
"assets",
"lang",
"templates"
]
}
}
+241 -214
View File
@@ -3,6 +3,8 @@
class="vermine form"
data-actor-id="{{ speakerId }}"
>
<!--HIDDEN DATA -->
<input
type="hidden"
name="label"
@@ -27,15 +29,138 @@
id="skillScore"
value="{{ skillScore }}"
/>
<div class="dice-pool flexcol">
<h1 class="flexrow row lgb flex-group-center">
<span>Type de jet <strong>{{#if (eq rollType 'skill')}}{{ localize
'VERMINE.skill_title' }}{{else}}{{ localize 'VERMINE.ability'
}}{{/if}}</strong></span>
<input
type="hidden"
name="speakerId"
value="{{ speakerId }}"
/>
<input
type="hidden"
name="skillLabel"
value="{{ skill }}"
/>
<div class="dice-pool">
<!--SKILLS TALENTS-->
<h1 class="flexrow skills-talents">
<div class="flexcol">
<label class="label">{{localize
'VERMINE.ability'}}</label>
<select
class="info-value"
data-roll="true"
data-dtype="String"
type="number"
name="ability"
id="ability"
min="1"
max="5"
>
<option value="0">-- Choisissez une caractéristique
--</option>
{{#each config.abilityCategories as |abilCategory catkey|}}
<optgroup label="{{ smarttlk 'ABILITY_CATEGORIES' catkey 'name' }}">
{{#each @root.actor.system.abilities as |abil key|}}
{{#ife abil.category catkey}}
<option
value="{{abil.value}}"
data-label="{{key}}"
{{#ife @root.rollType "ability"}}
{{#ife @root.labelKey key}}
selected="true"
{{/ife}}
{{/ife}}
>{{ smarttlk 'ABILITIES' key 'name'
}} / {{abil.value}}</option>
{{/ife}}
{{/each}}
</optgroup>
{{/each}}
</select>
</div>
<div class="flexcol">
<label class="label">{{localize
'VERMINE.skill_title'}}</label>
<select
class="info-value"
data-roll="true"
data-dtype="String"
type="number"
name="skill"
id="skill"
min="1"
max="5"
>
<option>-- Choisissez une compétence
--</option>
{{#each config.skillCategories as |skillCategory catkey|}}
<optgroup label="{{ smarttlk 'SKILLS_CATEGORIES' catkey 'name' }}">
{{#each @root.actor.system.skills as |skill key|}}
{{#ife skill.category catkey}}
<option
value="{{skill.value}}"
data-pool="{{skillLevel "dicePool"
skill.value}}"
data-label="{{key}}"
data-reroll="{{skillLevel "reroll" skill.value}}"
{{#ife @root.rollType "skill"}}
{{#ife @root.labelKey key}}
selected="true"
{{/ife}}
{{/ife}}
>
<b>{{ smarttlk 'SKILLS' key 'name' }} / </b>
<i>{{skillLevel "label" skill.value}}</i>
</option>
{{/ife}}
{{/each}}
</optgroup>
{{/each}}
</select>
{{#if availableSpecialties.length}}
<label class="label">{{localize 'VERMINE.specialty'}} (+1D)</label>
<div class="flexrow">
<span data-spec-skill="{{spec.system.skill}}">
<i>aucunes</i>
<input
type="radio"
data-roll="true"
name="usingSpecialization"
id="usingSpecialization"
value="aucune"
>
</span>
{{#each availableSpecialties as |spec ind|}}
<span data-spec-skill="{{spec.system.skill}}">
<i>{{spec.name}}</i>
<input
type="radio"
data-roll="true"
name="usingSpecialization"
id="usingSpecialization"
value="{{spec.name}}"
{{#if specialty}}checked{{/if}}
>
</span>
{{/each}}
</div>
{{/if}}
</div>
</h1>
<div class="flexrow">
<!--DIFFICULTY HANDICAP-->
<h2 class="flexrow">
<label class="label">{{localize
'VERMINE.difficulty'}}</label>
<select
@@ -88,230 +213,132 @@
<option value="3">(II)</option>
{{/select}}
</select>
</div>
<div class="flexrow ">
<h2 class="flexcol">
<label class="label">{{localize
'VERMINE.ability'}}</label>
<select
class="info-value"
data-roll="true"
data-dtype="String"
type="number"
name="ability"
id="ability"
min="1"
max="5"
>
<option value="0">-- Choisissez une caractéristique
--</option>
{{#each config.abilityCategories as |abilCategory catkey|}}
</h2>
<optgroup label="{{ smarttlk 'ABILITY_CATEGORIES' catkey 'name' }}">
{{#each @root.actor.system.abilities as |abil key|}}
{{#ife abil.category catkey}}
<option
value="{{abil.value}}"
data-label="{{key}}"
{{#ife @root.rollType "ability"}}
{{#ife @root.labelKey key}}
selected="true"
{{/ife}}
{{/ife}}
>{{ smarttlk 'ABILITIES' key 'name'
}} / {{abil.value}}</option>
{{/ife}}
{{/each}}
</optgroup>
{{/each}}
</select>
</h2>
<h3 class="flexcol">
<label class="label">{{localize
'VERMINE.skill_title'}}</label>
<select
class="info-value"
data-roll="true"
data-dtype="String"
type="number"
name="skill"
id="skill"
min="1"
max="5"
>
<option>-- Choisissez une compétence
--</option>
{{#each config.skillCategories as |skillCategory catkey|}}
<optgroup label="{{ smarttlk 'SKILLS_CATEGORIES' catkey 'name' }}">
{{#each @root.actor.system.skills as |skill key|}}
{{#ife skill.category catkey}}
<option
value="{{skill.value}}"
data-pool="{{skillLevel "dicePool"
skill.value}}"
data-label="{{key}}"
data-reroll="{{skillLevel "reroll" skill.value}}"
{{#ife @root.rollType "skill"}}
{{#ife @root.labelKey key}}
selected="true"
{{/ife}}
{{/ife}}
>
<b>{{ smarttlk 'SKILLS' key 'name' }},</b>
<i>{{skillLevel "label" skill.value}}</i>
</option>
{{/ife}}
{{/each}}
</optgroup>
{{/each}}
</select>
{{#if availableSpecialties.length}}
<label class="label">{{localize 'VERMINE.specialty'}} (+1D)</label>
<div class="flexrow">
<span data-spec-skill="{{spec.system.skill}}">
<i>aucunes</i>
<input
type="radio"
data-roll="true"
name="usingSpecialization"
id="usingSpecialization"
value="aucune"
>
</span>
{{#each availableSpecialties as |spec ind|}}
<span data-spec-skill="{{spec.system.skill}}">
<i>{{spec.name}}</i>
<input
type="radio"
data-roll="true"
name="usingSpecialization"
id="usingSpecialization"
value="{{spec.name}}"
{{#if specialty}}checked{{/if}}
>
</span>
{{/each}}
</div>
{{/if}}
</h3>
</div>
<!-- BONUSES -->
<details>
<summary class="flexrow">
<h3>Bonuses</h3>
</summary>
<div class="grid grid-3col">
<div class="grid grid-2col">
<div class="flexrow row smb">
<label class="label">{{localize 'VERMINE.help'}} (+1D)</label>
<input
type="checkbox"
data-roll="true"
name="helped"
id="helped"
value="1"
{{#if
<div class="flexrow row smb">
<label class="label">{{localize 'VERMINE.help'}} (+1D)</label>
<input
type="checkbox"
data-roll="true"
name="helped"
id="helped"
value="1"
{{#if
help}}checked{{/if}}
>
</div>
<div class="flexrow row mdb">
<label class="label">{{localize
'VERMINE.group'}}</label>
<input
type="number"
data-roll="true"
class="numeric-entry"
style="text-align: center;"
name="group"
id="group"
min="0"
max="5"
value="0"
>
</div>
<div class="flexrow row mdb">
<label class="label">{{localize
'VERMINE.self_control'}} + <span id="self_control_value">0</span>D
</label>
<input
type="range"
id="self_control"
data-roll="true"
name="self_control"
min="0"
max="0"
value="0"
/>
</div>
<div class="flexcol row mdb">
<label class="label">{{localize 'VERMINE.tooling'}} (+1D)</label>
>
</div>
<div class="item-list grid grid-4col">
<h3>
<i>Auncun</i>
<input
type="radio"
data-roll="true"
name="usingTools"
id="usingTools"
value="0"
checked
>
</h3>
{{#each availableItems as |item ind|}}
<span>
<i>{{item.name}}</i>
<div class="flexrow row mdb">
<label class="label">{{localize
'VERMINE.group'}}</label>
<input
type="number"
data-roll="true"
class="numeric-entry"
style="text-align: center;"
name="group"
id="group"
min="0"
max="5"
value="0"
>
</div>
<div class="flexrow row mdb">
<label class="label">{{localize
'VERMINE.self_control'}} + <span id="self_control_value">0</span>D
</label>
<input
type="range"
id="self_control"
data-roll="true"
name="self_control"
min="0"
max="0"
value="0"
/>
</div>
<div class="flexcol row mdb">
<label class="label">{{localize 'VERMINE.tooling'}} (+1D)</label>
<div class="item-list grid grid-4col">
<h3>
<i>Auncun</i>
<input
type="radio"
data-roll="true"
name="usingTools"
id="usingTools"
value="{{item.name}}"
value="0"
checked
>
</span>
{{/each}}
</h3>
{{#each availableItems as |item ind|}}
<span>
<i>{{item.name}}</i>
<input
type="radio"
data-roll="true"
name="usingTools"
id="usingTools"
value="{{item.name}}"
>
</span>
{{/each}}
</div>
</div>
</div>
<div class="flexrow">
<label class="label">utiliser des dés totems ?
</label>
{{#ifgt @root.actor.system.adaptation.totems.human.value 0}}
<div class="totem-human">
<h4 for="human-totem">totem humain </h4>
<input
type="checkbox"
data-roll="true"
name="human-totem"
id="human-totem"
value="1"
>
<div class="flexcol">
<label class="label">utiliser des dés totems ?
</label>
<div class="flexrow">
{{#ifgt @root.actor.system.adaptation.totems.human.value 0}}
<div class="totem-human">
<h4 for="human-totem">totem humain </h4>
<input
type="checkbox"
data-roll="true"
name="human-totem"
id="human-totem"
value="1"
>
</div>
{{/ifgt}}
{{#ifgt @root.actor.system.adaptation.totems.adapted.value 0}}
<div class="totem-adapted">
<h4 for="human-totem">totem adapté </h4>
<input
type="checkbox"
data-roll="true"
name="adapted-totem"
id="adapted-totem"
value="1"
>
</div>
{{/ifgt}}
</div>
{{/ifgt}}
{{#ifgt @root.actor.system.adaptation.totems.adapted.value 0}}
<div class="totem-adapted">
<h4 for="human-totem">totem adapté </h4>
<input
type="checkbox"
data-roll="true"
name="adapted-totem"
id="adapted-totem"
value="1"
>
</div>
{{/ifgt}}
</div>
</div>
</div>
</details>
</div>
</div>
<p><input
type="hidden"
name="speakerId"
value="{{ speakerId }}"
/>
<input
type="hidden"
name="skillLabel"
value="{{ skill }}"
/>
</p>
</form>
+3
View File
@@ -5,6 +5,9 @@
},
{
"path": "../noc"
},
{
"path": "../../../Config"
}
],
"settings": {}