Add icons and stuff
This commit is contained in:
parent
5721aaa44e
commit
cb91448c3b
BIN
assets/icons/advantage.webp
Normal file
BIN
assets/icons/advantage.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 83 KiB |
BIN
assets/icons/background_heritiers.xcf
Normal file
BIN
assets/icons/background_heritiers.xcf
Normal file
Binary file not shown.
BIN
assets/icons/contact.webp
Normal file
BIN
assets/icons/contact.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 90 KiB |
BIN
assets/icons/disadvantage.webp
Normal file
BIN
assets/icons/disadvantage.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 84 KiB |
BIN
assets/icons/power.webp
Normal file
BIN
assets/icons/power.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 88 KiB |
BIN
assets/icons/skill.webp
Normal file
BIN
assets/icons/skill.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 74 KiB |
@ -68,9 +68,6 @@ export class HeritiersItemSheet extends ItemSheet {
|
|||||||
isGM: game.user.isGM
|
isGM: game.user.isGM
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( objectData.type == "don") {
|
|
||||||
formData.sacrifice = await TextEditor.enrichHTML(this.object.system.sacrifice, {async: true})
|
|
||||||
}
|
|
||||||
//this.options.editable = !(this.object.origin == "embeddedItem");
|
//this.options.editable = !(this.object.origin == "embeddedItem");
|
||||||
console.log("ITEM DATA", formData, this);
|
console.log("ITEM DATA", formData, this);
|
||||||
return formData;
|
return formData;
|
||||||
@ -171,17 +168,17 @@ export class HeritiersItemSheet extends ItemSheet {
|
|||||||
this.object.update( { 'system.predilections': pred })
|
this.object.update( { 'system.predilections': pred })
|
||||||
})
|
})
|
||||||
|
|
||||||
html.find('#add-predilection').click(ev => {
|
html.find('#add-specialite').click(ev => {
|
||||||
let pred = duplicate(this.object.system.predilections)
|
let spec = duplicate(this.object.system.specialites)
|
||||||
pred.push( { name: "Nouvelle prédilection", id: randomID(16), used: false })
|
spec.push( { name: "Nouvelle Spécialité", id: randomID(16), used: false })
|
||||||
this.object.update( { 'system.predilections': pred })
|
this.object.update( { 'system.specialites': spec })
|
||||||
})
|
})
|
||||||
html.find('.delete-prediction').click(ev => {
|
html.find('.delete-specialite').click(ev => {
|
||||||
const li = $(ev.currentTarget).parents(".prediction-item")
|
const li = $(ev.currentTarget).parents(".specialite-item")
|
||||||
let index = li.data("prediction-index")
|
let index = li.data("specialite-index")
|
||||||
let pred = duplicate(this.object.system.predilections)
|
let spec = duplicate(this.object.system.specialites)
|
||||||
pred.splice(index,1)
|
spec.splice(index,1)
|
||||||
this.object.update( { 'system.predilections': pred })
|
this.object.update( { 'system.specialites': spec })
|
||||||
})
|
})
|
||||||
|
|
||||||
html.find('#add-automation').click(ev => {
|
html.find('#add-automation').click(ev => {
|
||||||
|
@ -1,18 +1,16 @@
|
|||||||
import { HeritiersUtility } from "./heritiers-utility.js";
|
import { HeritiersUtility } from "./heritiers-utility.js";
|
||||||
|
|
||||||
export const defaultItemImg = {
|
export const defaultItemImg = {
|
||||||
competence: "systems/fvtt-les-heritiers/assets/icons/competence.webp",
|
competence: "systems/fvtt-les-heritiers/assets/icons/skill.webp",
|
||||||
arme: "systems/fvtt-les-heritiers/assets/icons/melee.webp",
|
avantage: "systems/fvtt-les-heritiers/assets/icons/advantage.webp",
|
||||||
|
desavantage: "systems/fvtt-les-heritiers/assets/icons/disadvantage.webp",
|
||||||
|
contact: "systems/fvtt-les-heritiers/assets/icons/contact.webp",
|
||||||
|
pouvoir: "systems/fvtt-les-heritiers/assets/icons/power.webp",
|
||||||
equipement: "systems/fvtt-les-heritiers/assets/icons/equipement.webp",
|
equipement: "systems/fvtt-les-heritiers/assets/icons/equipement.webp",
|
||||||
|
arme: "systems/fvtt-les-heritiers/assets/icons/melee.webp",
|
||||||
monnaie: "systems/fvtt-les-heritiers/assets/icons/monnaie.webp",
|
monnaie: "systems/fvtt-les-heritiers/assets/icons/monnaie.webp",
|
||||||
predilection: "systems/fvtt-les-heritiers/assets/icons/predilection.webp",
|
|
||||||
protection: "systems/fvtt-les-heritiers/assets/icons/protection.webp",
|
protection: "systems/fvtt-les-heritiers/assets/icons/protection.webp",
|
||||||
talent: "systems/fvtt-les-heritiers/assets/icons/talent.webp",
|
talent: "systems/fvtt-les-heritiers/assets/icons/talent.webp"
|
||||||
historique: "systems/fvtt-les-heritiers/assets/icons/historique.webp",
|
|
||||||
profil: "systems/fvtt-les-heritiers/assets/icons/profil.webp",
|
|
||||||
artefact: "systems/fvtt-les-heritiers/assets/icons/artefact.webp",
|
|
||||||
contact: "systems/fvtt-les-heritiers/assets/icons/contacts.webp",
|
|
||||||
ressource: "systems/fvtt-les-heritiers/assets/icons/ressources.webp",
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1175,8 +1175,8 @@ ul, li {
|
|||||||
|
|
||||||
.chat-card-button {
|
.chat-card-button {
|
||||||
box-shadow: inset 0px 1px 0px 0px #a6827e;
|
box-shadow: inset 0px 1px 0px 0px #a6827e;
|
||||||
background: linear-gradient(to bottom, #41545a 5%, #2e5561 100%);
|
background-image: url("../assets/ui/bandeau_01.webp");
|
||||||
background-color: #7d5d3b00;
|
/*background-color: #7d5d3b00;*/
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
border: 2px ridge #846109;
|
border: 2px ridge #846109;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
@ -1191,8 +1191,8 @@ ul, li {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.chat-card-button:hover {
|
.chat-card-button:hover {
|
||||||
background: linear-gradient(to bottom, #800000 5%, #3e0101 100%);
|
background: linear-gradient(to bottom, #800000 5%, #3e0101 60%);
|
||||||
background-color: rgb(56, 33, 33);
|
/*background-color: rgba(56, 33, 33, 60);*/
|
||||||
}
|
}
|
||||||
.chat-card-button:active {
|
.chat-card-button:active {
|
||||||
position:relative;
|
position:relative;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"id": "fvtt-les-heritiers",
|
"id": "fvtt-les-heritiers",
|
||||||
"description": "Les Héritiers pour FoundryVTT",
|
"description": "Les Héritiers pour FoundryVTT",
|
||||||
"version": "10.0.0",
|
"version": "10.0.1",
|
||||||
"authors": [
|
"authors": [
|
||||||
{
|
{
|
||||||
"name": "Uberwald/LeRatierBretonnien",
|
"name": "Uberwald/LeRatierBretonnien",
|
||||||
@ -19,7 +19,7 @@
|
|||||||
"gridUnits": "m",
|
"gridUnits": "m",
|
||||||
"license": "LICENSE.txt",
|
"license": "LICENSE.txt",
|
||||||
"manifest": "https://www.uberwald.me/gitea/public/fvtt-les-heritiers/raw/branch/master/system.json",
|
"manifest": "https://www.uberwald.me/gitea/public/fvtt-les-heritiers/raw/branch/master/system.json",
|
||||||
"download": "https://www.uberwald.me/gitea/public/fvtt-les-heritiers/archive/fvtt-les-heritiers-10.0.0.zip",
|
"download": "https://www.uberwald.me/gitea/public/fvtt-les-heritiers/archive/fvtt-les-heritiers-10.0.1.zip",
|
||||||
"languages": [
|
"languages": [
|
||||||
{
|
{
|
||||||
"lang": "fr",
|
"lang": "fr",
|
||||||
@ -38,7 +38,7 @@
|
|||||||
"private": false,
|
"private": false,
|
||||||
"flags": {}
|
"flags": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"primaryTokenAttribute": "sante.vigueur",
|
"primaryTokenAttribute": "sante.vigueur",
|
||||||
"secondaryTokenAttribute": "bonneaventure.actuelle",
|
"secondaryTokenAttribute": "bonneaventure.actuelle",
|
||||||
"socket": true,
|
"socket": true,
|
||||||
|
@ -216,7 +216,7 @@
|
|||||||
"types": [
|
"types": [
|
||||||
"talenfeet",
|
"talenfeet",
|
||||||
"avantage",
|
"avantage",
|
||||||
"desavangate",
|
"desavantage",
|
||||||
"capacitenaturelle",
|
"capacitenaturelle",
|
||||||
"pouvoir",
|
"pouvoir",
|
||||||
"atoutfeerique",
|
"atoutfeerique",
|
||||||
|
22
templates/item-avantage-sheet.html
Normal file
22
templates/item-avantage-sheet.html
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
<form class="{{cssClass}}" autocomplete="off">
|
||||||
|
{{> systems/fvtt-les-heritiers/templates/partial-item-header.html}}
|
||||||
|
|
||||||
|
{{> systems/fvtt-les-heritiers/templates/partial-item-nav.html}}
|
||||||
|
|
||||||
|
{{!-- Sheet Body --}}
|
||||||
|
<section class="sheet-body">
|
||||||
|
|
||||||
|
{{> systems/fvtt-les-heritiers/templates/partial-item-description.html}}
|
||||||
|
|
||||||
|
|
||||||
|
<div class="tab details" data-group="primary" data-tab="details">
|
||||||
|
|
||||||
|
<ul class="item-list alternate-list">
|
||||||
|
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
</form>
|
@ -57,6 +57,8 @@
|
|||||||
<li class="specialite-item item flexrow" data-specialite-index="{{key}}">
|
<li class="specialite-item item flexrow" data-specialite-index="{{key}}">
|
||||||
<input type="text" class="padd-right color-class-common edit-specialite" value="{{specialite.name}}"
|
<input type="text" class="padd-right color-class-common edit-specialite" value="{{specialite.name}}"
|
||||||
data-dtype="String" />
|
data-dtype="String" />
|
||||||
|
<a class="item-control delete-specialite" title="Supprimer une specialité"><i
|
||||||
|
class="fas fa-trash"></i></a>
|
||||||
</li>
|
</li>
|
||||||
<li class="specialite-item item flexrow" data-specialite-index="{{key}}">
|
<li class="specialite-item item flexrow" data-specialite-index="{{key}}">
|
||||||
<textarea row="4" type="text" class="padd-right color-class-common edit-specialite-description"
|
<textarea row="4" type="text" class="padd-right color-class-common edit-specialite-description"
|
||||||
|
22
templates/item-desavantage-sheet.html
Normal file
22
templates/item-desavantage-sheet.html
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
<form class="{{cssClass}}" autocomplete="off">
|
||||||
|
{{> systems/fvtt-les-heritiers/templates/partial-item-header.html}}
|
||||||
|
|
||||||
|
{{> systems/fvtt-les-heritiers/templates/partial-item-nav.html}}
|
||||||
|
|
||||||
|
{{!-- Sheet Body --}}
|
||||||
|
<section class="sheet-body">
|
||||||
|
|
||||||
|
{{> systems/fvtt-les-heritiers/templates/partial-item-description.html}}
|
||||||
|
|
||||||
|
|
||||||
|
<div class="tab details" data-group="primary" data-tab="details">
|
||||||
|
|
||||||
|
<ul class="item-list alternate-list">
|
||||||
|
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
</form>
|
Loading…
Reference in New Issue
Block a user