New icons

This commit is contained in:
sladecraven 2022-10-23 09:55:02 +02:00
parent 782b39d0be
commit 12c2c46724
16 changed files with 205 additions and 214 deletions

View File

@ -13,7 +13,7 @@ export class HawkmoonActorSheet extends ActorSheet {
static get defaultOptions() {
return mergeObject(super.defaultOptions, {
classes: ["fvtt-hawkmoon", "sheet", "actor"],
classes: ["fvtt-hawkmoon-cyd", "sheet", "actor"],
template: "systems/fvtt-hawkmoon-cyd/templates/actor-sheet.html",
width: 640,
height: 720,

View File

@ -7,7 +7,7 @@ import { HawkmoonRollDialog } from "./hawkmoon-roll-dialog.js";
export class HawkmoonCommands {
static init() {
if (!game.system.mournblade.commands) {
if (!game.system.hawkmoon.commands) {
//const HawkmoonCommands = new HawkmoonCommands()
//HawkmoonCommands.registerCommand({ path: ["/char"], func: (content, msg, params) => HawkmoonCommands.createChar(msg), descr: "Create a new character" });
//game.system.mournblade.commands = HawkmoonCommands

View File

@ -10,7 +10,7 @@ export class HawkmoonItemSheet extends ItemSheet {
static get defaultOptions() {
return mergeObject(super.defaultOptions, {
classes: ["fvtt-hawkmoon", "sheet", "item"],
classes: ["fvtt-hawkmoon-cyd", "sheet", "item"],
template: "systems/fvtt-hawkmoon-cyd/templates/item-sheet.html",
dragDrop: [{ dragSelector: null, dropSelector: null }],
width: 620,
@ -167,7 +167,7 @@ export class HawkmoonItemSheet extends ItemSheet {
/* -------------------------------------------- */
get template() {
let type = this.item.type;
return `systems/fvtt-mournblade/templates/item-${type}-sheet.html`;
return `systems/fvtt-hawkmoon-cyd/templates/item-${type}-sheet.html`;
}
/* -------------------------------------------- */

View File

@ -44,7 +44,7 @@ Hooks.once("init", async function () {
CONFIG.Combat.documentClass = HawkmoonCombat
CONFIG.Actor.documentClass = HawkmoonActor
CONFIG.Item.documentClass = HawkmoonItem
game.system.hawkmon = {
game.system.hawkmosn = {
HawkmoonUtility
}
@ -67,7 +67,7 @@ function welcomeMessage() {
user: game.user.id,
whisper: [game.user.id],
content: `<div id="welcome-message-Hawkmoon"><span class="rdd-roll-part">
<strong>Bienvenue dans Hawkmoon !</strong>
<strong>Bienvenue dans Hawkmoon et le troisième Millénaire !</strong>
<p>Les livres de Hawkmoon sont nécessaires pour jouer : https://www.titam-france.fr</p>
<p>Hawkmoon est jeude rôle publié par Titam France/Sombres projets, tout les droits leur appartiennent.<p>
` });
@ -116,6 +116,12 @@ Hooks.once("ready", function () {
registerUsageCount('fvtt-hawkmoon-cyd')
welcomeMessage()
// CSS patch for v9
if (game.version) {
let sidebar = document.getElementById("sidebar");
sidebar.style.width = "min-content";
}
});
/* -------------------------------------------- */

View File

@ -1351,6 +1351,7 @@ ul, li {
min-width: 6rem;
}
.item-field-label-long {
padding-top: 6px;
flex-grow:1;
max-width: 8rem;
min-width: 8rem;
@ -1370,3 +1371,7 @@ ul, li {
min-width:3.2rem;
max-width: 3.2rem;
}
.item-field {
justify-content: flex-start;
flex-grow: 1;
}

View File

@ -9,7 +9,7 @@
}
],
"esmodules": [
"modules/hawkmon-main.js"
"modules/hawkmoon-main.js"
],
"gridDistance": 5,
"gridUnits": "m",
@ -28,7 +28,7 @@
},
{
"type": "Item",
"label": "Armes & Boucliers",
"label": "Armes",
"name": "armes",
"path": "packs/armes.db",
"system": "fvtt-hawkmoon-cyd",
@ -55,54 +55,18 @@
},
{
"type": "Item",
"label": "Origines",
"name": "origines",
"path": "packs/origines.db",
"label": "Profils",
"name": "profils",
"path": "packs/profils.db",
"system": "fvtt-hawkmoon-cyd",
"private": false,
"flags": {}
},
{
"type": "Item",
"label": "Héritages",
"name": "heritages",
"path": "packs/heritages.db",
"system": "fvtt-hawkmoon-cyd",
"private": false,
"flags": {}
},
{
"type": "Item",
"label": "Métiers",
"name": "metiers",
"path": "packs/metiers.db",
"system": "fvtt-hawkmoon-cyd",
"private": false,
"flags": {}
},
{
"type": "Item",
"label": "Tendances",
"name": "tendances",
"path": "packs/tendances.db",
"system": "fvtt-hawkmoon-cyd",
"private": false,
"flags": {}
},
{
"type": "Item",
"label": "Traits chaotiques",
"name": "traits-chaotiques",
"path": "packs/traits-chaotiques.db",
"system": "fvtt-hawkmoon-cyd",
"private": false,
"flags": {}
},
{
"type": "Item",
"label": "Runes",
"name": "runes",
"path": "packs/runes.db",
"label": "Talents",
"name": "talents",
"path": "packs/talents.db",
"system": "fvtt-hawkmoon-cyd",
"private": false,
"flags": {}
@ -123,7 +87,7 @@
"styles": [
"styles/simple.css"
],
"title": "Mournblade",
"title": "Hawkmoon - CYD System",
"url": "https://www.uberwald.me/gitea/public/fvtt-hawkmoon-cyd",
"background": "systems/fvtt-hawkmoon-cyd/assets/ui/fond_hawkmoon.webp",
"compatibility": {

View File

@ -138,7 +138,7 @@
"exemples": "",
"attribut1": "",
"attribut2": "",
"talentsinities": "",
"talentsinitie": "",
"prerequisaguerri": "",
"talentsaguerri": "",
"prerequismaitre": "",

View File

@ -9,15 +9,15 @@
{{!-- Sheet Body --}}
<section class="sheet-body">
<div class="flexcol">
<span class="flexrow">
<label class="generic-label">Niveau : </label>
<input type="text" class="padd-right status-small-label color-class-common" name="system.niveau"
value="{{system.niveau}}" data-dtype="Number" />
</span>
<span class="flexrow">
<label class="generic-label">Attribut 1 : </label>
<select class="status-small-label color-class-common" type="text" name="system.attribut1"
<ul class="item-list alternate-list">
<li class="flexrow item">
<label class="generic-label item-field-label-long">Niveau </label>
<input type="text" class="padd-right status-small-label color-class-common item-field-label-short"
name="system.niveau" value="{{system.niveau}}" data-dtype="Number" />
</li>
<li class="flexrow item">
<label class="generic-label item-field-label-long">Attribut 1 </label>
<select class="status-small-label color-class-common item-field-label-long" type="text" name="system.attribut1"
value="{{system.attribut1}}" data-dtype="string">
{{#select system.attribut1}}
{{#each attributs as |attrLabel attrKey|}}
@ -25,10 +25,10 @@
{{/each}}
{{/select}}
</select>
</span>
<span class="flexrow">
<label class="generic-label">Attribut 2 : </label>
<select class="status-small-label color-class-common" type="text" name="system.attribut2"
</li>
<li class="flexrow item">
<label class="generic-label item-field-label-long">Attribut 2 </label>
<select class="status-small-label color-class-common item-field-label-long" type="text" name="system.attribut2"
value="{{system.attribut2}}" data-dtype="string">
<option value="none">Aucun</option>
{{#select system.attribut2}}
@ -37,10 +37,10 @@
{{/each}}
{{/select}}
</select>
</span>
<span class="flexrow">
<label class="generic-label">Attribut 3 : </label>
<select class="status-small-label color-class-common" type="text" name="system.attribut3"
</li>
<li class="flexrow item">
<label class="generic-label item-field-label-long">Attribut 3 </label>
<select class="status-small-label color-class-common item-field-label-long" type="text" name="system.attribut3"
value="{{system.attribut3}}" data-dtype="string">
<option value="none">Aucun</option>
{{#select system.attribut3}}
@ -49,27 +49,38 @@
{{/each}}
{{/select}}
</select>
</span>
</li>
<span class="flexrow">
<li class="flexrow item">
<h3>Prédilections</h3>
</span>
</li>
<li class="flexrow item">
<ul>
{{#each system.predilections as |predilection key|}}
<li class="prediction-item item flexrow" data-prediction-index="{{key}}">
<input type="text" class="padd-right color-class-common edit-predilection" name="system.predilections[{{key}}]" value="{{predilection.name}}" data-dtype="String" />
<input type="text" class="padd-right color-class-common edit-predilection-description" name="system.predilections[{{key}}]" value="{{predilection.description}}" data-dtype="String" />
<label class="generic-label">Maitrise ? <input class="predilection-maitrise" type="checkbox" name="predilection.maitrise" {{checked predilection.maitrise}} /></label>
<label class="generic-label">Utilisée ? <input class="use-predilection" type="checkbox" name="predilection.used" {{checked predilection.used}} /></label>
<a class="item-control delete-prediction" title="Supprimer une predilection"><i class="fas fa-trash"></i></a>
<input type="text" class="padd-right color-class-common edit-predilection"
name="system.predilections[{{key}}]" value="{{predilection.name}}" data-dtype="String" />
</li>
<li class="prediction-item item flexrow" data-prediction-index="{{key}}">
<textarea row="4" type="text" class="padd-right color-class-common edit-predilection-description"
name="system.predilections[{{key}}]" value="{{predilection.description}}" data-dtype="String"></textarea>
</li>
<li class="prediction-item item flexrow" data-prediction-index="{{key}}">
<label class="generic-label">Maitrise ? <input class="predilection-maitrise" type="checkbox"
name="predilection.maitrise" {{checked predilection.maitrise}} /></label>
<label class="generic-label">Utilisée ? <input class="use-predilection" type="checkbox"
name="predilection.used" {{checked predilection.used}} /></label>
<a class="item-control delete-prediction" title="Supprimer une predilection"><i
class="fas fa-trash"></i></a>
</li>
<hr>
{{/each}}
</ul>
<span class="flexrow">
<li class="flexrow item">
<button id="add-predilection" class="chat-card-button">Ajouter une prédilection</button>
</span>
{{> systems/fvtt-mournblade/templates/partial-item-description.html}}
</li>
</ul>
{{> systems/fvtt-hawkmoon-cyd/templates/partial-item-description.html}}
</div>

View File

@ -9,17 +9,21 @@
{{!-- Sheet Body --}}
<section class="sheet-body">
<div class="flexcol">
<span class="flexrow">
<label class="generic-label">Rareté </label>
<input type="text" class="padd-right status-small-label color-class-common" name="system.rarete" value="{{data.rarete}}" data-dtype="Number" />
</span>
<span class="flexrow">
<label class="generic-label">Prix </label>
<input type="text" class="padd-right status-small-label color-class-common" name="system.prix" value="{{data.prix}}" data-dtype="Number" />
</span>
<ul class="item-list alternate-list">
<li class="flexrow item">
<label class="generic-label item-field-label-long">Rareté </label>
<input type="text" class="padd-right status-small-label color-class-common item-field-label-long" name="system.rarete"
value="{{data.rarete}}" data-dtype="Number" />
</li>
{{> systems/fvtt-mournblade/templates/partial-item-description.html}}
<li class="flexrow item">
<label class="generic-label item-field-label-long">Prix </label>
<input type="text" class="padd-right status-small-label color-class-common item-field-label-long" name="system.prix"
value="{{data.prix}}" data-dtype="Number" />
</li>
</ul>
{{> systems/fvtt-hawkmoon-cyd/templates/partial-item-description.html}}
</div>

View File

@ -9,21 +9,17 @@
{{!-- Sheet Body --}}
<section class="sheet-body">
<div class="flexcol">
<span class="flexrow">
<label class="generic-label">Allégeance : </label>
<select class="status-small-label color-class-common" type="text" name="system.allegeance" value="{{data.allegeance}}" data-dtype="string" >
{{#select data.allegeance}}
<option value="tous">Tous</option>
<option value="chaos">Chaos</option>
<option value="loi">Loi</option>
<option value="betes">Seigneurs des Bêtes</option>
<option value="elementaires">Seigneurs Elementaires</option>
{{/select}}
</select>
</span>
<ul class="item-list alternate-list">
<li class="flexrow item">
<label class="generic-label">Bonus/Malus </label>
</li>
<li class="flexrow item">
<input type="text" class="padd-right status-small-label color-class-common" name="system.bonusmalus"
value="{{system.bonusmalus}}" data-dtype="String" />
</li>
{{> systems/fvtt-mournblade/templates/partial-item-description.html}}
</ul>
{{> systems/fvtt-hawkmoon-cyd/templates/partial-item-description.html}}
</div>

View File

@ -11,7 +11,7 @@
<div class="flexcol">
{{> systems/fvtt-mournblade/templates/partial-item-description.html}}
{{> systems/fvtt-hawkmoon-cyd/templates/partial-item-description.html}}
</div>

View File

@ -1,18 +0,0 @@
<form class="{{cssClass}}" autocomplete="off">
<header class="sheet-header">
<img class="item-sheet-img" src="{{img}}" data-edit="img" title="{{name}}"/>
<div class="header-fields">
<h1 class="charname"><input name="name" type="text" value="{{name}}" placeholder="Name"/></h1>
</div>
</header>
{{!-- Sheet Body --}}
<section class="sheet-body">
<div class="flexcol">
{{> systems/fvtt-mournblade/templates/partial-item-description.html}}
</div>
</section>
</form>

View File

@ -1,31 +0,0 @@
<form class="{{cssClass}}" autocomplete="off">
<header class="sheet-header">
<img class="item-sheet-img" src="{{img}}" data-edit="img" title="{{name}}"/>
<div class="header-fields">
<h1 class="charname"><input name="name" type="text" value="{{name}}" placeholder="Name"/></h1>
</div>
</header>
{{!-- Sheet Body --}}
<section class="sheet-body">
<div class="flexcol">
<span class="flexrow">
<label class="generic-label">Allégeance : </label>
<select class="status-small-label color-class-common" type="text" name="system.allegeance" value="{{data.allegeance}}" data-dtype="string" >
{{#select data.allegeance}}
<option value="tous">Tous</option>
<option value="chaos">Chaos</option>
<option value="loi">Loi</option>
<option value="betes">Seigneurs des Bêtes</option>
<option value="elementaires">Seigneurs Elementaires</option>
{{/select}}
</select>
</span>
{{> systems/fvtt-mournblade/templates/partial-item-description.html}}
</div>
</section>
</form>

View File

@ -1,23 +0,0 @@
<form class="{{cssClass}}" autocomplete="off">
<header class="sheet-header">
<img class="item-sheet-img" src="{{img}}" data-edit="img" title="{{name}}"/>
<div class="header-fields">
<h1 class="charname"><input name="name" type="text" value="{{name}}" placeholder="Name"/></h1>
</div>
</header>
{{!-- Sheet Body --}}
<section class="sheet-body">
<div class="flexcol">
<span class="flexrow">
<label class="generic-label">Compétence : </label>
<input type="text" class="padd-right status-small-label color-class-common" name="system.competence" value="{{data.competence}}" data-dtype="String" />
</span>
{{> systems/fvtt-mournblade/templates/partial-item-description.html}}
</div>
</section>
</form>

View File

@ -9,8 +9,85 @@
{{!-- Sheet Body --}}
<section class="sheet-body">
<ul class="item-list alternate-list">
<li class="flexrow item">
<label class="generic-label">Exemples : </label>
</li>
<li class="flexrow item">
<input type="text" class="padd-right status-small-label color-class-common" name="system.exemples"
value="{{system.exemples}}" data-dtype="String" />
</li>
<li class="flexrow items">
<label class="generic-label item-field-label-long">Attribut principal 1 </label>
<select class="status-small-label color-class-common item-field-label-long"" type="text" name="system.attribut1"
value="{{system.attribut1}}" data-dtype="string">
{{#select system.attribut1}}
{{#each attributs as |attrLabel attrKey|}}
<option value="{{attrKey}}">{{attrLabel}}</option>
{{/each}}
{{/select}}
</select>
</li>
<li class="flexrow item ">
<label class="generic-label item-field-label-long">Attribut principal 2 </label>
<select class="status-small-label color-class-common item-field-label-long"" type="text" name="system.attribut2"
value="{{system.attribut2}}" data-dtype="string">
<option value="none">Aucun</option>
{{#select system.attribut2}}
{{#each attributs as |attrLabel attrKey|}}
<option value="{{attrKey}}">{{attrLabel}}</option>
{{/each}}
{{/select}}
</select>
</li>
<li class="flexrow item">
<label class="generic-label">Talents Initié : </label>
</li>
<li class="flexrow item">
<textarea type="text" rows="4" class="padd-right status-small-label color-class-common"
name="system.talentsinitie" value="{{system.talentsinitie}}" data-dtype="String"></textarea>
</li>
<li class="flexrow item">
<label class="generic-label">Prérequis Aguerri : </label>
</li>
<li class="flexrow item">
<input type="text" class="padd-right status-small-label color-class-common" name="system.prerequisaguerri"
value="{{system.prerequisaguerri}}" data-dtype="String" />
</li>
<li class="flexrow item">
<label class="generic-label">Talents Aguerri : </label>
</li>
<li class="flexrow item">
<textarea row="4" type="text" class="padd-right status-small-label color-class-common"
name="system.talentsaguerri" value="{{system.talentsaguerri}}" data-dtype="String"></textarea>
</li>
<li class="flexrow item">
<label class="generic-label">Prérequis Maître : </label>
</li>
<li class="flexrow item">
<input type="text" class="padd-right status-small-label color-class-common" name="system.prerequismaitre"
value="{{system.prerequismaitre}}" data-dtype="String" />
</li>
<li class="flexrow item">
<label class="generic-label">Talents Maître : </label>
</li>
<li class="flexrow item">
<textarea row="4" type="text" class="padd-right status-small-label color-class-common"
name="system.talentsmaitre" value="{{system.talentsmaitre}}" data-dtype="String"></textarea>
</li>
<li class="flexrow item">
<label class="generic-label">Equipement : </label>
</li>
<li class="flexrow item">
<input type="text" class="padd-right status-small-label color-class-common" name="system.equipement"
value="{{system.equipement}}" data-dtype="String" />
</li>
</ul>
</div>
<div class="flexcol">
{{> systems/fvtt-mournblade/templates/partial-item-description.html}}
{{> systems/fvtt-hawkmoon-cyd/templates/partial-item-description.html}}
</div>

View File

@ -27,7 +27,7 @@
<input type="text" class="padd-right status-small-label color-class-common" name="system.prix" value="{{data.prix}}" data-dtype="Number" />
</span>
{{> systems/fvtt-mournblade/templates/partial-item-description.html}}
{{> systems/fvtt-hawkmoon-cyd/templates/partial-item-description.html}}
</div>