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"
]
}
}
+155 -128
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,119 +213,20 @@
<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|}}
<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>
<div class="grid grid-2col">
<!-- BONUSES -->
<details>
<summary class="flexrow">
<h3>Bonuses</h3>
</summary>
<div class="grid grid-3col">
<div class="flexrow row smb">
<label class="label">{{localize 'VERMINE.help'}} (+1D)</label>
<input
@@ -213,6 +239,8 @@
help}}checked{{/if}}
>
</div>
<div class="flexrow row mdb">
<label class="label">{{localize
'VERMINE.group'}}</label>
@@ -228,6 +256,8 @@
value="0"
>
</div>
<div class="flexrow row mdb">
<label class="label">{{localize
'VERMINE.self_control'}} + <span id="self_control_value">0</span>D
@@ -242,6 +272,8 @@
value="0"
/>
</div>
<div class="flexcol row mdb">
<label class="label">{{localize 'VERMINE.tooling'}} (+1D)</label>
@@ -271,10 +303,10 @@
{{/each}}
</div>
</div>
<div class="flexrow">
<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>
@@ -300,18 +332,13 @@
</div>
{{/ifgt}}
</div>
</div>
</div>
</details>
</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": {}