Add competence roll

This commit is contained in:
sladecraven 2022-06-04 21:22:51 +02:00
parent 7654401f37
commit 8a4efaad9a
3 changed files with 14 additions and 5 deletions

View File

@ -17,7 +17,7 @@
"library": false,
"license": "LICENSE.txt",
"manifest": "https://www.uberwald.me/gitea/public/fvtt-mournblade/raw/branch/main/system.json",
"download": "https://www.uberwald.me/gitea/public/fvtt-mournblade/archive/fvtt-mournblade-0.0.9.zip",
"download": "https://www.uberwald.me/gitea/public/fvtt-mournblade/archive/fvtt-mournblade-0.0.10.zip",
"manifestPlusVersion": "1.0.0",
"media": [],
"minimumCoreVersion": "0.8.0",
@ -70,9 +70,9 @@
"styles": [
"styles/simple.css"
],
"templateVersion": 7,
"templateVersion": 8,
"title": "Mournblade",
"url": "",
"version": "0.0.9",
"version": "0.0.10",
"background": "./images/ui/mournblade_welcome.webp"
}

View File

@ -22,26 +22,31 @@
"attributs": {
"adr":{
"label": "Adresse",
"labelnorm": "adresse",
"abbrev": "adr",
"value": 1
},
"pui":{
"label": "Puissance",
"labelnorm": "puissance",
"abbrev": "pui",
"value": 1
},
"cla":{
"label": "Clairvoyance",
"labelnorm": "clairvoyance",
"abbrev": "cla",
"value": 1
},
"pre":{
"label": "Présence",
"labelnorm": "presence",
"abbrev": "pre",
"value": 0
},
"tre":{
"label": "Trempe",
"labelnorm": "trempe",
"abbrev": "tre",
"value": 0
}

View File

@ -5,7 +5,10 @@
<div class="header-fields">
<div class="flexrow">
<img class="profile-img" src="{{img}}" data-edit="img" title="{{name}}" />
<h1 class="charname"><input name="name" type="text" value="{{name}}" placeholder="Name"/></h1>
<div class="flexcol">
<h1 class="charname"><input name="name" type="text" value="{{name}}" placeholder="Name"/></h1>
</div>
</div>
</div>
</header>
@ -32,7 +35,8 @@
<ul class="item-list alternate-list">
{{#each data.attributs as |attr key|}}
<li class="item flexrow " data-attr-key="{{key}}">
<span class="item-name-label"><a class="roll-attribut">{{attr.label}}</a></span>
<img class="item-name-img" src="systems/fvtt-mournblade/assets/icons/{{attr.labelnorm}}.webp">
<span class="item-name-label competence-name"><a class="roll-attribut">{{attr.label}}</a></span>
<select class="status-small-label color-class-common" type="text" name="data.attributs.{{key}}.value"
value="{{attr.value}}" data-dtype="Number">
{{#select attr.value}}